in flink-connector-elasticsearch-base/src/main/java/org/apache/flink/connector/elasticsearch/sink/ElasticsearchWriter.java [208:218]
private void enqueueActionInMailbox(
ThrowingRunnable<? extends Exception> action, String actionName) {
// If the writer is cancelled before the last bulk response (i.e. no flush on checkpoint
// configured or shutdown without a final
// checkpoint) the mailbox might already be shutdown, so we should not enqueue any
// actions.
if (isClosed()) {
return;
}
mailboxExecutor.execute(action, actionName);
}