You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "merajblueshift (via GitHub)" <gi...@apache.org> on 2023/09/08 00:25:24 UTC
[GitHub] [pulsar] merajblueshift edited a discussion: Behavior of reset cursor API
GitHub user merajblueshift edited a discussion: Behavior of reset cursor API
Hello
I have a question on the below API
```
https://pulsar.apache.org/admin/v2/non-persistent/{tenant}/{namespace}/{topic}/subscription/{subName}/resetcursor/{timestamp}
```
Is the timestamp corresponding to when the message was pushed into the topic.
So for example at 3PM if the topic already has a backlog of 6 hours (from 9AM and 6000 documents let us say, 1000 for each hour) and I reset to 1PM. What will happen. Will backlog stay as 6000? Or will it come down to 2000.
I know if I reset by relative position, for example 360 minutes, last 6 hours of consumed messages are again given to the consumer.
So with reset using absolute timestamp, can the cursor also be moved forward on a topic which has backlog?
GitHub link: https://github.com/apache/pulsar/discussions/21145
----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org