Skip to content

Add new index and cluster level settings to limit the total primary shards per node and per index #17295

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Feb 25, 2025

Added integration test for scenario where primary shards setting is s…

36d29c8
Select commit
Loading
Failed to load commit list.
Merged

Add new index and cluster level settings to limit the total primary shards per node and per index #17295

Added integration test for scenario where primary shards setting is s…
36d29c8
Select commit
Loading
Failed to load commit list.
Codecov / codecov/patch succeeded Feb 24, 2025 in 0s

75.00% of diff hit (target 72.41%)

View this Pull Request on Codecov

75.00% of diff hit (target 72.41%)

Annotations

Check warning on line 334 in server/src/main/java/org/opensearch/action/admin/cluster/settings/TransportClusterUpdateSettingsAction.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/src/main/java/org/opensearch/action/admin/cluster/settings/TransportClusterUpdateSettingsAction.java#L334

Added line #L334 was not covered by tests

Check warning on line 336 in server/src/main/java/org/opensearch/action/admin/cluster/settings/TransportClusterUpdateSettingsAction.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/src/main/java/org/opensearch/action/admin/cluster/settings/TransportClusterUpdateSettingsAction.java#L336

Added line #L336 was not covered by tests

Check warning on line 340 in server/src/main/java/org/opensearch/action/admin/cluster/settings/TransportClusterUpdateSettingsAction.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/src/main/java/org/opensearch/action/admin/cluster/settings/TransportClusterUpdateSettingsAction.java#L340

Added line #L340 was not covered by tests

Check warning on line 348 in server/src/main/java/org/opensearch/action/admin/cluster/settings/TransportClusterUpdateSettingsAction.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/src/main/java/org/opensearch/action/admin/cluster/settings/TransportClusterUpdateSettingsAction.java#L344-L348

Added lines #L344 - L348 were not covered by tests

Check warning on line 351 in server/src/main/java/org/opensearch/action/admin/cluster/settings/TransportClusterUpdateSettingsAction.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/src/main/java/org/opensearch/action/admin/cluster/settings/TransportClusterUpdateSettingsAction.java#L351

Added line #L351 was not covered by tests

Check warning on line 353 in server/src/main/java/org/opensearch/action/admin/cluster/settings/TransportClusterUpdateSettingsAction.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/src/main/java/org/opensearch/action/admin/cluster/settings/TransportClusterUpdateSettingsAction.java#L353

Added line #L353 was not covered by tests

Check warning on line 459 in server/src/main/java/org/opensearch/cluster/routing/RoutingNode.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/src/main/java/org/opensearch/cluster/routing/RoutingNode.java#L459

Added line #L459 was not covered by tests

Check warning on line 141 in server/src/main/java/org/opensearch/cluster/routing/allocation/decider/ShardsLimitAllocationDecider.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/src/main/java/org/opensearch/cluster/routing/allocation/decider/ShardsLimitAllocationDecider.java#L140-L141

Added lines #L140 - L141 were not covered by tests