WJL3333 opened a new pull request #9497:
URL: https://github.com/apache/pulsar/pull/9497


   fix logic in ManagedLedgerWriter when config threadNum >= ledgerNum
   
   ### Modifications
   
   if threadNum >= ledgerNum.
   
   allocate ledger repeat among threads.
   
   origin logic may have thread without ledger and got an exception.
   
   ### Verifying this change
   
   build and run 
   `./pulsar-perf managed-ledger -e 3 -w 2 -o 10000 --threads 20 -r 100000 -s 
2048 -zk localhost:2181`
   
   no exception in stdlog
   
   ### Documentation
   
     - Does this pull request introduce a new feature?   no
     - If yes, how is the feature documented? (not applicable)
   


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


Reply via email to