flink-cdc icon indicating copy to clipboard operation
flink-cdc copied to clipboard

[FLINK-37963] Fix potential NPE when triggering JobManager failover prematurely

Open yuxiqian opened this issue 10 months ago • 0 comments

This closes FLINK-37963.

Occasionally, test cases related to triggering JM failover might fail, with an NPE thrown when manipulating jobManagerLeaderServices (like https://github.com/apache/flink-cdc/actions/runs/15509047609/job/43667549280).

It is likely to be caused by uninitialised JobManagerService and could be circumvented by invoking EmbeddedHaServices#getOrCreateJobManagerService manually.

yuxiqian avatar Jun 17 '25 05:06 yuxiqian