candlerb commented on issue #5532: Add subscribe position param for consumer of sink URL: https://github.com/apache/pulsar/pull/5532#issuecomment-549022407 Would it be useful if this option allowed to subscribe from an arbitrary point in time too? cf. [reset-cursor](http://pulsar.apache.org/docs/en/next/pulsar-admin/#reset-cursor). `--time 0` would be latest (which I believe is default anyway). `--time 3h` would be starting from 3 hours ago. Would need some sentinel value to reset to earliest available message - I'm not sure how you'd do that with `reset-cursor` either. Aside: it's not documented in the link above, but `reset-cursor` also supports a `messageId` option. ``` $ apache-pulsar-2.4.1/bin/pulsar-admin topics reset-cursor --help Unknown option: --help Reset position for subscription to position closest to timestamp or messageId Usage: reset-cursor [options] persistent://tenant/namespace/topic Options: --messageId, -m messageId to reset back to (ledgerId:entryId) * -s, --subscription Subscription to reset position on --time, -t time in minutes to reset back to (or minutes, hours,days,weeks eg: 100m, 3h, 2d, 5w) ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
