Skip to content
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

[cleanup] [broker] fix doc for TransactionBuffer#isTxnAborted #21956

Merged
merged 2 commits into from
Jan 25, 2024

Conversation

thetumbled
Copy link
Member

@thetumbled thetumbled commented Jan 23, 2024

Motivation

The argument PositionImpl readPosition of method org.apache.pulsar.broker.transaction.buffer.TransactionBuffer#isTxnAborted is weird and unneccessary, we have better remove it to avoid confusion.
Argument PositionImpl readPosition is used for future.

Modifications

Remove the argument PositionImpl readPosition.
fix the doc and add to-do to avoid confusion.

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • The metrics
  • Anything that affects deployment

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository: thetumbled#36

@thetumbled
Copy link
Member Author

PTAL, thanks. @congbobo184 @liangyepianzhou

@thetumbled thetumbled changed the title [cleanup] [broker] clean up the unneccessary argument [cleanup] [broker] fix doc for TransactionBuffer#isTxnAborted Jan 23, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jan 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b14fcb4) 73.60% compared to head (55e0ea0) 73.62%.
Report is 3 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #21956      +/-   ##
============================================
+ Coverage     73.60%   73.62%   +0.01%     
- Complexity    32411    32441      +30     
============================================
  Files          1861     1861              
  Lines        138674   138676       +2     
  Branches      15182    15184       +2     
============================================
+ Hits         102070   102096      +26     
+ Misses        28702    28696       -6     
+ Partials       7902     7884      -18     
Flag Coverage Δ
inttests 24.08% <ø> (-0.12%) ⬇️
systests 23.63% <ø> (-0.09%) ⬇️
unittests 72.92% <ø> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 73 files with indirect coverage changes

@Technoboy- Technoboy- added this to the 3.3.0 milestone Jan 24, 2024
@thetumbled thetumbled requested a review from Technoboy- January 24, 2024 06:08
@liangyepianzhou liangyepianzhou merged commit 434da8b into apache:master Jan 25, 2024
47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-not-needed Your PR changes do not impact docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants