mirror of https://github.com/apache/druid.git
Fix issues when startup timeout is hit (#14425)
This commit is contained in:
parent
6fd28fc185
commit
76e70654ac
|
@ -124,6 +124,11 @@ public class KubernetesPeonLifecycle
|
|||
|
||||
return join(timeout);
|
||||
}
|
||||
catch (Exception e) {
|
||||
log.info("Failed to run task: %s", taskId.getOriginalTaskId());
|
||||
shutdown();
|
||||
throw e;
|
||||
}
|
||||
finally {
|
||||
state.set(State.STOPPED);
|
||||
}
|
||||
|
|
|
@ -163,7 +163,9 @@ public class KubernetesPeonLifecycleTest extends EasyMockSupport
|
|||
EasyMock.anyLong(),
|
||||
EasyMock.eq(TimeUnit.MILLISECONDS)
|
||||
)).andReturn(null);
|
||||
|
||||
EasyMock.expect(kubernetesClient.deletePeonJob(
|
||||
new K8sTaskId(ID)
|
||||
)).andReturn(true);
|
||||
Assert.assertEquals(KubernetesPeonLifecycle.State.NOT_STARTED, peonLifecycle.getState());
|
||||
|
||||
replayAll();
|
||||
|
|
Loading…
Reference in New Issue