File tree 1 file changed +3
-7
lines changed
flink-connector-jdbc-core/src/main/java/org/apache/flink/connector/jdbc/internal
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -178,14 +178,10 @@ public synchronized void flush() throws IOException {
178
178
throw new IOException (e );
179
179
}
180
180
try {
181
- if (!connectionProvider .isConnectionValid ()) {
182
- updateExecutor (true );
183
- }
181
+ updateExecutor (!connectionProvider .isConnectionValid ());
184
182
} catch (Exception exception ) {
185
- LOG .error (
186
- "JDBC connection is not valid, and reestablish connection failed." ,
187
- exception );
188
- throw new IOException ("Reestablish JDBC connection failed" , exception );
183
+ LOG .error ("Attempt to update the JDBC statement executor failed." , exception );
184
+ throw new IOException ("Unable to update JDBC statement executor" , exception );
189
185
}
190
186
try {
191
187
Thread .sleep (1000 * i );
You can’t perform that action at this time.
0 commit comments