Skip to content

IGNITE-27746 MDC. Implement parallel ping of DC2's nodes with the connection recovery.#12729

Merged
sergey-chugunov-1985 merged 46 commits into
apache:masterfrom
Vladsz83:IGNITE-26986-Multi-datacenter-awarness-for-connection-recovery-mechanism
May 18, 2026
Merged

IGNITE-27746 MDC. Implement parallel ping of DC2's nodes with the connection recovery.#12729
sergey-chugunov-1985 merged 46 commits into
apache:masterfrom
Vladsz83:IGNITE-26986-Multi-datacenter-awarness-for-connection-recovery-mechanism

Conversation

@Vladsz83
Copy link
Copy Markdown
Contributor

Thank you for submitting the pull request to the Apache Ignite.

In order to streamline the review of the contribution
we ask you to ensure the following steps have been taken:

The Contribution 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 pull request body describes changes that have been made.
    The description explains WHAT and WHY was made instead of 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.
  • A reviewer has been mentioned through the JIRA comments
    (see the Maintainers list)
  • The pull request has been checked by the Teamcity Bot and
    the green visa attached to the JIRA ticket (see TC.Bot: Check PR)

Notes

If you need any help, please email dev@ignite.apache.org or ask anу advice on http://asf.slack.com #ignite channel.

…-connection-recovery-mechanism

# Conflicts:
#	modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoverySpi.java
#	modules/core/src/test/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoveryPendingMessageDeliveryTest.java
#	modules/core/src/test/java/org/apache/ignite/testsuites/IgniteSpiDiscoverySelfTestSuite.java
…ecovery-mechanism-improve' into IGNITE-26986-Multi-datacenter-awarness-for-connection-recovery-mechanism
@Vladsz83 Vladsz83 changed the title IGNITE-27746 : MDC. Implement parallel ping of DC2's nodes with the connection recovery. IGNITE-27746 MDC. Implement parallel ping of DC2's nodes with the connection recovery. Apr 27, 2026
Comment thread modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/ServerImpl.java Outdated
Comment thread modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/ServerImpl.java Outdated
Comment thread modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/ServerImpl.java Outdated
Comment thread modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/ServerImpl.java Outdated
Comment thread modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/ServerImpl.java Outdated
Comment thread modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/ServerImpl.java Outdated
Comment thread modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/ServerImpl.java Outdated
Comment thread modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/ServerImpl.java Outdated
Comment thread modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/ServerImpl.java Outdated
Comment thread modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/ServerImpl.java Outdated

if (allRemoteDCsTraversed(sndState, failedNodes, next)) {
if (log.isInfoEnabled()) {
log.info("During the connection recovery, all the remote DCs have been traversed. " +
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please use this phrase instead: "Connection recovery finished: all remote DCs traversed, none available. Current node will skip failed DCs. Ring connection recovery time remaining:"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed partly. Let's rely on the phrase "During connection recovery" widely used before with the parallel DCs ping.

Vladsz83 and others added 3 commits May 14, 2026 14:41
Co-authored-by: Sergey Chugunov <sergey.chugunov@gmail.com>
…ss-for-connection-recovery-mechanism' into IGNITE-26986-Multi-datacenter-awarness-for-connection-recovery-mechanism
Comment thread modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/ServerImpl.java Outdated
return false;

// Remote DC statuses: alive or not, Dc id -> true/false.
Collection<String> rmtDcIds = connRecoverState.rmtDcPingRes.keySet().stream().map(ClusterNode::dataCenterId)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please introduce additional method to ConnectionRecoveryState instead of exposing rmtDcPingRes and performing opeations on it. Also I think comment above this line is incorrect.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It is not exposed, it is private. But is included into an internall class. And is used only by a holding class. I don't thing we need any methods to access internal-only classes. Also, ConnectionRecoveryState becomes shorter without extra methods while ServerImpl is already quite large.

Comment thread modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/ServerImpl.java Outdated
Comment thread modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/ServerImpl.java Outdated
Comment thread modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/ServerImpl.java Outdated
Comment thread modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/ServerImpl.java Outdated
Comment thread modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/ServerImpl.java Outdated
Comment thread modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/ServerImpl.java Outdated
Comment thread modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/ServerImpl.java Outdated
Comment thread modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/ServerImpl.java Outdated
@sergey-chugunov-1985 sergey-chugunov-1985 merged commit b75f909 into apache:master May 18, 2026
7 checks passed
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
6 New Code Smells (required ≤ 1)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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