poorbarcode commented on PR #15474:
URL: https://github.com/apache/pulsar/pull/15474#issuecomment-1120102937

   Good catch.  This patch solved the problem to some extent,  I think the 
solution is that the newly created persistent subscription 'cursor position' is 
always greater than 'message-TTL' and the 'message-TTL' policy is enabled.
   
   I have two questions:
   
   - 1
   
   > And then if we have a flink task consumer the topic( use reader to 
consumer and mark position by another durable cursor), the client will always 
reset the durable cursor to the position.
   
   why not use nodurable Reader ?
   
   - 2
   
   ```java
   ledgerClosed(lh);
   createLedgerAfterClosed();
   ```
   This should ensure that a new-leadger is always created when the old-leadger 
is closed. If this is necessary, a comment should be added to remind others 
later, better have a unit test to ensure that.
   
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to