Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARTEMIS-4476 Possible isolated consumer with OpenWire #4694

Closed
wants to merge 1 commit into from

Conversation

clebertsuconic
Copy link
Contributor

No description provided.

Assert.assertTrue(beforeCreateCalled.await(5, TimeUnit.MINUTES));

server.getRemotingService().getConnections().forEach(r -> {
r.fail(new ActiveMQException("this is a simulation"));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this would block with the current version as this is calling shutdown.

I'm blocking the thread on purpose there.

I could not reproduce the leakage here. But I believe the change I made would be better in this case.

I'm open to suggestions.

}

if (executor != null) {
executor.execute(() -> doFail(me, message));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@gtully notice that the executor is used by the Actor. Meaning it will always execute after sthudown is called, using the same thread it would have used with the actor.

This is just a safer option.

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't follow, the point is to terminate processing of commands and execute the doFail as the last/next task. The only call to fail should be from the netty socket handler that sees a socket error, remote close etc. It is the transport initiating a close on a socket error.

@clebertsuconic
Copy link
Contributor Author

replaced by #4700

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants