Currently, `TransportGetShutdownStatusAction` is executed in a transport thread, this action can do a substantial amount of work (O(# shards) in some cases) in the transport thread preventing pending transport tasks to make progress and potentially causing cluster instability. This action should be dispatched into a different thread pool to avoid such issues.
x-pack/plugin/shutdown/src/test/java/org/elasticsearch/xpack/shutdown/TransportGetShutdownStatusActionTests.java
);
        assertShardMigration(status, SingleNodeShutdownMetadata.Status.NOT_STARTED, 0, is("node is not currently part of the cluster"));
    }
    public void testIlmShrinkingIndexAvoidsStall() {
        LifecycleExecutionState executionState = LifecycleExecutionState.builder()
            .setAction(ShrinkAction.NAME)
            .setStep(ShrinkStep.NAME)
            .setPhase(randomFrom("hot", "warm"))
            .build();
        checkStalledShardWithIlmState(executionState, OperationMode.RUNNING, SingleNodeShutdownMetadata.Status.IN_PROGRESS);
    }
    public void testIlmShrinkingWithIlmStoppingIndexAvoidsStall() {
        LifecycleExecutionState executionState = LifecycleExecutionState.builder()
            .setAction(ShrinkAction.NAME)
            .setStep(ShrinkStep.NAME)
            .build();
        checkStalledShardWithIlmState(executionState, OperationMode.STOPPING, SingleNodeShutdownMetadata.Status.IN_PROGRESS);
    }
    public void testIlmShrinkingButIlmStoppedDoesNotAvoidStall() {
        LifecycleExecutionState executionState = LifecycleExecutionState.builder()
            .setAction(ShrinkAction.NAME)
            .setStep(ShrinkStep.NAME)
            .build();
        checkStalledShardWithIlmState(executionState, OperationMode.STOPPED, SingleNodeShutdownMetadata.Status.STALLED);
    }
    public void testIlmShrinkingButErroredDoesNotAvoidStall() {
        LifecycleExecutionState executionState = LifecycleExecutionState.builder()
            .setAction(ShrinkAction.NAME)
            .setStep(ErrorStep.NAME)
            .build();