Skip to content

Commit

Permalink
Fix spotless check
Browse files Browse the repository at this point in the history
Signed-off-by: Rishab Nahata <[email protected]>
  • Loading branch information
imRishN committed Nov 8, 2022
1 parent 5dae896 commit 97a506a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,7 @@ public void onTimeout(TimeValue timeout) {
* @param decommissionStatus status to update decommission metadata with
* @param listener listener for response and failure
*/
public void updateMetadataWithDecommissionStatus(
DecommissionStatus decommissionStatus,
ActionListener<DecommissionStatus> listener
) {
public void updateMetadataWithDecommissionStatus(DecommissionStatus decommissionStatus, ActionListener<DecommissionStatus> listener) {
clusterService.submitStateUpdateTask("update-decommission-status", new ClusterStateUpdateTask(Priority.URGENT) {
@Override
public ClusterState execute(ClusterState currentState) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,7 @@ public void onTimeout(TimeValue timeout) {
logger.error(errorMsg);
listener.onFailure(new OpenSearchTimeoutException(errorMsg));
// will go ahead and clear the voting config and mark the status as failed
decommissionController.updateMetadataWithDecommissionStatus(
DecommissionStatus.FAILED,
statusUpdateListener()
);
decommissionController.updateMetadataWithDecommissionStatus(DecommissionStatus.FAILED, statusUpdateListener());
}
};

Expand Down Expand Up @@ -376,10 +373,7 @@ public void onResponse(Void unused) {
@Override
public void onFailure(Exception e) {
// will go ahead and clear the voting config and mark the status as failed
decommissionController.updateMetadataWithDecommissionStatus(
DecommissionStatus.FAILED,
statusUpdateListener()
);
decommissionController.updateMetadataWithDecommissionStatus(DecommissionStatus.FAILED, statusUpdateListener());
}
}
);
Expand Down

0 comments on commit 97a506a

Please sign in to comment.