You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@artemis.apache.org by "jbonofre (via GitHub)" <gi...@apache.org> on 2026/09/21 11:39:31 UTC
[PR] NO-JIRA Guard against null node ID in QuorumManager.vote() [artemis]
jbonofre opened a new pull request, #6729:
URL: https://github.com/apache/artemis/pull/6729
## Summary
- `ClusterController.getNodeID()` delegates to `ActiveMQServer.getNodeID()`, which is `null` until this node's `NodeManager` has assigned/read a node ID.
- `QuorumManager.vote()` called `.toString()` on that value directly while filtering the local node out of the vote targets, so a connection failure that triggers a quorum vote before the node ID is set (e.g. very early in backup startup) throws a `NullPointerException`, surfacing as `AMQ214002: Failed to execute failure listener`.
- This guards the null case: when our own node ID isn't known yet, we can't identify "ourselves" in the topology, so every member is included in the vote instead of crashing.
## Test plan
- [ ] Existing quorum/HA integration tests pass
- [ ] Manually reproduce by triggering a connection failure during backup startup before node ID assignment completes, confirm no NPE and vote proceeds
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org
Re: [PR] NO-JIRA Guard against null node ID in QuorumManager.vote() [artemis]
Posted by "jbertram (via GitHub)" <gi...@apache.org>.
jbertram commented on PR #6729:
URL: https://github.com/apache/artemis/pull/6729#issuecomment-5821192321
@jbonofre, any feedback here?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org
Re: [PR] NO-JIRA Guard against null node ID in QuorumManager.vote() [artemis]
Posted by "jbertram (via GitHub)" <gi...@apache.org>.
jbertram commented on PR #6729:
URL: https://github.com/apache/artemis/pull/6729#issuecomment-5761234625
Is this theoretical or did you actually see an NPE thrown here?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org
Re: [PR] NO-JIRA Guard against null node ID in QuorumManager.vote() [artemis]
Posted by "jbertram (via GitHub)" <gi...@apache.org>.
jbertram commented on PR #6729:
URL: https://github.com/apache/artemis/pull/6729#issuecomment-6065136365
I associated this with a Jira and committed it via https://github.com/apache/artemis/commit/7a45a14114e9ae5af7665c9a05e4f7946f7cf7fa.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org
Re: [PR] NO-JIRA Guard against null node ID in QuorumManager.vote() [artemis]
Posted by "jbertram (via GitHub)" <gi...@apache.org>.
jbertram closed pull request #6729: NO-JIRA Guard against null node ID in QuorumManager.vote()
URL: https://github.com/apache/artemis/pull/6729
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org