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

[improve] [broker] Do not call cursor.isCursorDataFullyPersistable if disabled dispatcherPauseOnAckStatePersistentEnabled #22729

Merged
merged 1 commit into from
May 17, 2024

Conversation

poorbarcode
Copy link
Contributor

Motivation

The method cursor.isCursorDataFullyPersistable was added with PIP-299-part-1: Stop dispatch messages if the individual acks will be lost in the persistent storage, it used to check if the dispatching should be pause.

Calling cursor.isCursorDataFullyPersistable will loop the collection cursor.individualDeletedMessages. It is
not a light method. If never enabled "dispatcherPauseOnAckStatePersistentEnabled", should avoid calling cursor.isCursorDataFullyPersistable.

Modifications

Avoid calling cursor.isCursorDataFullyPersistable if disabled dispatcherPauseOnAckStatePersistentEnabled

Documentation

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

Matching PR in forked repository

PR in forked repository: x

… disabled dispatcherPauseOnAckStatePersistentEnabled
@poorbarcode poorbarcode added this to the 3.4.0 milestone May 17, 2024
@poorbarcode poorbarcode self-assigned this May 17, 2024
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label May 17, 2024
@poorbarcode
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

Copy link
Member

@dao-jun dao-jun left a comment

Choose a reason for hiding this comment

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

lgtm

@poorbarcode poorbarcode merged commit 23d5e12 into apache:master May 17, 2024
57 of 59 checks passed
Technoboy- pushed a commit that referenced this pull request Jun 6, 2024
… disabled dispatcherPauseOnAckStatePersistentEnabled (#22729)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants