xinyuiscool commented on code in PR #1705:
URL: https://github.com/apache/samza/pull/1705#discussion_r1717424517
##########
samza-core/src/test/java/org/apache/samza/operators/impl/TestWatermarkStates.java:
##########
@@ -23,38 +23,58 @@
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
+import java.util.function.LongSupplier;
+
import org.apache.samza.Partition;
+import org.apache.samza.config.TaskConfig;
import org.apache.samza.metrics.MetricsRegistryMap;
import org.apache.samza.system.IncomingMessageEnvelope;
import org.apache.samza.system.SystemStream;
import org.apache.samza.system.SystemStreamPartition;
import org.apache.samza.system.WatermarkMessage;
+import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static
org.apache.samza.operators.impl.WatermarkStates.WATERMARK_NOT_EXIST;
public class TestWatermarkStates {
+ static final long TASK_WATERMARK_IDLE_MS = 600000;
+
+ SystemStream input;
+ SystemStream intermediate;
+ Set<SystemStreamPartition> ssps;
+ SystemStreamPartition inputPartition0;
+ SystemStreamPartition intPartition0;
+ SystemStreamPartition intPartition1;
+ Map<SystemStream, Integer> producerCounts;
Review Comment:
Fixed.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]