Skip to content

Ignore unreachable nodes when detecting the local DC - #777

Merged
alex268 merged 2 commits into
ydb-platform:masterfrom
alex268:fix/local-dc-ping-overflow
Oct 16, 2026
Merged

alex268 merged 2 commits into
ydb-platform:masterfrom
alex268:fix/local-dc-ping-overflow

Conversation

@alex268

@alex268 alex268 commented Oct 16, 2026

Copy link
Copy Markdown
Member

Update for #764

Igor Melnichenko and others added 2 commits October 11, 2026 01:22
A failed TCP probe returns Long.MAX_VALUE and detectLocalDC summed it with
the other probes of the datacenter. The sum overflowed into a negative
value, so a datacenter with an unreachable node - or with two of them -
got the lowest average ping and was picked as the local one: e.g. probes
of [1ms, unreachable] average to -4611686018426887904.

Average only the successful probes and skip a datacenter whose probed
nodes are all unreachable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Oct 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.67%. Comparing base (d854009) to head (a828093).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #777      +/-   ##
============================================
+ Coverage     75.47%   75.67%   +0.19%     
- Complexity     3755     3765      +10     
============================================
  Files           396      396              
  Lines         16842    16861      +19     
  Branches       1780     1780              
============================================
+ Hits          12711    12759      +48     
+ Misses         3515     3487      -28     
+ Partials        616      615       -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@alex268
alex268 merged commit c236069 into ydb-platform:master Oct 16, 2026
16 checks passed
@alex268
alex268 deleted the fix/local-dc-ping-overflow branch October 16, 2026 16:18
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