-
Notifications
You must be signed in to change notification settings - Fork 255
Open
Description
Search before asking
- I had searched in the issues and found no similar issues.
Version
https://github.com/apache/doris-flink-connector/tree/release-25.1.0
What's Wrong?
Line 60 in 65d8c00
| private transient volatile Exception flushException = null; |
DorisBatchWriter has a field named flushException.
When doris is down, intervalFlush() will set flushException, but after doris is up, no one will clear flushException, and every time connector write data, it will check the flushException, so connector will stuck, and never recover from last exception.
Lines 116 to 123 in 65d8c00
| private void intervalFlush() { | |
| try { | |
| boolean flush = batchStreamLoad.intervalFlush(); | |
| LOG.debug("interval flush trigger, flush: {}", flush); | |
| } catch (Exception e) { | |
| flushException = e; | |
| } | |
| } |
Lines 175 to 180 in 65d8c00
| private void checkFlushException() { | |
| if (flushException != null) { | |
| throw new RuntimeException("Writing records to streamload failed.", flushException); | |
| } | |
| } | |
| } |
What You Expected?
when doris is up, the connector should recover from last exception
How to Reproduce?
No response
Anything Else?
No response
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
No labels