ignite - 点燃:未能等待初始分区映射交换
问题描述
我有一个非常简单的弹簧组件:
@Component
public abstract class IgniteComponent {
protected final Ignite ignite;
/**
* Start the ignite
*/
public IgniteComponent() {
this.ignite = Ignition.getOrStart(new IgniteConfiguration());
}
/**
* Get the ignite
*
* @return The ignite
*/
public Ignite getIgnite() {
return this.ignite;
}
}
当我在本地单元测试中使用此组件时,一切正常。但是当我想在一个竹代理上运行我的单元测试时,我总是得到以下结果:
24-Jul-2018 13:36:38 2018-07-24 11:36:38.888 WARN 7259 --- [ Test worker] .i.p.c.GridCachePartitionExchangeManager : Failed to wait for initial partition map exchange. Possible reasons are:
24-Jul-2018 13:36:38 ^-- Transactions in deadlock.
24-Jul-2018 13:36:38 ^-- Long running transactions (ignore if this is the case).
24-Jul-2018 13:36:38 ^-- Unreleased explicit locks.
我找不到任何理由。我正在使用的 ignite 版本是:
dependencySet (group: 'org.apache.ignite', version: '2.2.0') {
entry 'ignite-core'
entry 'ignite-spring'
}
这个问题的原因通常是什么?
解决方案
默认使用组播 IP 查找器。如果您在共享代理上运行您的 Ignite,它会尝试加入那里存在的任何节点,但会产生意想不到的结果。尝试禁用多播(例如使用VM finder)或提供实例的整个日志。
推荐阅读
- python - 我需要用python在文件中绘制一个表格
- html - 从 Angular 中的多个动态生成的 Mat 选择列表中获取选定的值
- ruby-on-rails - RoR cap 部署与 gitlab-runner 卡住并且没有触发通过响应
- c++ - 如何读取纹理数据以便进行编辑?
- jupyter-notebook - 如何在 Jupyter 笔记本中为 h2o 加载 RDBMS 驱动程序?
- angular - npm install -g ionic 奇怪的行为
- python - MultiIndex 数据帧的平均值
- html - 如何使带有徽标的导航栏居中?
- jenkins - 合并詹金斯文件 | withcredentials 和 sshagent
- java - Spring Cloud Config 动态 Vault 令牌