Skip to content

Conversation

@liangyepianzhou
Copy link
Contributor

Fixes #15832

Motivation

Transaction needs batch size to help determine whether the batch message is in the pending ack state.

Modifications

Returns the batch size of messageID directly.

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.

(or)

This change is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

  • Added integration tests for end-to-end deployment with large payloads (10MB)
  • Extended integration test for recovery after broker failure

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

If yes was chosen, please highlight the changes

  • Dependencies (does it add or upgrade a dependency): (yes / no)
  • The public API: (yes / no)
  • The schema: (yes / no / don't know)
  • The default values of configurations: (yes / no)
  • The wire protocol: (yes / no)
  • The rest endpoints: (yes / no)
  • The admin cli options: (yes / no)
  • Anything that affects deployment: (yes / no / don't know)

Documentation

Check the box below or label this PR directly.

Need to update docs?

  • doc-required
    (Your PR needs to update docs and you will update later)

  • doc-not-needed
    (Please explain why)

  • doc
    (Your PR contains doc changes)

  • doc-complete
    (Docs have been already added)

@liangyepianzhou
Copy link
Contributor Author

/pulsarbot run-failure-checks

Copy link
Contributor

@Jason918 Jason918 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@congbobo184 congbobo184 merged commit f87b370 into apache:master Jun 7, 2022
codelipenghui pushed a commit that referenced this pull request Jun 7, 2022
Fixes #15832

### Motivation
The transaction needs batch size to help determine whether the batch message is in the pending ack state.

### Modifications
Returns the batch size of messageID directly.

(cherry picked from commit f87b370)
@codelipenghui codelipenghui added this to the 2.11.0 milestone Jun 7, 2022
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Jun 7, 2022
Fixes apache#15832

### Motivation
The transaction needs batch size to help determine whether the batch message is in the pending ack state.

### Modifications
Returns the batch size of messageID directly.

(cherry picked from commit f87b370)
(cherry picked from commit 2cd29dc)
codelipenghui pushed a commit that referenced this pull request Jun 10, 2022
Fixes #15832

### Motivation
The transaction needs batch size to help determine whether the batch message is in the pending ack state.

### Modifications
Returns the batch size of messageID directly.

(cherry picked from commit f87b370)
@codelipenghui codelipenghui added the cherry-picked/branch-2.9 Archived: 2.9 is end of life label Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/transaction cherry-picked/branch-2.9 Archived: 2.9 is end of life cherry-picked/branch-2.10 doc-not-needed Your PR changes do not impact docs release/2.9.3 release/2.10.1 type/bug The PR fixed a bug or issue reported a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Get batch size return 1 when is not Individual ack mode

4 participants