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/02/05 18:54:35 UTC

[GitHub] [pulsar] WJL3333 opened a new pull request #9497: [Issue 9496] fix logic in ManagedLedgerWriter when config threadNum >= ledgerNum

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



[GitHub] [pulsar] sijie merged pull request #9497: [Issue 9496] fix logic in ManagedLedgerWriter when config threadNum >= ledgerNum

Posted by GitBox <gi...@apache.org>.
sijie merged pull request #9497:
URL: https://github.com/apache/pulsar/pull/9497


   


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