[fix][txn] Always send correct transaction id in end txn response - #19137
Merged
Conversation
Contributor
Author
|
FYI @madhavan-narayanan since you implemented the interceptor |
nicoloboschi
requested review from
liangyepianzhou and
mattisonchao
and removed request for
liangyepianzhou
January 5, 2023 09:37
congbobo184
approved these changes
Jan 9, 2023
congbobo184
left a comment
Contributor
There was a problem hiding this comment.
its better to add test for it
Contributor
Author
Added, thanks. |
Technoboy-
approved these changes
Jan 10, 2023
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #19137 +/- ##
============================================
+ Coverage 47.00% 49.82% +2.82%
+ Complexity 10639 8421 -2218
============================================
Files 713 478 -235
Lines 69672 53000 -16672
Branches 7482 5663 -1819
============================================
- Hits 32746 26405 -6341
+ Misses 33212 23642 -9570
+ Partials 3714 2953 -761
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
liangyepianzhou
approved these changes
Jan 10, 2023
nicoloboschi
added a commit
to nicoloboschi/pulsar
that referenced
this pull request
Feb 9, 2023
…ache#19137) (cherry picked from commit 90764e7)
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
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.
Motivation
When the broker sends the transaction end response which has failed, the least sig bits is not included in the response payload. This also applies to other txn methods.
This is not a big deal since the java client only uses it for debug logging.
However, thanks to #14613, it's possible to intercept this response payload so it's better to pass the correct value.
Modifications
TxnidLeastBitsin txn response payloadsVerifying this change
This change is a trivial rework / code cleanup without any test coverage.
Documentation
docdoc-requireddoc-not-neededdoc-complete