You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewRuntimeException("OffsetStorageWriter is already flushing");
}
if (data.isEmpty()) {
returnfalse;
}
this.toFlush = this.data;
this.data = newHashMap<>();
returntrue;
}
When flushing is in progress, a RuntimeException will be thrown if SourceWorker#commitOffsets method calls beginFlush. This error will propagate upwards causing the Source to exit.
Describe the solution you'd like
replace this exception with log print and return false.
I hope you understand how offsets are managed. It's not just a simple replacement.
Search before asking
Enhancement Request
eventmesh/eventmesh-openconnect/eventmesh-openconnect-offsetmgmt-plugin/eventmesh-openconnect-offsetmgmt-api/src/main/java/org/apache/eventmesh/openconnect/offsetmgmt/api/storage/OffsetStorageWriterImpl.java
Lines 85 to 95 in 291d748
When flushing is in progress, a RuntimeException will be thrown if SourceWorker#commitOffsets method calls beginFlush. This error will propagate upwards causing the Source to exit.
Describe the solution you'd like
replace this exception with log print and return false.
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: