MpscUnboundedArrayQueue.poll Infinite Loop

164 views
Skip to first unread message

Daizhu Zou

unread,
Aug 11, 2022, 3:56:35 AM8/11/22
to grpc.io
now all grpc-default-worker-ELG threads happens below stack:
-----------------------------------------------------------------------------------------------------------------------------------

"grpc-default-worker-ELG-1-8" #179 daemon prio=5 os_prio=0 tid=0x0000fffeccd99000 nid=0x14561 runnable [0x0000fffe339fa000]
   java.lang.Thread.State: RUNNABLE
        at io.grpc.netty.shaded.io.netty.util.internal.shaded.org.jctools.queues.BaseMpscLinkedArrayQueue.poll(BaseMpscLinkedArrayQueue.java:340)
        at io.grpc.netty.shaded.io.netty.util.internal.shaded.org.jctools.queues.MpscUnboundedArrayQueue.poll(MpscUnboundedArrayQueue.java:23)
        at io.grpc.netty.shaded.io.netty.util.concurrent.SingleThreadEventExecutor.pollTaskFrom(SingleThreadEventExecutor.java:215)
        at io.grpc.netty.shaded.io.netty.util.concurrent.SingleThreadEventExecutor.pollTask(SingleThreadEventExecutor.java:210)
        at io.grpc.netty.shaded.io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:482)
        at io.grpc.netty.shaded.io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:384)
        at io.grpc.netty.shaded.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)
        at io.grpc.netty.shaded.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
        at io.grpc.netty.shaded.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
        at java.lang.Thread.run(Thread.java:748)

   Locked ownable synchronizers:
        - None


is there any solutions? thank you very much.

Sergii Tkachenko

unread,
Aug 16, 2022, 4:19:37 PM8/16/22
to grpc.io
I think this is the same issue as this one: https://github.com/grpc/grpc-java/issues/2832.
Otherwise, could you please provide more info? gRPC/netty versions?

Sergii Tkachenko

unread,
Aug 27, 2022, 10:48:34 PM8/27/22
to grpc.io
This could be related to this issue: https://github.com/netty/netty/issues/10851.
If so, upgrading to latest gRPC with netty >= 4.1.56.Final should help.

Daizhu Zou

unread,
Aug 30, 2022, 11:27:23 PM8/30/22
to grpc.io
thanks very much.

more info:
----------------------
java grpc sdk: 1.46.0 
netty:   4.1.78.Final
Reply all
Reply to author
Forward
0 new messages