Details
-
Sub-task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.3.1, 2.0.0
-
None
-
Reviewed
-
Adds a new RefreshHFiles Coprocessor Endpoint example. Includes client and serverside-endpoint that iterates region Stores to call #refreshStoreFiles.
Description
In the case where multiple HBase clusters are sharing a common rootDir, even after flushing the data from
one cluster doesn't mean that other clusters (replicas) will automatically pick the new HFile. Through this patch,
we are exposing the refresh HFiles API which when issued from a replica will update the in-memory file handle list
with the newly added file.
This allows replicas to be consistent with the data written through the primary cluster.