Skip to content

Commit

Permalink
Add 'discovered_master' as the table header alias for 'discovered_clu…
Browse files Browse the repository at this point in the history
…ster_manager' for compatibility

Signed-off-by: Tianli Feng <[email protected]>
  • Loading branch information
Tianli Feng committed Mar 13, 2022
1 parent 056f24f commit 49f5a9d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,12 @@ protected Table getTableWithHeader(final RestRequest request) {
t.addCell("status", "alias:st;desc:health status");
t.addCell("node.total", "alias:nt,nodeTotal;text-align:right;desc:total number of nodes");
t.addCell("node.data", "alias:nd,nodeData;text-align:right;desc:number of nodes that can store data");
t.addCell("discovered_cluster_manager", "alias:dm;text-align:right;desc:cluster manager is discovered or not");
// TODO: Remove the header alias 'discovered_master', after removing MASTER_ROLE.
// The alias 'discovered_master' is added for compatibility when using request parameter 'h=discovered_master'.
t.addCell(
"discovered_cluster_manager",
"alias:dcm,dm,discovered_master;text-align:right;desc:cluster manager is discovered or not"
);
t.addCell("shards", "alias:t,sh,shards.total,shardsTotal;text-align:right;desc:total number of shards");
t.addCell("pri", "alias:p,shards.primary,shardsPrimary;text-align:right;desc:number of primary shards");
t.addCell("relo", "alias:r,shards.relocating,shardsRelocating;text-align:right;desc:number of relocating nodes");
Expand Down

0 comments on commit 49f5a9d

Please sign in to comment.