当我们更改系统时间时 hornetq 失败

hornetq fails when we change system time

我有一个问题,希望你能帮帮我。 我必须实现快进时间,因为我需要测试一些东西。我写了一个 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]

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