tanyastickles commented on code in PR #8700:
URL: https://github.com/apache/hbase/pull/8700#discussion_r4096732673
##########
hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/RegionStateStore.java:
##########
@@ -376,6 +376,11 @@ public void splitRegion(RegionInfo parent, RegionInfo
splitA, RegionInfo splitB,
Put putParent = MetaTableAccessor.makePutFromRegionInfo(
RegionInfoBuilder.newBuilder(parent).setOffline(true).setSplit(true).build(),
time);
MetaTableAccessor.addDaughtersToPut(putParent, splitA, splitB);
+ // Persist the terminal SPLIT state so that after a master failover
loadMeta reconstructs the
+ // parent as state=SPLIT rather than falling back to OFFLINE, which would
make it eligible for
+ // re-assignment via processOfflineRegions. See HBASE-30353.
+ MetaTableAccessor.addRegionStateToPut(putParent,
RegionInfo.DEFAULT_REPLICA_ID,
Review Comment:
this is the main thing i want feedback on. how do we feel about persisting
`state=SPLIT` to the metafile in addition to the `split=true` flag?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]