Skip to content

Commit

Permalink
[bugfix][plugin][doriswriter] Fix memory overflow causing task proces…
Browse files Browse the repository at this point in the history
…s to block
  • Loading branch information
wgzhao committed Dec 14, 2024
1 parent 50440b9 commit d42aec3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class DorisWriterManager {
private int batchCount = 0;
private long batchSize = 0;
private volatile boolean closed = false;
private volatile Exception flushException;
private volatile Throwable flushException;
private final LinkedBlockingDeque< WriterTuple > flushQueue;
private ScheduledExecutorService scheduler;
private ScheduledFuture<?> scheduledFuture;
Expand All @@ -74,7 +74,7 @@ public void startScheduler() {
startScheduler();
}
flush(label, false);
} catch (Exception e) {
} catch (Throwable e) {
flushException = e;
}
}
Expand Down Expand Up @@ -149,7 +149,7 @@ public void run() {
while(true) {
try {
asyncFlush();
} catch (Exception e) {
} catch (Throwable e) {
flushException = e;
}
}
Expand Down

0 comments on commit d42aec3

Please sign in to comment.