【问题标题】:hornetq fails when we change system time当我们更改系统时间时,hornetq 失败
【发布时间】:2018-09-05 22:47:18
【问题描述】:

我有一个问题,希望你能帮我一点忙。 我必须实现快速转发时间,因为我需要测试一些东西。我写了一个 python 脚本,每 1 秒增加 5 秒的系统时间。 (快 5 倍)。 然后我的 jboss 因一些 hornetq 超时而失败。 你有什么想法我可以解决这个问题吗?

03/09/18 09:18:00,107 WARN  
[org.hornetq.core.protocol.core.impl.RemotingConnectionImpl] (hornetq- 
failure-check-thread) Connection failure has been detected: Did not 
receive data from invm:0. It is likely the client has exited or crashed 
without closing its connection, or the network between the server and 
client has failed. You also might have configured connection-ttl and 
client-failure-check-period incorrectly. Please check user manual for 
more information. The connection will now be closed. [code=3]

【问题讨论】:

  • 您使用的是什么版本的 HornetQ?它是独立的还是嵌入到另一个进程中?
  • @JustinBertram jboss 7.1.1 使用 hornetq 2.2.13.Final

标签: jboss hornetq


【解决方案1】:

根本问题是更改时间会破坏代理使用的连接失败检测算法。代理认为它没有在适当的时间从客户端接收“ping”数据包,因为你强迫时间以正常速率的 5 倍通过。除了禁用或扩展连接 TTL 之外,没有其他方法可以为远程客户端解决此问题。但是,对于 in-vm 连接,您可以将来自 https://issues.jboss.org/browse/HORNETQ-1314 的修复(在您使用的 HornetQ 版本中未解决)应用到您当前正在使用和重建的 HornetQ 分支。如果您不想重建,您可以升级到包含此修复程序的 JBoss AS(或 Wildfly)版本。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-09-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多