You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "chenxy (Jira)" <ji...@apache.org> on 2021/10/14 12:26:00 UTC
[jira] [Created] (FLINK-24548) flink-connector-jdbc SQLException
retry sleep have a problem
chenxy created FLINK-24548:
------------------------------
Summary: flink-connector-jdbc SQLException retry sleep have a problem
Key: FLINK-24548
URL: https://issues.apache.org/jira/browse/FLINK-24548
Project: Flink
Issue Type: Improvement
Components: API / DataStream
Reporter: chenxy
Attachments: 企业微信截图_20211014202406.png
版本:1.14
类:/flink-connectors/flink-connector-jdbc/src/main/java/org/apache/flink/connector/jdbc/internal/JdbcOutputFormat.java
方法: public synchronized void flush() throws IOException {
行数:237行。 Thread.sleep(1000 * i);
问题: 该方法sleep时间是根据executionOptions.getMaxRetries()值进行循环,从0开始循环。
现象:1,第一次重试的时候出现异常时,直接导致sleep时间为0,导致直接抛出异常
2,后面sleep 也会基于maxRetris的数值指数级变大。
--
This message was sent by Atlassian Jira
(v8.3.4#803005)