EMsnap commented on code in PR #7290: URL: https://github.com/apache/inlong/pull/7290#discussion_r1091363311
########## inlong-sort/sort-connectors/base/src/main/java/org/apache/inlong/sort/base/dirty/sink/s3/S3DirtySink.java: ########## @@ -130,8 +131,16 @@ public synchronized void invoke(DirtyData<T> dirtyData) throws Exception { } private boolean valid() { - return (s3Options.getBatchSize() > 0 && size >= s3Options.getBatchSize()) - || batchBytes >= s3Options.getMaxBatchBytes(); + // stash dirty data for at least a minute to avoid flushing too fast Review Comment: and current time should be the time that calls System.currentTimeMillis(), the variable you defined here means the time before current -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@inlong.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org