Skip to content

Commit

Permalink
Disk indicator refactoring (#90366) (#90456)
Browse files Browse the repository at this point in the history
Introduced the DiskHealthAnalyzer which determines the health state, the symptom, the impacts, the diagnoses and the details. We also changed the retrieval of the indices per node to use the RoutingNodes instead of the RoutingTable directly for efficiency.

Co-authored-by: Andrei Dan <andrei.dan@elastic.co>
  • Loading branch information
gmarouli and andreidan committed Sep 28, 2022
1 parent 9c43b98 commit 76f1533
Show file tree
Hide file tree
Showing 4 changed files with 736 additions and 807 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,10 @@ public ShardRouting[] copyShards() {
return shards.values().toArray(EMPTY_SHARD_ROUTING_ARRAY);
}

public Index[] copyIndices() {
return shardsByIndex.keySet().toArray(Index.EMPTY_ARRAY);
}

public boolean isEmpty() {
return shards.isEmpty();
}
Expand Down

0 comments on commit 76f1533

Please sign in to comment.