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/04/30 01:32:48 UTC

[GitHub] [pulsar] rdhabalia opened a new pull request #10447: [pulsar-broker] Fix: unblock stuck thread on update-partition api

rdhabalia opened a new pull request #10447:
URL: https://github.com/apache/pulsar/pull/10447


   ### Motivation
   Recently we have seen that update partitioned topic API stuck sometime and if user tries to call the API multiple time then it blocks all web threads of broker. So, set the timeout to unblock web-threads on update partition API.
   ```
   "pulsar-web-35-22" #273 prio=5 os_prio=0 cpu=676.55ms elapsed=309.19s tid=0x00007fc2e8001530 nid=0x1e74 waiting on condition  [0x00007fc08af3a000]
      java.lang.Thread.State: WAITING (parking)
           at jdk.internal.misc.Unsafe.park(java.base@11.0.8/Native Method)
           - parking to wait for  <0x000010002f9bb5b8> (a java.util.concurrent.CompletableFuture$Signaller)
           at java.util.concurrent.locks.LockSupport.park(java.base@11.0.8/LockSupport.java:194)
           at java.util.concurrent.CompletableFuture$Signaller.block(java.base@11.0.8/CompletableFuture.java:1796)
           at java.util.concurrent.ForkJoinPool.managedBlock(java.base@11.0.8/ForkJoinPool.java:3128)
           at java.util.concurrent.CompletableFuture.waitingGet(java.base@11.0.8/CompletableFuture.java:1823)
           at java.util.concurrent.CompletableFuture.get(java.base@11.0.8/CompletableFuture.java:1998)
           at org.apache.pulsar.broker.admin.impl.PersistentTopicsBase.internalUpdatePartitionedTopic(PersistentTopicsBase.java:440)
           at org.apache.pulsar.broker.admin.v1.PersistentTopics.updatePartitionedTopic(PersistentTopics.java:175)
           at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@11.0.8/Native Method)
           at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@11.0.8/NativeMethodAccessorImpl.java:62)
           at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@11.0.8/DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(java.base@11.0.8/Method.java:566)
           at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:76)
           at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$$Lambda$372/0x00007fc24f6d0040.invoke(Unknown Source)
           at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:148)
           at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:191)
           at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$VoidOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:183)
           at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:103)
           at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:493)
           at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:415)
           at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:104)
   
   ```


-- 
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] eolivelli merged pull request #10447: [pulsar-broker] Fix: unblock stuck thread on update-partition api

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


   


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