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
[JBPM-9520] KafkaServerExtension poll is not freed #2342
Conversation
f836b0f
to
b51199c
Compare
jenkins retest this |
jenkins test this |
Changing lock policy
if (processMessages()) { | ||
removeTopics(topic2Message, deploymentId, processDefinition.getMessagesDesc()); | ||
} | ||
removeTopics(topic2Signal, deploymentId, processDefinition.getSignalsDesc()); |
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.
This change tries to cover an edge case. System property enable when onDeploy/onActivate is called, but disable when onUndeploy/onDeactivate is invoked. This will leak to a subscripton "leak". In order to avoid that, at the cost of sacrificing a bit of performance (not much in any case), it is better to clean always
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.
OK, agreed; it's very weird but not impossible. Anyway, performance impact is minimum and removing topics is during undeployment.
Jenkins retest this |
1 similar comment
Jenkins retest this |
jenkins test this (and do not fail with gitub login if possible ;)) |
jenkins test this |
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.
It worked fine, marvellous work @fjtirado !
if (processMessages()) { | ||
removeTopics(topic2Message, deploymentId, processDefinition.getMessagesDesc()); | ||
} | ||
removeTopics(topic2Signal, deploymentId, processDefinition.getSignalsDesc()); |
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.
OK, agreed; it's very weird but not impossible. Anyway, performance impact is minimum and removing topics is during undeployment.
jenkins test this |
Kudos, SonarCloud Quality Gate passed! |
Using read write lock
JIRA:
JBPM-9520