Skip to content

Commit

Permalink
enabling term version check on local state for all admin read actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rajiv-kv committed Jun 13, 2024
1 parent 18c5bb6 commit 277ca4b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -534,4 +534,9 @@ private ClusterHealthResponse clusterHealth(
pendingTaskTimeInQueue
);
}

@Override
protected boolean localExecuteSupportedByAction() {
return false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,4 @@ private ClusterStateResponse buildResponse(final ClusterStateRequest request, fi

return new ClusterStateResponse(currentState.getClusterName(), builder.build(), false);
}

@Override
protected boolean localExecuteSupportedByAction() {
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,9 @@ protected TransportClusterManagerNodeReadAction(
protected final boolean localExecute(Request request) {
return request.local();
}

protected boolean localExecuteSupportedByAction() {
return true;
}

}

0 comments on commit 277ca4b

Please sign in to comment.