IGNITE-28455 Remove volatile node names and IDs#7930
Merged
sashapolo merged 1 commit intoapache:mainfrom Apr 6, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR (IGNITE-28455) removes redundant volatile caching of local node identifiers/names and standardizes on using InternalClusterNode (and its id() / name()) directly across transaction, table, and replicator components.
Changes:
- Remove cached
localNodeIdusage inTxManagerImpland uselocalNode.id()directly. - Simplify
TableManagerconstructor by removing the separatenodeNameparameter and deriving names fromlocalNode. - Refactor
ReplicaManager/ReplicaStateManagerto avoid volatile local-node fields by passinglocalNodeIdvia constructor and usinglocalNode.name().
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| modules/transactions/src/main/java/org/apache/ignite/internal/tx/impl/TxManagerImpl.java | Drops volatile localNodeId field; uses localNode.id() and makes helper listener static. |
| modules/table/src/main/java/org/apache/ignite/internal/table/distributed/TableManager.java | Removes nodeName field/ctor param; stores localNode and uses localNode.name() for thread naming and GC. |
| modules/table/src/test/java/org/apache/ignite/internal/table/distributed/TableManagerTest.java | Updates TableManager construction to pass staticLocalNode() instead of node name string. |
| modules/table/src/test/java/org/apache/ignite/internal/table/distributed/TableManagerRecoveryTest.java | Updates TableManager construction to pass node instead of separate node name + node args. |
| modules/runner/src/main/java/org/apache/ignite/internal/app/IgniteImpl.java | Removes partitionRaftConfigurer field; keeps it as a local variable and updates TableManager construction to pass localNode. |
| modules/runner/src/integrationTest/java/org/apache/ignite/internal/runner/app/ItIgniteNodeRestartTest.java | Updates TableManager construction to pass staticLocalNode(). |
| modules/replicator/src/main/java/org/apache/ignite/internal/replicator/ReplicaStateManager.java | Makes localNodeId final and constructor-provided; simplifies start() signature. |
| modules/replicator/src/main/java/org/apache/ignite/internal/replicator/ReplicaManager.java | Removes volatile local node id/name fields; stores localNode from staticLocalNode() and uses it consistently. |
| modules/partition-replicator/src/integrationTest/java/org/apache/ignite/internal/partition/replicator/fixtures/Node.java | Updates TableManager construction to pass staticLocalNode(). |
| modules/distribution-zones/src/integrationTest/java/org/apache/ignite/internal/rebalance/ItRebalanceDistributedTest.java | Updates TableManager construction to pass staticLocalNode(). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ibessonov
approved these changes
Apr 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://issues.apache.org/jira/browse/IGNITE-28455
Thank you for submitting the pull request.
To streamline the review process of the patch and ensure better code quality
we ask both an author and a reviewer to verify the following:
The Review Checklist
- There is a single JIRA ticket related to the pull request.
- The web-link to the pull request is attached to the JIRA ticket.
- The JIRA ticket has the Patch Available state.
- The description of the JIRA ticket explains WHAT was made, WHY and HOW.
- The pull request title is treated as the final commit message. The following pattern must be used: IGNITE-XXXX Change summary where XXXX - number of JIRA issue.
Notes