Skip to content

Balance per-database replicas in PGP and Greedy region allocators#17714

Merged
CRZbulabula merged 2 commits into
masterfrom
add-per-db-awareness-to-region-allocator
May 19, 2026
Merged

Balance per-database replicas in PGP and Greedy region allocators#17714
CRZbulabula merged 2 commits into
masterfrom
add-per-db-awareness-to-region-allocator

Rename region_group_allocate_policy enum value PGR to PGP

5d390f2
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded May 19, 2026 in 2m 31s

Annotations

Check failure on line 137 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/load/balancer/region/PartiteGraphPlacementRegionGroupAllocator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 26 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ498qvmBiSOm9GU-BMO&open=AZ498qvmBiSOm9GU-BMO&pullRequest=17714

Check warning on line 342 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/load/balancer/region/PartiteGraphPlacementRegionGroupAllocator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Override "equals(Object obj)" to comply with the contract of the "compareTo(T o)" method.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ498qvmBiSOm9GU-BMQ&open=AZ498qvmBiSOm9GU-BMQ&pullRequest=17714

Check warning on line 308 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/load/balancer/region/PartiteGraphPlacementRegionGroupAllocator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Override "equals(Object obj)" to comply with the contract of the "compareTo(T o)" method.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ498qvmBiSOm9GU-BMP&open=AZ498qvmBiSOm9GU-BMP&pullRequest=17714

Check warning on line 48 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/load/balancer/region/GreedyRegionGroupAllocator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make databaseRegionCount a static final constant or non-public and provide accessors if needed.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ498q19BiSOm9GU-BMR&open=AZ498q19BiSOm9GU-BMR&pullRequest=17714