Skip to content

Helix outoforder sim#17796

Draft
KKcorps wants to merge 3 commits intoapache:masterfrom
KKcorps:helix_outoforder_sim
Draft

Helix outoforder sim#17796
KKcorps wants to merge 3 commits intoapache:masterfrom
KKcorps:helix_outoforder_sim

Conversation

@KKcorps
Copy link
Contributor

@KKcorps KKcorps commented Mar 2, 2026

No description provided.

Kartik Khare and others added 3 commits March 2, 2026 15:50
Validates that enforceConsumptionInOrder correctly handles out-of-order
segment state transitions during partial upsert with INCREMENT strategy.
Uses a 2-server setup with delay injection on Server 0's segment 1
consuming transition to reproduce the race condition where segment N+1
starts consuming before segment N's data is in the upsert metadata.

- DelayInjectingRealtimeTableDataManager: extends RealtimeTableDataManager
  with configurable consuming/online delays and tracking for segment state
  at consume start and CRC mismatch detection via replaceSegmentIfCrcMismatch
- DelayInjectingTableDataManagerProvider: custom provider that wires delay
  config from server properties to the injecting data manager
- Test verifies enforced table produces correct scores (1020 for player 101)
  while non-enforced table may show degraded scores (420)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…n tests

Read player scores directly from each server's segment data via
_serverStarters, bypassing the broker. This makes per-server assertions
deterministic instead of depending on unpredictable broker routing.

Both enforced and non-enforced tests now assert:
- Server 0 (delayed): degraded player 101 score (420)
- Server 1 (normal): correct player 101 score (1020)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov-commenter
Copy link

codecov-commenter commented Mar 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.29%. Comparing base (063b6e4) to head (2f0f353).
⚠️ Report is 46 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #17796      +/-   ##
============================================
+ Coverage     63.24%   63.29%   +0.05%     
  Complexity     1454     1454              
============================================
  Files          3176     3189      +13     
  Lines        190984   191589     +605     
  Branches      29202    29302     +100     
============================================
+ Hits         120780   121271     +491     
- Misses        60784    60839      +55     
- Partials       9420     9479      +59     
Flag Coverage Δ
custom-integration1 100.00% <ø> (ø)
integration 100.00% <ø> (ø)
integration1 100.00% <ø> (ø)
integration2 0.00% <ø> (?)
java-11 63.26% <ø> (+0.04%) ⬆️
java-21 63.19% <ø> (+0.03%) ⬆️
temurin 63.29% <ø> (+0.05%) ⬆️
unittests 63.29% <ø> (+0.05%) ⬆️
unittests1 55.60% <ø> (+0.02%) ⬆️
unittests2 34.20% <ø> (+0.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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