当我们改变系统时间时,hornetq失败了

问题描述 投票:0回答:1

我有一个问题,希望你能帮到我一点。我必须实现快速转发时间,因为我需要测试一些东西。我写了一个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]
jboss hornetq
1个回答
1
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.