Search in sources :

Example 6 with SetNodeStateRequest

use of com.yahoo.vespa.clustercontroller.core.restapiv2.requests.SetNodeStateRequest in project vespa by vespa-engine.

the class SetNodeStateTest method leadership_loss_marks_request_as_failed_for_early_out_response.

@Test
public void leadership_loss_marks_request_as_failed_for_early_out_response() {
    SetNodeStateRequest request = createDummySetNodeStateRequest();
    request.handleFailure(RemoteClusterControllerTask.FailureCondition.LEADERSHIP_LOST);
    assertTrue(request.isFailed());
}
Also used : SetNodeStateRequest(com.yahoo.vespa.clustercontroller.core.restapiv2.requests.SetNodeStateRequest) Test(org.junit.Test)

Aggregations

SetNodeStateRequest (com.yahoo.vespa.clustercontroller.core.restapiv2.requests.SetNodeStateRequest)6 Test (org.junit.Test)6