Skip to content

Update SQSConnection to avoid race condition #108

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

Merged
merged 1 commit into from
Apr 25, 2022
Merged

Update SQSConnection to avoid race condition #108

merged 1 commit into from
Apr 25, 2022

Conversation

ziyanli-amazon
Copy link
Contributor

Fixing a potential bug: SQSSessionCallbackScheduler left threads in waiting state infinitely.

*Issue #, if available: 105

*Description of changes: Fixing a potential bug: SQSSessionCallbackScheduler left threads in waiting state infinitely.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Fixing a potential bug: SQSSessionCallbackScheduler left threads in waiting state infinitely.

Update Pom
@ziyanli-amazon ziyanli-amazon requested a review from eddy-aws April 23, 2022 01:09
@@ -196,7 +196,14 @@ public Session createSession(boolean transacted, int acknowledgeMode) throws JMS
throw new JMSException("Unrecognized acknowledgeMode. Cannot create Session.");
}
synchronized (stateLock) {
checkClosing();
if (closing) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we create a new method validateSession and move this to the method?

@eddy-aws eddy-aws merged commit 825cde1 into awslabs:master Apr 25, 2022
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.

2 participants