forked from apache/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Issue 9496] fix logic in ManagedLedgerWriter when config threadNum >…
…= ledgerNum (apache#9497) Fix apache#9496 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)
- Loading branch information
1 parent
16a2240
commit 07f3509
Showing
1 changed file
with
38 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters