Skip to content

Commit

Permalink
Update delay to 500 since still we see failure for cluster state
Browse files Browse the repository at this point in the history
Signed-off-by: pranikum <109206473+pranikum@users.noreply.github.com>
  • Loading branch information
pranikum committed Oct 21, 2022
1 parent b724464 commit 10a6e5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public void testDecommissionStatusUpdatePublishedToAllNodes() throws ExecutionEx

logger.info("--> Received decommissioning nodes in zone {}", 'c');
// Keep some delay for scheduler to invoke decommission flow
Thread.sleep(300);
Thread.sleep(500);

// Will wait for all events to complete
client().admin().cluster().prepareHealth().setWaitForEvents(Priority.LANGUID).get();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ DecommissionRequest createRequest(RestRequest request) throws IOException {
TimeValue delayTimeout = DecommissionRequest.DEFAULT_NODE_DRAINING_TIMEOUT;
if (noDelay) {
decommissionRequest.setNoDelay(noDelay);
delayTimeout = TimeValue.timeValueSeconds(0);
delayTimeout = TimeValue.ZERO;
}
decommissionRequest.setDecommissionAttribute(new DecommissionAttribute(attributeName, attributeValue));
return decommissionRequest.setDelayTimeout(delayTimeout);
Expand Down

0 comments on commit 10a6e5f

Please sign in to comment.