Uh oh!
There was an error while loading. Please reload this page.
HBASE-27903 Skip submitting Split/Merge procedure when split/merge is… - #6169
Conversation
… disabled at table level - Fail fast by adding a check before even submitting a procedure - Update test cases to assert for expected exception post this change - Make use of RegionInfo.getShortNameToLog instead of logging complete region info - Update comments in procedure implementation
NihalJain
commented
Aug 20, 2024
Verified the change in standalone mode. The code works as expected i.e. the procedure is not even submitted and we fail fast with this patch and as a result no procedure rollback happens. Shell output with fix: Shell output without fix: Logs with fix: Logs without fix: |
Apache-HBase
commented
Aug 20, 2024
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Aug 20, 2024
🎊 +1 overall
This message was automatically generated. |
| // check and ensure that region do not get merged | ||
| Future<?> f = admin.mergeRegionsAsync(nameOfRegionA, nameOfRegionB, true); | ||
| Future<?> f = admin.mergeRegionsAsync(new byte[][] { nameOfRegionA, nameOfRegionB }, true); |
There was a problem hiding this comment.
Why we need this change? Because the method which takes two byte[] is deprecated?
There was a problem hiding this comment.
Hi Duo, yes saw this deprecated usage in the test. mentioned same in description. let me know if should revert
There was a problem hiding this comment.
No problem. Just want to confirm.
… disabled at table level (apache#6169) - Fail fast by adding a check before even submitting a procedure - Update test cases to assert for expected exception post this change - Remove deprecated method mergeRegionsAsync's usage in test - Make use of RegionInfo.getShortNameToLog instead of logging complete region info - Update comments in procedure implementation Signed-off-by: Duo Zhang <zhangduo@apache.org> (cherry picked from commit 2ac657c)
… disabled at table level (apache#6169) - Fail fast by adding a check before even submitting a procedure - Update test cases to assert for expected exception post this change - Remove deprecated method mergeRegionsAsync's usage in test - Make use of RegionInfo.getShortNameToLog instead of logging complete region info - Update comments in procedure implementation Signed-off-by: Duo Zhang <zhangduo@apache.org> (cherry picked from commit 2ac657c)
… disabled at table level (#6169) (#6185) - Fail fast by adding a check before even submitting a procedure - Update test cases to assert for expected exception post this change - Remove deprecated method mergeRegionsAsync's usage in test - Make use of RegionInfo.getShortNameToLog instead of logging complete region info - Update comments in procedure implementation Signed-off-by: Duo Zhang <zhangduo@apache.org> (cherry picked from commit 2ac657c)
… disabled at table level (#6186) (#6169) - Fail fast by adding a check before even submitting a procedure - Update test cases to assert for expected exception post this change - Remove deprecated method mergeRegionsAsync's usage in test - Make use of RegionInfo.getShortNameToLog instead of logging complete region info - Update comments in procedure implementation - Fix tests as per 2.x code base: here the HBTU creates an instance of HBaseAdmin whose methods splitRegionAsync/mergeRegionsAsync seem to propagate error immediately without a call to future.get() which is in contrast to how it default admin instance of HBTU works in 3.x. Signed-off-by: Duo Zhang <zhangduo@apache.org> (cherry picked from commit 2ac657c)
… disabled at table level (apache#6186) (apache#6169) - Fail fast by adding a check before even submitting a procedure - Update test cases to assert for expected exception post this change - Remove deprecated method mergeRegionsAsync's usage in test - Make use of RegionInfo.getShortNameToLog instead of logging complete region info - Update comments in procedure implementation - Fix tests as per 2.x code base: here the HBTU creates an instance of HBaseAdmin whose methods splitRegionAsync/mergeRegionsAsync seem to propagate error immediately without a call to future.get() which is in contrast to how it default admin instance of HBTU works in 3.x. Signed-off-by: Duo Zhang <zhangduo@apache.org> (cherry picked from commit e658496)
… disabled at table level (#6186) (#6169) (#6285) - Fail fast by adding a check before even submitting a procedure - Update test cases to assert for expected exception post this change - Remove deprecated method mergeRegionsAsync's usage in test - Make use of RegionInfo.getShortNameToLog instead of logging complete region info - Update comments in procedure implementation - Fix tests as per 2.x code base: here the HBTU creates an instance of HBaseAdmin whose methods splitRegionAsync/mergeRegionsAsync seem to propagate error immediately without a call to future.get() which is in contrast to how it default admin instance of HBTU works in 3.x. Signed-off-by: Duo Zhang <zhangduo@apache.org> (cherry picked from commit e658496)
… disabled at table level