You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If the connection between Traccar and the Redis cluster dies for any reason, the connection is not automatically reestablished and logs are spammed with logs like
2023-12-11 14:39:40 WARN: Broadcast failed -
redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketException: Broken pipe (Write failed)
at redis.clients.jedis.Connection.flush(Connection.java:341)
at redis.clients.jedis.Connection.getIntegerReply(Connection.java:292)
at redis.clients.jedis.Jedis.publish(Jedis.java:7937)
at org.traccar.broadcast.RedisBroadcastService.sendMessage(RedisBroadcastService.java:71)
To Reproduce
Configure traccar with broadcast.type redis
Point broadcast.address against a redis instance with a configured timeout (or just manually interrupt the connection, once everything is up and running)
Monitor Redis client list with redis-cli -h 1.2.3.4 client list | grep jedis until all clients are gone
Send data to traccar instance
=> Receive errors in logs
Expected behavior
Have traccar reestablish the lost connection to Redis and resend the failed broadcast message.
Additional context
Running version v5.10 in Kubernetes with multiple traccar replicas pointing against a redis-cluster behind haproxy.
The text was updated successfully, but these errors were encountered:
Describe the bug
If the connection between Traccar and the Redis cluster dies for any reason, the connection is not automatically reestablished and logs are spammed with logs like
To Reproduce
broadcast.type redis
broadcast.address
against a redis instance with a configured timeout (or just manually interrupt the connection, once everything is up and running)redis-cli -h 1.2.3.4 client list | grep jedis
until all clients are goneExpected behavior
Have traccar reestablish the lost connection to Redis and resend the failed broadcast message.
Additional context
Running version v5.10 in Kubernetes with multiple traccar replicas pointing against a redis-cluster behind haproxy.
The text was updated successfully, but these errors were encountered: