Skip to content

Commit

Permalink
RestIndicesAction RestNodesAction
Browse files Browse the repository at this point in the history
  • Loading branch information
albertzaharovits committed Jan 1, 2025
1 parent aa4a283 commit d8e23d2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,15 @@ protected Table getTableWithHeader(final RestRequest request) {
"sibling:pri;alias:iif,indexingIndexFailed;default:false;text-align:right;desc:number of failed indexing ops"
);
table.addCell("pri.indexing.index_failed", "default:false;text-align:right;desc:number of failed indexing ops");
table.addCell(
"indexing.index_failed_due_to_version_conflict",
"sibling:pri;alias:iifvc,indexingIndexFailedDueToVersionConflict;default:false;text-align:right;"
+ "desc:number of failed indexing ops due to version conflict"
);
table.addCell(
"pri.indexing.index_failed_due_to_version_conflict",
"default:false;text-align:right;desc:number of failed indexing ops due to version conflict"
);

table.addCell("merges.current", "sibling:pri;alias:mc,mergesCurrent;default:false;text-align:right;desc:number of current merges");
table.addCell("pri.merges.current", "default:false;text-align:right;desc:number of current merges");
Expand Down Expand Up @@ -670,6 +679,13 @@ Table buildTable(
table.addCell(totalStats.getIndexing() == null ? null : totalStats.getIndexing().getTotal().getIndexFailedCount());
table.addCell(primaryStats.getIndexing() == null ? null : primaryStats.getIndexing().getTotal().getIndexFailedCount());

table.addCell(
totalStats.getIndexing() == null ? null : totalStats.getIndexing().getTotal().getIndexFailedWithVersionConflictCount()
);
table.addCell(
primaryStats.getIndexing() == null ? null : primaryStats.getIndexing().getTotal().getIndexFailedWithVersionConflictCount()
);

table.addCell(totalStats.getMerge() == null ? null : totalStats.getMerge().getCurrent());
table.addCell(primaryStats.getMerge() == null ? null : primaryStats.getMerge().getCurrent());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,11 @@ protected Table getTableWithHeader(final RestRequest request) {
"indexing.index_failed",
"alias:iif,indexingIndexFailed;default:false;text-align:right;desc:number of failed indexing ops"
);
table.addCell(
"indexing.index_failed_due_to_version_conflict",
"alias:iifvc,indexingIndexFailedDueToVersionConflict;default:false;text-align:right;"
+ "desc:number of failed indexing ops due to version conflict"
);

table.addCell("merges.current", "alias:mc,mergesCurrent;default:false;text-align:right;desc:number of current merges");
table.addCell(
Expand Down Expand Up @@ -466,6 +471,7 @@ Table buildTable(
table.addCell(indexingStats == null ? null : indexingStats.getTotal().getIndexTime());
table.addCell(indexingStats == null ? null : indexingStats.getTotal().getIndexCount());
table.addCell(indexingStats == null ? null : indexingStats.getTotal().getIndexFailedCount());
table.addCell(indexingStats == null ? null : indexingStats.getTotal().getIndexFailedWithVersionConflictCount());

MergeStats mergeStats = indicesStats == null ? null : indicesStats.getMerge();
table.addCell(mergeStats == null ? null : mergeStats.getCurrent());
Expand Down

0 comments on commit d8e23d2

Please sign in to comment.