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

[Transaction] Add a check for uninitialized PendingAck #13088

Merged
merged 4 commits into from
Dec 6, 2021
Merged

[Transaction] Add a check for uninitialized PendingAck #13088

merged 4 commits into from
Dec 6, 2021

Conversation

liangyepianzhou
Copy link
Contributor

Motivation

We should not generate the statistics of a uninitialized PendingAck,and we should check if it is initialized when we get it by getStoreManageLedger().

Modifications

Do not generate the statistics of a uninitialized PendingAck.
Add check if it is initialized when we get it by getStoreManageLedger().

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 and label this PR (if you have committer privilege).

Need to update docs?

  • doc-required

    (If you need help on updating docs, create a doc issue)

  • no-need-doc

    (Please explain why)

  • doc

    (If this PR contains doc changes)

We shoud not generate the statistics of a uninitialized PendingAck,and we should check if it is initialized when we get it by `getStoreManageLedger()`.
### Modifications
 Shoud not generate the statistics of a uninitialized PendingAck
 Add check if it is initialized when we get it by `getStoreManageLedger()`.
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Dec 2, 2021
@dave2wave
Copy link
Member

Please update the title to something meaningful

@liangyepianzhou liangyepianzhou changed the title ### Motivation [Transaction] Add a check for uninitialized PendingAck Dec 3, 2021
@liangyepianzhou
Copy link
Contributor Author

/pulsarbot run-failure-checks

@codelipenghui codelipenghui merged commit 591b4e8 into apache:master Dec 6, 2021
fxbing pushed a commit to fxbing/pulsar that referenced this pull request Dec 19, 2021
### Motivation

We shoud not generate the statistics of a uninitialized PendingAck,and we should check if it is initialized when we get it by `getStoreManageLedger()`.
### Modifications
 Shoud not generate the statistics of a uninitialized PendingAck
 Add check if it is initialized when we get it by `getStoreManageLedger()`.
codelipenghui pushed a commit that referenced this pull request Dec 21, 2021
### Motivation

We shoud not generate the statistics of a uninitialized PendingAck,and we should check if it is initialized when we get it by `getStoreManageLedger()`.
### Modifications
 Shoud not generate the statistics of a uninitialized PendingAck
 Add check if it is initialized when we get it by `getStoreManageLedger()`.

(cherry picked from commit 591b4e8)
@codelipenghui codelipenghui added the cherry-picked/branch-2.9 Archived: 2.9 is end of life label Dec 21, 2021
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 doc-not-needed Your PR changes do not impact docs release/2.9.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants