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 2019/06/03 14:58:34 UTC

[GitHub] [pulsar] nkurihar opened a new issue #4447: Broker gets stuck when getting partitioned stats

nkurihar opened a new issue #4447: Broker gets stuck when getting partitioned stats
URL: https://github.com/apache/pulsar/issues/4447
 
 
   **Describe the bug**
   
   Brokers in our cluster get stuck when executing `internalGetPartitionedStats`:
   https://github.com/apache/pulsar/blob/3cfa81250e49b24b4b195f8e2d510fcd24b93745/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java#L609-L610
   
   stack trace:
   ```
   "pulsar-web-28-31" #584 prio=5 os_prio=0 tid=0x00007f2908001000 nid=0xa8ed waiting on condition [0x00007f288ce97000]
      java.lang.Thread.State: WAITING (parking)
           at sun.misc.Unsafe.park(Native Method)
           - parking to wait for  <0x00007f48d199a5b0> (a java.util.concurrent.CompletableFuture$Signaller)
           at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
           at java.util.concurrent.CompletableFuture$Signaller.block(CompletableFuture.java:1693)
           at java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3323)
           at java.util.concurrent.CompletableFuture.waitingGet(CompletableFuture.java:1729)
           at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1895)
           at org.apache.pulsar.client.admin.internal.TopicsImpl.getStats(TopicsImpl.java:380)
           at org.apache.pulsar.broker.admin.impl.PersistentTopicsBase.internalGetPartitionedStats(PersistentTopicsBase.java:610)
           at org.apache.pulsar.broker.admin.v1.PersistentTopics.getPartitionedStats(PersistentTopics.java:279)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:498)
           at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
           at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)
           at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)
           at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:205)
           at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)
           at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)
           at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
           at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
           at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326)
           at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
           at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
           at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
           at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
           at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
           at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
           at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)
           at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)
           at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473)
           at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427)
           at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388)
           at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341)
           at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228)
           at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:845)
           at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1689)
           at org.apache.pulsar.broker.web.ResponseHandlerFilter.doFilter(ResponseHandlerFilter.java:53)
           at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
           at org.apache.pulsar.broker.web.AuthenticationFilter.doFilter(AuthenticationFilter.java:74)
           at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
           at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)
           at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:224)
           at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)
           at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
           at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
           at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)
           at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
           at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
           at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
           at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
           at org.eclipse.jetty.server.Server.handle(Server.java:524)
           at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:319)
           at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:253)
           at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
           at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
           at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:202)
           at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
           at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
           at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
           at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
           at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
           at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
           at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
           at java.lang.Thread.run(Thread.java:748)
   ```
   
   **To Reproduce**
   We haven't reproduced yet.
   
   **Additional context**
   Broker OS: CentOS Linux release 7.6.1810
   Broker version: 2.2.1
   Broker spec: Real server / 2.10GHz / 2CPU / 256GBMEM / SATA SSD 240GB x1 / 10G Base-T*2port

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


With regards,
Apache Git Services