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 2020/07/08 11:12:29 UTC

[GitHub] [pulsar] opera33 opened a new issue #7482: ERROR org.apache.bookkeeper.common.util.SafeRunnable - Unexpected throwable caught java.lang.ArrayIndexOutOfBoundsException: 100 while starting broker in cluster mode

opera33 opened a new issue #7482:
URL: https://github.com/apache/pulsar/issues/7482


   **Describe the bug**
   Getting error while trying to start broker in a 2 node cluster mode, with over 200 pulsar functions registered to it.
   
   **To Reproduce**
   I have freshly setup the cluster, and on first run, adding 200 of the function is fine, then when the broker goes down and come back, it can't be started again.
   
   **Expected behavior**
   Pulsar broker to start as usual
   
   **Additional context**
   Add any other context about the problem here.
   
   
   ` [broker-topic-workers-OrderedScheduler-7-0] ERROR org.apache.bookkeeper.common.util.SafeRunnable - Unexpected throwable caught 
   java.lang.ArrayIndexOutOfBoundsException: 100
   	at org.apache.pulsar.broker.service.EntryBatchIndexesAcks.setIndexesAcks(EntryBatchIndexesAcks.java:34) ~[org.apache.pulsar-pulsar-broker-2.6.0.jar:2.6.0]
   	at org.apache.pulsar.broker.service.AbstractBaseDispatcher.filterEntriesForConsumer(AbstractBaseDispatcher.java:119) ~[org.apache.pulsar-pulsar-broker-2.6.0.jar:2.6.0]
   	at org.apache.pulsar.broker.service.persistent.PersistentDispatcherSingleActiveConsumer.internalReadEntriesComplete(PersistentDispatcherSingleActiveConsumer.java:241) ~[org.apache.pulsar-pulsar-broker-2.6.0.jar:2.6.0]
   	at org.apache.pulsar.broker.service.persistent.PersistentDispatcherSingleActiveConsumer.lambda$readEntriesComplete$1(PersistentDispatcherSingleActiveConsumer.java:187) ~[org.apache.pulsar-pulsar-broker-2.6.0.jar:2.6.0]
   	at org.apache.bookkeeper.mledger.util.SafeRun$1.safeRun(SafeRun.java:32) ~[org.apache.pulsar-managed-ledger-2.6.0.jar:2.6.0]
   	at org.apache.bookkeeper.common.util.SafeRunnable.run(SafeRunnable.java:36) [org.apache.bookkeeper-bookkeeper-common-4.10.0.jar:4.10.0]
   	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_252]
   	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_252]
   	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_252]
   	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:1.8.0_252]
   	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_252]
   	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_252]
   	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [io.netty-netty-common-4.1.48.Final.jar:4.1.48.Final]
   	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_252]`


----------------------------------------------------------------
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] codelipenghui commented on issue #7482: ERROR org.apache.bookkeeper.common.util.SafeRunnable - Unexpected throwable caught java.lang.ArrayIndexOutOfBoundsException: 100 while starting broker in cluster mode

Posted by GitBox <gi...@apache.org>.
codelipenghui commented on issue #7482:
URL: https://github.com/apache/pulsar/issues/7482#issuecomment-655529915


   @opera33 Did you change the `dispatcherMaxRoundRobinBatchSize` in the broker.conf?


----------------------------------------------------------------
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] codelipenghui commented on issue #7482: ERROR org.apache.bookkeeper.common.util.SafeRunnable - Unexpected throwable caught java.lang.ArrayIndexOutOfBoundsException: 100 while starting broker in cluster mode

Posted by GitBox <gi...@apache.org>.
codelipenghui commented on issue #7482:
URL: https://github.com/apache/pulsar/issues/7482#issuecomment-655536435


   @opera33 I have created a PR #7483 for fixing this problem, thanks for your feedback.


----------------------------------------------------------------
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] opera33 commented on issue #7482: ERROR org.apache.bookkeeper.common.util.SafeRunnable - Unexpected throwable caught java.lang.ArrayIndexOutOfBoundsException: 100 while starting broker in cluster mode

Posted by GitBox <gi...@apache.org>.
opera33 commented on issue #7482:
URL: https://github.com/apache/pulsar/issues/7482#issuecomment-655542318


   Hi,
   
   Didn't change that, if that help, I can try setting it.
   
   Thanks!
   
   On Wed, 8 Jul 2020, 21:45 lipenghui, <no...@github.com> wrote:
   
   > @opera33 <https://github.com/opera33> Did you change the
   > dispatcherMaxRoundRobinBatchSize in the broker.conf?
   >
   > —
   > You are receiving this because you were mentioned.
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/pulsar/issues/7482#issuecomment-655529915>, or
   > unsubscribe
   > <https://github.com/notifications/unsubscribe-auth/AAWMDZTWAEL6YKHXB5Y7QITR2RZ7PANCNFSM4OUOXS5Q>
   > .
   >
   


----------------------------------------------------------------
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] codelipenghui removed a comment on issue #7482: ERROR org.apache.bookkeeper.common.util.SafeRunnable - Unexpected throwable caught java.lang.ArrayIndexOutOfBoundsException: 100 while starting broker in cluster mode

Posted by GitBox <gi...@apache.org>.
codelipenghui removed a comment on issue #7482:
URL: https://github.com/apache/pulsar/issues/7482#issuecomment-655529915


   @opera33 Did you change the `dispatcherMaxRoundRobinBatchSize` in the broker.conf?


----------------------------------------------------------------
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 closed issue #7482: ERROR org.apache.bookkeeper.common.util.SafeRunnable - Unexpected throwable caught java.lang.ArrayIndexOutOfBoundsException: 100 while starting broker in cluster mode

Posted by GitBox <gi...@apache.org>.
sijie closed issue #7482:
URL: https://github.com/apache/pulsar/issues/7482


   


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