mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Monitoring] Properly Deduplicate Replica shards (#23183)
Issue #23179 was caused by ignoring multiple replicas of the same shard, even if they are on different nodes. This commit fixes that.
This commit is contained in:
parent
fed4f831b2
commit
9183fe8ba5
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ export function handleResponse(response) {
|
|||
|
||||
if (shard) {
|
||||
// note: if the request is for a node, then it's enough to deduplicate without primary, but for indices it displays both
|
||||
const shardId = `${shard.index}-${shard.shard}-${shard.primary}-${shard.relocating_node}`;
|
||||
const shardId = `${shard.index}-${shard.shard}-${shard.primary}-${shard.relocating_node}-${shard.node}`;
|
||||
|
||||
if (!uniqueShards.has(shardId)) {
|
||||
shards.push(shard);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue