gaoran10 opened a new pull request #11226:
URL: https://github.com/apache/pulsar/pull/11226


   The PR https://github.com/apache/pulsar/pull/8946 and 
https://github.com/apache/pulsar/pull/11116 couldn't be cherry-picked to 
`branch-2.7`, because there are too many conflicts.
   
   ### Motivation
   
   Currently, the ledger rollover scheduled task will execute before reach the 
ledger maximum rollover time, this will cause the ledger doesn't roll over in 
time.
   
   ### Modifications
   
   Only make the ledger rollover scheduled task after the ledger created 
successfully.
   If the scheduled task was executed when there is no entry in the current 
ledger, the scheduled task will not be re-executed, and if there is new entry 
is added the ledger will rollover.
   
   ### Verifying this change
   
   Add a unit test to verify the ledger could be rolled over in time.
   
   ### Does this pull request potentially affect one of the following parts:
   
   *If `yes` was chosen, please highlight the changes*
   
     - Dependencies (does it add or upgrade a dependency): (no)
     - The public API: (no)
     - The schema: (no)
     - The default values of configurations: (no)
     - The wire protocol: (no)
     - The rest endpoints: (no)
     - The admin cli options: (no)
     - Anything that affects deployment: (no)
   


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