wchevreuil commented on a change in pull request #3598:
URL: https://github.com/apache/hbase/pull/3598#discussion_r691103851
##########
File path:
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestDirectStoreSplitsMerges.java
##########
@@ -202,6 +207,22 @@ public void testCommitMergedRegion() throws Exception {
mergeRegionFs.commitMergedRegion();
}
+ private void waitForSplitProcComplete(int attempts, int waitTime) throws
Exception {
+ List<Procedure<?>> procedures =
TEST_UTIL.getHBaseCluster().getMaster().getProcedures();
+ if(procedures.size()>0) {
+ Procedure splitProc = procedures.stream().
+ filter(p -> p instanceof SplitTableRegionProcedure).findFirst().get();
Review comment:
Had to modify this logic a bit. The branch-2 version is wrong, leading
to NoSuchElement when the first proc is not a split one. I will cherry-pick
this once it gets merged.
--
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]