-
Notifications
You must be signed in to change notification settings - Fork 3.3k
HBASE-29280: Fix bug in RawAsyncTableImpl#coprocessorServiceUntilComplete retry logic #6952
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
Merged
Apache9
merged 1 commit into
apache:master
from
HubSpot:HBASE-29280/async-table-coproc-partial-result-retry
May 16, 2025
Merged
HBASE-29280: Fix bug in RawAsyncTableImpl#coprocessorServiceUntilComplete retry logic #6952
Apache9
merged 1 commit into
apache:master
from
HubSpot:HBASE-29280/async-table-coproc-partial-result-retry
May 16, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
No UT can cover this? |
To be honest, I think it's pretty difficult to unit test this. We don't want to actually introduce a sleep in a unit test, because that's slow, so we can't verify behavior by timing. We also can't mock out |
Apache9
approved these changes
May 6, 2025
Apache9
pushed a commit
that referenced
this pull request
May 16, 2025
…ete retry logic (#6952) Signed-off-by: Duo Zhang <[email protected]> (cherry picked from commit 767726c)
Apache9
pushed a commit
that referenced
this pull request
May 16, 2025
…ete retry logic (#6952) Signed-off-by: Duo Zhang <[email protected]> (cherry picked from commit 767726c)
Apache9
pushed a commit
that referenced
this pull request
May 16, 2025
…ete retry logic (#6952) Signed-off-by: Duo Zhang <[email protected]> (cherry picked from commit 767726c)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I noticed a bug that I introduced in HBASE-28770. I introduced the ability for coprocessor endpoints to send partial responses. When this happens, the client needs to send a new request to fetch remaining results, and may sleep before doing so. The logic for sleeping looks like:
which has backwards logic. The first line should read