gpt4 book ai didi

java - 如何让 Vert.x 和 Apache Ignite Client 协同工作?

转载 作者:行者123 更新时间:2023-12-02 01:07:20 28 4
gpt4 key购买 nike

我部署了 Apache Ignite 集群,我需要使用 Vert.x 后端的缓存执行不同的操作。
我使用 Apache Ignite 客户端(不是瘦客户端)成功连接到集群。 Apache Ingite 客户端在 Vert.x verticle 内运行:

 vertx.deployVerticle(new IgniteVerticle(),
new DeploymentOptions().setInstances(1).setWorker(true),
apacheIgniteVerticleDeployment.completer());

但一段时间后,我开始收到以下消息:

SEVERE: Blocked system-critical thread has been detected. 
This can lead to cluster-wide undefined behaviour [threadName=tcp-comm-worker, blockedFor=28s]

SEVERE: Critical system error detected. Will be handled accordingly to configured handler
[hnd=NoOpFailureHandler [super=AbstractFailureHandler [ignoredFailureTypes=[SYSTEM_WORKER_BLOCKED]]], failureCtx=FailureContext [type=SYSTEM_WORKER_BLOCKED,
err=class o.a.i.IgniteException: GridWorker [name=tcp-comm-worker, igniteInstanceName=null, finished=false, heartbeatTs=1567112815022]]]
class org.apache.ignite.IgniteException: GridWorker [name=tcp-comm-worker, igniteInstanceName=null, finished=false, heartbeatTs=1567112815022]
at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance$2.apply(IgnitionEx.java:1831) at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance$2.apply(IgnitionEx.java:1826)
at org.apache.ignite.internal.worker.WorkersRegistry.onIdle(WorkersRegistry.java:233)
at org.apache.ignite.internal.util.worker.GridWorker.onIdle(GridWorker.java:297)
at org.apache.ignite.internal.processors.timeout.GridTimeoutProcessor$TimeoutWorker.body(GridTimeoutProcessor.java:221)
at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:120)
at java.lang.Thread.run(Thread.java:748)

此类消息大约每 10 秒出现一次。我猜测这可能与 Vert.x 的工作方式有关。
这些异常的原因可能是什么?

最佳答案

您可以尝试增加 IgniteConfiguration 上的 systemWorkerBlockedTimeout 来消除此消息。在文档中查看更多内容: https://apacheignite.readme.io/docs/critical-failures-handling

关于java - 如何让 Vert.x 和 Apache Ignite Client 协同工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57718491/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com