Update apache-kafka-2/src/test/java/com/baeldung/kafka/message/ordering/ExtSeqWithTimeWindowIntegrationTest.java
Co-authored-by: Liam Williams <[email protected]>
This commit is contained in:
committed by
GitHub
co-authored by
Liam Williams
parent
9a76f1a637
commit
33b18c0ca4
+1
-1
@@ -92,7 +92,7 @@ public class ExternalSequenceWithTimeWindowIntegrationTest {
|
||||
records.forEach(record -> {
|
||||
buffer.add(record.value());
|
||||
});
|
||||
while (buffer.size() > 0) {
|
||||
while (!buffer.isEmpty()) {
|
||||
if (System.nanoTime() - lastProcessedTime > BUFFER_PERIOD_NS) {
|
||||
processBuffer(buffer, receivedUserEventList);
|
||||
lastProcessedTime = System.nanoTime();
|
||||
|
||||
Reference in New Issue
Block a user