question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ConnectionError after failover when credit_window=0

See original GitHub issue

I came across a different issue and when I started investigate it I run into the following scenario (Hopefully the same solution will solve both problems and if not I’ll open another one):

I defined two brokers (master & slave). I connected to the master and open a receiver with credit_window=0. Then, closed the master and not long after I saw that I’m now connected again as expected. The problem was that about a minute after I got ConnectionError: local-idle-timeout expired and the application was closed… I saw in the broker logs that the InactivityIOException came form there but It didn’t happened when I didn’t set credit_window=0 so I guess it’s related.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Gadi-Manorcommented, Oct 31, 2018

I’m using Apache ActiveMQ. I think I found the problem. I thought that if I set credit_window=0 followed by add_credit(1) then that credit will still be there even after the master/slave switch but in fact it’s 0. The strange thing is that when the credit is 0 there is an InactivityIOException after the switch. The exception isn’t thrown on the original broker even when there is no credit.

My solution to the problem is adding the credit inside the receiver_open event.

0reactions
dbit-xiacommented, Oct 30, 2019

Thank you, I verified it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting automatic failover problems - SQL Server
This article provides the troubleshooting steps for the problems that occur during automatic failover in SQL Server.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found