Skip to content

[AMQ-9683] java.io.IOException on idle HTTP/XA connection#1414

Merged
jbonofre merged 1 commit intoapache:mainfrom
colinwerner:AMQ-9683__ignore_eof_when_stopping
Jun 10, 2025
Merged

[AMQ-9683] java.io.IOException on idle HTTP/XA connection#1414
jbonofre merged 1 commit intoapache:mainfrom
colinwerner:AMQ-9683__ignore_eof_when_stopping

Conversation

@colinwerner
Copy link
Contributor

@colinwerner colinwerner commented Mar 17, 2025

As described in https://issues.apache.org/jira/browse/AMQ-9683 an EMPTY payload was received in response to a GET, as an intermediate POST sent a shutdown.

This PR implements solution 1, where we ignore the exception IFF we are shutting down or we are shutdown.

Solution 2 is in #1413. We only need one or the other...

@jbonofre
Copy link
Member

I think some tests can break with this change. I will double check.

@colinwerner
Copy link
Contributor Author

I think some tests can break with this change. I will double check.

Yes, I saw that but I would not reproduce them locally. Any ideas? We are currently forking and building our own binary, which is a bit of a pain to keep up with all the dependencies, so we really appreciate your insight here!

And thanks in advance!

@colinwerner
Copy link
Contributor Author

@jbonofre any luck here?

@jbonofre
Copy link
Member

jbonofre commented Jun 3, 2025

@colinwerner on it 😄

@jbonofre
Copy link
Member

jbonofre commented Jun 3, 2025

I'm checking one test that can be problematic (but not a blocker).

Copy link
Contributor

@cshannon cshannon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this makes sense, if the transport is already stopping or stopped then exceptions are expected so probably best to log it vs throwing an exception, as long as the empty response is also handled without issue on the return and the tests are all passing.

@mattrpav
Copy link
Contributor

mattrpav commented Jun 9, 2025

IMO: This is the ideal scenario to add a counter metric. Logging can get clogged up/rotated/etc and having a counter makes it easy to monitor if this is happening in a on-off, or consistently.

@jbonofre
Copy link
Member

I think this first PR is fine as a quick fix. We can always improve later. The debug log message is good enough for now.

@jbonofre jbonofre merged commit 9c3b38a into apache:main Jun 10, 2025
1 check failed
jbonofre pushed a commit that referenced this pull request Jun 10, 2025
@colinwerner
Copy link
Contributor Author

Thank you @jbonofre -- much appreciated! I'll follow-up if we see any other issues!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments