Skip to content

Fix RegionGroupCache activation race#18128

Merged
CRZbulabula merged 1 commit into
masterfrom
fix/region-group-cache-race
Jul 7, 2026
Merged

Fix RegionGroupCache activation race#18128
CRZbulabula merged 1 commit into
masterfrom
fix/region-group-cache-race

Conversation

@Caideyipi

Copy link
Copy Markdown
Collaborator

Description

Synchronize RegionGroupCache mutation and statistics update paths so periodic load-statistics refresh cannot overwrite a freshly activated RegionGroup's Running status with a stale Disabled status while RegionGroup creation is still finishing.

This addresses the intermittent no-available SchemaRegionGroup failure where PartitionInfo already sees the newly created RegionGroup but LoadCache still reports it as Disabled.

Tests

  • mvn spotless:apply -pl iotdb-core/confignode
  • mvn -U -pl iotdb-core/confignode test "-Dtest=RegionGroupCacheTest,LoadManagerTest"

@CRZbulabula CRZbulabula left a comment

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.

LGTM

@sonarqubecloud

sonarqubecloud Bot commented Jul 7, 2026

Copy link
Copy Markdown

@codecov

codecov Bot commented Jul 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 41.72%. Comparing base (bd49457) to head (1037cbf).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #18128      +/-   ##
============================================
- Coverage     41.84%   41.72%   -0.13%     
  Complexity      318      318              
============================================
  Files          5296     5297       +1     
  Lines        373604   373849     +245     
  Branches      48232    48278      +46     
============================================
- Hits         156351   155974     -377     
- Misses       217253   217875     +622     

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

@CRZbulabula CRZbulabula merged commit a6c654b into master Jul 7, 2026
42 of 44 checks passed
@CRZbulabula CRZbulabula deleted the fix/region-group-cache-race branch July 7, 2026 03:56
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