Skip to content

Expire message by position. - #9514

Merged
codelipenghui merged 4 commits into
apache:masterfrom
MarvinCai:zxc/expire-message-position
Feb 10, 2021
Merged

Expire message by position.#9514
codelipenghui merged 4 commits into
apache:masterfrom
MarvinCai:zxc/expire-message-position

Conversation

@MarvinCai

Copy link
Copy Markdown
Contributor

Fixes #2736

Motivation

Add ability to expire message for subscription by position to admin client and admin rest API.

Modifications

Update PersistentMessageExpiryMonitor to able to expire message by position and expose to admin client and admin rest api.

Verifying this change

This change added tests and can be verified as follows:

  • Added unit test for expire message by position in PersistentMessageFinderTest.
  • Added test for expire message by position in admin client/admin rest api.

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

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

Documentation

  • Does this pull request introduce a new feature? yes
  • If yes, how is the feature documented? docs / JavaDocs

@Renkai

Renkai commented Feb 7, 2021

Copy link
Copy Markdown
Contributor

/pulsarbot run-failure-checks

@codelipenghui
codelipenghui merged commit 301d42c into apache:master Feb 10, 2021
codelipenghui pushed a commit that referenced this pull request Feb 18, 2021
Fixes #2736

Add ability to expire message for subscription by position to admin client and admin rest API.

Update PersistentMessageExpiryMonitor to able to expire message by position and expose to admin client and admin rest api.

This change added tests and can be verified as follows:
 - Added unit test for expire message by position in PersistentMessageFinderTest.
 - Added test for expire message by position in admin client/admin rest api.

(cherry picked from commit 301d42c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-picked/branch-2.7 Archived: 2.7 is end of life release/2.7.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add admin command to truncate pulsar topics (partitions)

7 participants