-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[fix][broker] Revert "[fix][broker] Cancel possible pending replay read in cancelPendingRead (#23384)" #23855
[fix][broker] Revert "[fix][broker] Cancel possible pending replay read in cancelPendingRead (#23384)" #23855
Conversation
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.
@poorbarcode It's a common practice to revert a change that turned out to be invalid. In this case, although a similar change is made in #23384, it won't cause merge conflicts even if it were to be merged later. This PR contains a javadoc comment to improve the clarity of |
Explained in comment #23855 (comment)
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #23855 +/- ##
============================================
+ Coverage 73.57% 74.17% +0.60%
+ Complexity 32624 2376 -30248
============================================
Files 1877 1853 -24
Lines 139502 143596 +4094
Branches 15299 16306 +1007
============================================
+ Hits 102638 106519 +3881
+ Misses 28908 28663 -245
- Partials 7956 8414 +458
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Sure, please create a new PR to add the test |
@poorbarcode What type of test do you have in mind? In #23803 there aren't any comments about what you have in mind and there are no tests. Adding a test to avoid others doing the same change doesn't really make sense to me. A better way to address the problem would be to rename the method if we'd like to improve the clarity. |
@poorbarcode There was no known issue that #23384 introduced. It's just a wrong change. For read requests, it's not possible to "cancel" a replay read and therefore having the logic in As I mentioned in the previous comment, renaming this method to a more specific name would be a better way to ensure that the abstraction doesn't get misunderstood in the future. |
Motivation
There was a misunderstanding in making the change #23384. This PR reverts the change and adds javadoc to the
cancelPendingReadRequest
method to explain the purpose of the method.Modifications
Documentation
doc
doc-required
doc-not-needed
doc-complete