[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:
Jiří Programagor 2018-09-14 18:40:11 +02:00 committed by Chris Earle
parent 16d0c49590
commit e2b304a344

View file

@ -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);