You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/05/12 13:17:57 UTC

[GitHub] [pulsar] MarvinCai commented on issue #10488: Add ability to seek from current position in Reader interface

MarvinCai commented on issue #10488:
URL: https://github.com/apache/pulsar/issues/10488#issuecomment-839765372


   Hi there, as reader already support `seek` by messageId, maybe we can expose admin API to get message position before/after  N message from given position then we can utilize the seek to position our reader. Currently we already have [ManagedLedgerImpl.getPositionAfterN ](https://github.com/apache/pulsar/blob/99ccd1d7b82ae91a5d5b5414d4cdde49a51b7710/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedLedgerImpl.java#L3036) probably we can expose it and add `getPositionBeforeN`


-- 
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:
users@infra.apache.org