Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

io.vertx.core.VertxException: Thread blocked Exception #4964

Closed
prakash-p-3121 opened this issue May 14, 2021 · 7 comments
Closed

io.vertx.core.VertxException: Thread blocked Exception #4964

prakash-p-3121 opened this issue May 14, 2021 · 7 comments
Labels

Comments

@prakash-p-3121
Copy link

prakash-p-3121 commented May 14, 2021

Hi,

I have a strimzi cluster with 2 kafka replicas and 1 zk replica. I'm using strimzi v0.19.0.
I get the following exception from the strimzi cluster operator.

io.vertx.core.VertxException: Thread blocked
at java.lang.Object.wait (Native Method)
at java.lang.Object.wait (Object.java:328)
at org.apache.zookeeper.ClientCnxn.submitRequest (ClientCnxn.java:1529)
at org.apache.zookeeper.ClientCnxn.submitRequest (ClientCnxn.java:1512)
at org.apache.zookeeper.ClientCnxn.close (ClientCnxn.java:1481)
at org.apache.zookeeper.ZooKeeper.close (ZooKeeper.java:1415)
at io.strimzi.operator.cluster.operator.resource.ZookeeperScaler.closeConnection (ZookeeperScaler.java:245)
at io.strimzi.operator.cluster.operator.resource.ZookeeperScaler.lambda$scale$1 (ZookeeperScaler.java:99)


	at app//io.vertx.core.impl.FutureImpl.tryFail(FutureImpl.java:195)
	at app//io.vertx.core.impl.FutureImpl.fail(FutureImpl.java:125)
	at app//io.vertx.core.impl.FutureImpl.handle(FutureImpl.java:178)
	at app//io.vertx.core.impl.FutureImpl.handle(FutureImpl.java:21)
	at app//io.vertx.core.impl.FailedFuture.onComplete(FailedFuture.java:49)
	at app//io.vertx.core.Future.lambda$compose$3(Future.java:382)
	at app//io.vertx.core.Future$$Lambda$189/0x0000000840294840.handle(Unknown Source)
	at app//io.vertx.core.impl.FutureImpl.tryFail(FutureImpl.java:195)
	at app//io.vertx.core.impl.FutureImpl.fail(FutureImpl.java:125)
	at app//io.vertx.core.impl.FutureImpl.handle(FutureImpl.java:178)
	at app//io.vertx.core.impl.FutureImpl.handle(FutureImpl.java:21)
	at app//io.vertx.core.impl.ContextImpl.lambda$null$0(ContextImpl.java:327)
	at app//io.vertx.core.impl.ContextImpl$$Lambda$200/0x0000000840291c40.handle(Unknown Source)
	at app//io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:366)
	at app//io.vertx.core.impl.EventLoopContext.lambda$executeAsync$0(EventLoopContext.java:38)
	at app//io.vertx.core.impl.EventLoopContext$$Lambda$201/0x0000000840318040.run(Unknown Source)
	at app//io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
	at app//io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
	at app//io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
	at app//io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
	at app//io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
	at app//io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.base@11.0.7/java.lang.Thread.run(Thread.java:834)

Can you please tell me how to fix this ?

@prakash-p-3121 prakash-p-3121 changed the title io.vertx.core.VertxException: Thread blocked Exceptin io.vertx.core.VertxException: Thread blocked Exception May 14, 2021
@scholzj
Copy link
Member

scholzj commented May 14, 2021

I guess you can check if your ZooKeeper works properly. If it does, there is probably no fix for this.

@ppatierno
Copy link
Member

I was wondering if this problem should have been mitigated with #4894 and #4890 that anyway are in the latest 0.23.0 release.

@prakash-p-3121
Copy link
Author

@scholzj Zookeeper pod is in running state. Can you tell me why this exception arises and how to fix it ?

@scholzj
Copy link
Member

scholzj commented May 14, 2021

As mentioned by Paolo - it is probably addressed by #4894 - at least that changed this part of code. I don't know what is to fix on it. Is it one of exception? Do the reconciliations continue afterwards? It is hard to say when all you shared is an exception.

@prakash-p-3121
Copy link
Author

I had a doubt whether this exception might have effect on the stability of the Kafka cluster. That's why I created an issue here.

@scholzj
Copy link
Member

scholzj commented May 14, 2021

As I said, that is hard to say without the full logs. If it happened once I do not think you need to be worried.

@MikeEdgar
Copy link
Contributor

I think this issue can be considered a duplicate of #4939

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants