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

[Bug] messageTTL on namespaces doesn't work as expected #22316

Closed
2 of 3 tasks
zymap opened this issue Mar 21, 2024 · 1 comment
Closed
2 of 3 tasks

[Bug] messageTTL on namespaces doesn't work as expected #22316

zymap opened this issue Mar 21, 2024 · 1 comment
Assignees
Labels
category/reliability The function does not work properly in certain specific environments or failures. e.g. data lost help wanted

Comments

@zymap
Copy link
Member

zymap commented Mar 21, 2024

Search before asking

  • I searched in the issues and found nothing similar.

Read release policy

  • I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker.

Version

3.1.2.
It works fine on the 3.0.x

Minimal reproduce step

  1. Start up standalone
  2. Adjust the ledger rollover settings to make the ledgers switch fast
managedLedgerMaxEntriesPerLedger=500
managedLedgerMinLedgerRolloverTimeMinutes=0
  1. Set the retention policy on the namespace public/default
bin/pulsar-admin namespaces set-retention --size 0 --time 0 public/default
  1. Set the messageTTL on the namespace public/default
bin/pulsar-admin namespaces set-message-ttl public/default -ttl 10s
  1. Produce messages
bin/pulsar-perf produce test -r 100
  1. Consume one message
bin/pulsar-client consume -s sub test -n 1 -sp Earliest
  1. Keep watch the stats-internal
bin/pulsar-admin topics stats-internal test
  1. Because the message expiration check interval is 5min. Set the messageTTL by admin to trigger it immediately
bin/pulsar-admin namespaces set-message-ttl public/default -ttl 10s

What did you expect to see?

The cursor moves forward.

What did you see instead?

The cursor doesn't move.

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@zymap zymap changed the title [Bug] set messageTTL on namespaces doesn't work [Bug] messageTTL on namespaces doesn't work as expected Mar 21, 2024
@mattisonchao mattisonchao added help wanted category/reliability The function does not work properly in certain specific environments or failures. e.g. data lost labels Mar 21, 2024
@Technoboy- Technoboy- self-assigned this Mar 21, 2024
@dao-jun
Copy link
Member

dao-jun commented May 21, 2024

can be fixed by #22535. closing...

@dao-jun dao-jun closed this as completed May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category/reliability The function does not work properly in certain specific environments or failures. e.g. data lost help wanted
Projects
None yet
Development

No branches or pull requests

4 participants