You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Seek on a timestamp causes the subscription to be resetted to the earliest position. #23910
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
Pulsar v4.0.2
Pulsar Go client v0.14
Minimal reproduce step
With v4.0.2, after restarting brokers, we observe a wrong position in subscription after a seek by timestamp. The position seems to be the earliest position instead of the next message after the timestamp.
Note that after downgrading to v4.0.1, the seeking position gets back to the proper one so the message after the timestamp.
What did you expect to see?
On a seek by timestamp, we expect the subscription to reset to the next message after the timestamp available in the topic.
What did you see instead?
We observe subscriptions to reset on the earliest position when we use seek by timestamp.
The change added in #22792 can be disabled by configuring managedLedgerCursorResetLedgerCloseTimestampMaxClockSkewMillis=-1. This configuration value doesn't exist in broker.conf. For k8s deployments, setting PULSAR_PREFIX_managedLedgerCursorResetLedgerCloseTimestampMaxClockSkewMillis: "-1" in the config map is a way to configure it.
Do you have a chance to test if the problem reproduces with 4.0.2 with this configuration?
Activity
lhotari commentedon Jan 30, 2025
@Gilthoniel Thanks for reporting this issue.
The change added in #22792 can be disabled by configuring
managedLedgerCursorResetLedgerCloseTimestampMaxClockSkewMillis=-1. This configuration value doesn't exist inbroker.conf. For k8s deployments, settingPULSAR_PREFIX_managedLedgerCursorResetLedgerCloseTimestampMaxClockSkewMillis: "-1"in the config map is a way to configure it.Do you have a chance to test if the problem reproduces with 4.0.2 with this configuration?
Gilthoniel commentedon Jan 30, 2025
@lhotari thanks, it indeed works properly with v4.0.2 when using
-1so that should confirm the change has introduced a regression.lhotari commentedon Jan 30, 2025
Thanks for confirming. I have updated the release notes with information about this regression and how to apply the workaround: https://github.com/apache/pulsar/releases/tag/v4.0.2 . It will soon be published in https://pulsar.apache.org/release-notes/versioned/pulsar-4.0.2/ .
Fix apache#23910