-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HBASE-28595: check seq id of scan RPCs for closed scanners #5910
Conversation
test used for verification uploaded at: 17dd10e the test is likely to be flaky so decided not to include it in the fix
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
@@ -3787,7 +3798,7 @@ private void closeScanner(HRegion region, RegionScanner scanner, String scannerN | |||
if (region.getCoprocessorHost() != null) { | |||
region.getCoprocessorHost().postScannerClose(scanner); | |||
} | |||
closedScanners.put(scannerName, scannerName); | |||
if (!isError) closedScanners.put(scannerName, rsh.getNextCallSeq()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The checkstyle config for HBase will issue a warning for this style, please use
if (!isError) {
xxx
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, done
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM , tested with the reproduce steps mentioned in HBASE-28595
Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Tak Lon (Stephen) Wu <taklwu@apache.org>
Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Tak Lon (Stephen) Wu <taklwu@apache.org>
Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Tak Lon (Stephen) Wu <taklwu@apache.org>
Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Tak Lon (Stephen) Wu <taklwu@apache.org>
thanks @csringhofer |
Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Tak Lon (Stephen) Wu <taklwu@apache.org> (cherry picked from commit a3ff01d)
…5922) Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Tak Lon (Stephen) Wu <taklwu@apache.org> Co-authored-by: csringhofer <csringhofer@cloudera.com>
…5923) Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Tak Lon (Stephen) Wu <taklwu@apache.org> Co-authored-by: csringhofer <csringhofer@cloudera.com>
…5924) Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Tak Lon (Stephen) Wu <taklwu@apache.org> Co-authored-by: csringhofer <csringhofer@cloudera.com>
…5925) Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Tak Lon (Stephen) Wu <taklwu@apache.org> Co-authored-by: csringhofer <csringhofer@cloudera.com>
Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Tak Lon (Stephen) Wu <taklwu@apache.org>
…apache#5910) (apache#5925) Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Tak Lon (Stephen) Wu <taklwu@apache.org> Co-authored-by: csringhofer <csringhofer@cloudera.com> (cherry picked from commit c63d658) Change-Id: I21aa821176c750da6217e60261664773923c7b61
…apache#5910) (apache#5925) Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Tak Lon (Stephen) Wu <taklwu@apache.org> Co-authored-by: csringhofer <csringhofer@cloudera.com> (cherry picked from commit c63d658) Change-Id: If21bdc7eed9a0b75368ae1cf0929eb7aa83c35c1
test used for verification uploaded at:
csringhofer@17dd10e
the test is likely to be flaky so decided not to include it in the fix