Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
-
Description
Related to the work proposed on HBASE-17748 and building on the same idea as HBASE-18133, we can make the space quota tracking for HBase snapshots faster to respond.
When snapshots are in play, the location of a file (whether in the data or archive directory) plays a factor in the realized size of a table. Like flushes, compactions, etc, moving files from the data directory to the archive directory is done by the RegionServer. We can hook into this call and send the necessary information to the Master so that it can more quickly update the size of a table when there are snapshots in play.
This will require the RegionServer to report the full coordinates of the file being moved (table+region+family+file) so that the SnapshotQuotaObserverChore running in the master can avoid HDFS lookups in partial or total to compute the location of a Region's hfiles.
This may also require some refactoring of the SnapshotQuotaObserverChore to de-couple the receipt of these file archival reports from RegionServers (e.g. HRegionFileSystem.removeStoreFiles(..), and the Master processing the sizes of snapshots.
Attachments
Attachments
Issue Links
- depends upon
-
HBASE-17748 Include HBase Snapshots in Space Quotas
- Resolved
- is blocked by
-
HBASE-18133 Low-latency space quota size reports
- Resolved
- links to