[Monitoring] Use 0 as the default for shard count if the node is not found (#21000)
* Use 0 as the default for shard count if the node is not found * Remove debug * Updating snapshot tests * Update api integration test
This commit is contained in:
parent
248b124339
commit
92dd341f5c
|
@ -151,7 +151,7 @@ Array [
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"resolver": "_x_V2YzPQU-a9KRRBxUxZQ",
|
"resolver": "_x_V2YzPQU-a9KRRBxUxZQ",
|
||||||
"shardCount": null,
|
"shardCount": 0,
|
||||||
"transport_address": "127.0.0.1:9300",
|
"transport_address": "127.0.0.1:9300",
|
||||||
"type": "master",
|
"type": "master",
|
||||||
},
|
},
|
||||||
|
@ -260,7 +260,7 @@ Array [
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"resolver": "DAiX7fFjS3Wii7g2HYKrOg",
|
"resolver": "DAiX7fFjS3Wii7g2HYKrOg",
|
||||||
"shardCount": null,
|
"shardCount": 0,
|
||||||
"transport_address": "127.0.0.1:9301",
|
"transport_address": "127.0.0.1:9301",
|
||||||
"type": "node",
|
"type": "node",
|
||||||
},
|
},
|
||||||
|
|
|
@ -16,7 +16,7 @@ Object {
|
||||||
"name": "node02",
|
"name": "node02",
|
||||||
"nodeTypeClass": "fa-server",
|
"nodeTypeClass": "fa-server",
|
||||||
"nodeTypeLabel": "Node",
|
"nodeTypeLabel": "Node",
|
||||||
"shardCount": null,
|
"shardCount": 0,
|
||||||
"transport_address": "127.0.0.1:9301",
|
"transport_address": "127.0.0.1:9301",
|
||||||
"type": "node",
|
"type": "node",
|
||||||
},
|
},
|
||||||
|
|
|
@ -35,7 +35,7 @@ export function mapNodesInfo(nodeHits, clusterStats, shardStats) {
|
||||||
isOnline,
|
isOnline,
|
||||||
nodeTypeLabel: nodeTypeLabel,
|
nodeTypeLabel: nodeTypeLabel,
|
||||||
nodeTypeClass: nodeTypeClass,
|
nodeTypeClass: nodeTypeClass,
|
||||||
shardCount: get(shardStats, `nodes[${sourceNode.uuid}].shardCount`, null),
|
shardCount: get(shardStats, `nodes[${sourceNode.uuid}].shardCount`, 0),
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}, {});
|
}, {});
|
||||||
|
|
|
@ -109,7 +109,7 @@
|
||||||
"nodeTypeClass": "fa-server",
|
"nodeTypeClass": "fa-server",
|
||||||
"nodeTypeLabel": "Node",
|
"nodeTypeLabel": "Node",
|
||||||
"resolver": "1jxg5T33TWub-jJL4qP0Wg",
|
"resolver": "1jxg5T33TWub-jJL4qP0Wg",
|
||||||
"shardCount": null,
|
"shardCount": 0,
|
||||||
"transport_address": "127.0.0.1:9302",
|
"transport_address": "127.0.0.1:9302",
|
||||||
"type": "node"
|
"type": "node"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue