Skip to content

Avoid Simulacron port collisions in PeersV2NodeRefreshIT - #1229

Merged
dkropachev merged 1 commit into
scylla-4.xfrom
fix/peers-v2-simulacron-port
Oct 10, 2026
Merged

dkropachev merged 1 commit into
scylla-4.xfrom
fix/peers-v2-simulacron-port

Conversation

@dkropachev

Copy link
Copy Markdown

Issue

PeersV2NodeRefreshIT lets Simulacron bind 127.0.0.1:49152, a port the Ubuntu runner can
also assign to an outbound client socket. A collision fails setup with BindNodeException
before the test exercises node refresh. This is the remaining flake described in #951 and
#1017; #1050 updated Simulacron but did not configure a resolver for this test.

Fix

Start the test's NodePerPortResolver at port 19042 after enabling multiple nodes per IP. This
preserves the peers_v2 metadata behavior while placing Simulacron's listener ports below the
runner's ephemeral range. Simulacron 0.14.0.1 honors the explicit resolver.

The default resolver binds port 49152, which the CI runner can assign
as an ephemeral client port. Keep multiple-nodes-per-IP behavior while
starting Simulacron listeners at port 19042 instead.
@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: QUIET
  • Plan: Advanced
  • Run ID: b9e374aa-f6ef-49da-bf97-f9fcc379e77f

📥 Commits

Reviewing files that changed from the base of the PR and between f2d0470 and 30c8f72.


📒 Files selected for processing (1)
  • integration-tests/src/test/java/com/datastax/oss/driver/core/PeersV2NodeRefreshIT.java

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.



📝 Walkthrough

Walkthrough

The integration test setup now uses NodePerPortResolver, starting at port 19042, to assign distinct ports to Simulacron nodes. It retains the multiple-nodes-per-IP configuration.


Priority: ⬇️ Low

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 30c8f

This test-only port change has no confirmed merge-blocking failure; the integration-test run should confirm both Simulacron nodes start and the refresh assertions are reached.

Pre-merge checks | Passed 4 | Failed 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check Passed The title clearly identifies the main change: preventing Simulacron port collisions in PeersV2NodeRefreshIT.
Description check Passed The description explains the port collision, the affected test, and the NodePerPortResolver fix. It directly matches the changeset.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.


  • Fix all pre-merge checks with AI
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.95%. Comparing base (4f11bbe) to head (30c8f72).
⚠️ Report is 1 commits behind head on scylla-4.x.

Additional details and impacted files
@@               Coverage Diff                @@
##             scylla-4.x    #1229      +/-   ##
================================================
+ Coverage         81.76%   81.95%   +0.19%     
+ Complexity         9692     9648      -44     
================================================
  Files               980      975       -5     
  Lines             36687    36389     -298     
  Branches           5048     5010      -38     
================================================
- Hits              29997    29824     -173     
+ Misses             6690     6565     -125     

☔ 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.

@dkropachev
dkropachev requested a review from nikagra October 10, 2026 00:26
@dkropachev
dkropachev merged commit d27b35e into scylla-4.x Oct 10, 2026
34 checks passed
@dkropachev
dkropachev deleted the fix/peers-v2-simulacron-port branch October 10, 2026 00:35
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