Skip to content

Commit df1428f

Browse files
authored
[ISSUE #4795] Replace this exception in beginFlush() with log print and return false (#4797)
1 parent 291d748 commit df1428f

File tree

1 file changed

+2
-1
lines changed
  • eventmesh-openconnect/eventmesh-openconnect-offsetmgmt-plugin/eventmesh-openconnect-offsetmgmt-api/src/main/java/org/apache/eventmesh/openconnect/offsetmgmt/api/storage

1 file changed

+2
-1
lines changed

Diff for: eventmesh-openconnect/eventmesh-openconnect-offsetmgmt-plugin/eventmesh-openconnect-offsetmgmt-api/src/main/java/org/apache/eventmesh/openconnect/offsetmgmt/api/storage/OffsetStorageWriterImpl.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ private boolean isFlushing() {
8484
*/
8585
public synchronized boolean beginFlush() {
8686
if (isFlushing()) {
87-
throw new RuntimeException("OffsetStorageWriter is already flushing");
87+
log.warn("OffsetStorageWriter is already flushing");
88+
return false;
8889
}
8990
if (data.isEmpty()) {
9091
return false;

0 commit comments

Comments
 (0)