-
Notifications
You must be signed in to change notification settings - Fork 947
ARTEMIS-4332 Add management method to close stuck server sessions #4526
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
Conversation
gemmellr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding JIRA ref in PR title would be good.
...ain/java/org/apache/activemq/artemis/core/persistence/impl/journal/OperationContextImpl.java
Show resolved
Hide resolved
...java/org/apache/activemq/artemis/core/persistence/impl/journal/OperationContextUnitTest.java
Outdated
Show resolved
Hide resolved
...java/org/apache/activemq/artemis/core/persistence/impl/journal/OperationContextUnitTest.java
Outdated
Show resolved
Hide resolved
e79c199 to
6714bb7
Compare
gemmellr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM other than the slight nitpick. I'd like someone else to review it too though.
...java/org/apache/activemq/artemis/core/persistence/impl/journal/OperationContextUnitTest.java
Outdated
Show resolved
Hide resolved
6714bb7 to
a3a3f24
Compare
|
@gemmellr thanks for your review |
...ain/java/org/apache/activemq/artemis/core/persistence/impl/journal/OperationContextImpl.java
Outdated
Show resolved
Hide resolved
a3a3f24 to
ce76651
Compare
...java/org/apache/activemq/artemis/core/persistence/impl/journal/OperationContextUnitTest.java
Show resolved
Hide resolved
...java/org/apache/activemq/artemis/core/persistence/impl/journal/OperationContextUnitTest.java
Show resolved
Hide resolved
...ain/java/org/apache/activemq/artemis/core/persistence/impl/journal/OperationContextImpl.java
Outdated
Show resolved
Hide resolved
In rare cases a store operation could silently fails or starves, blocking the related server session and all delivering messages. Those server sessions can be closed adding a management method that cleans their operation context before closing them.
ce76651 to
9b598aa
Compare
|
@brusdev only thing I could ask now is to verify if the new test over Core is failing in a loop or not? We had a few overCore tests failing in management because of noise from the Core itself (the testing framework itself is creating a connection and a session in the server's). Other than that I think we should merge this. |
rvais
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests should be enough for this one.
ARTEMIS-4332 Add management method to close stuck server sessions
In rare cases a store operation could silently fails or starves, blocking the related server session and all delivering messages. Those server sessions can be closed adding a management method that cleans their operation context before closing them.
This PR also includes an optional commit to track store operations that would help to analyze heap dumps with stuck server sessions: ARTEMIS-4332 Add store operation trackers