in flink-connector-jdbc/src/main/java/org/apache/flink/connector/jdbc/xa/XaFacadeImpl.java [305:325]
static Command<Object> fromRunnableRecoverByWarn(
String action,
Xid xid,
ThrowingRunnable<XAException> runnable,
Function<XAException, Optional<String>> err2msg) {
return fromRunnable(
action,
xid,
runnable,
e ->
LOG.warn(
formatErrorMessage(
action,
of(xid),
of(e.errorCode),
err2msg.apply(e)
.orElseThrow(
() ->
wrapException(
action, of(xid), e)))));
}