[fix][broker] Revert "[fix][broker] Cancel possible pending replay read in cancelPendingRead (#23384)" - #23855
Conversation
@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. |
…ad in cancelPendingRead (apache#23384)" (apache#23855)
…ad in cancelPendingRead (apache#23384)" (apache#23855) (cherry picked from commit ea56ada) (cherry picked from commit 7387653)
…ad in cancelPendingRead (apache#23384)" (apache#23855) (cherry picked from commit ea56ada) (cherry picked from commit 7387653)
…ad in cancelPendingRead (apache#23384)" (apache#23855) (cherry picked from commit ea56ada)
…ad in cancelPendingRead (apache#23384)" (apache#23855)
Motivation
There was a misunderstanding in making the change #23384. This PR reverts the change and adds javadoc to the
cancelPendingReadRequestmethod to explain the purpose of the method.Modifications
Documentation
docdoc-requireddoc-not-neededdoc-complete