ptupitsyn commented on code in PR #3562:
URL: https://github.com/apache/ignite-3/pull/3562#discussion_r1555555814
##########
modules/core/src/test/java/org/apache/ignite/internal/streamer/StreamerSubscriberTest.java:
##########
@@ -23,16 +23,35 @@
import static org.hamcrest.Matchers.is;
import java.util.concurrent.CompletableFuture;
+import java.util.concurrent.Executors;
import java.util.concurrent.Flow.Publisher;
import java.util.concurrent.Flow.Subscriber;
import java.util.concurrent.Flow.Subscription;
+import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.atomic.LongAdder;
import java.util.function.LongFunction;
+import org.apache.ignite.internal.logger.Loggers;
import org.apache.ignite.internal.testframework.BaseIgniteAbstractTest;
+import org.apache.ignite.internal.thread.NamedThreadFactory;
import org.apache.ignite.table.DataStreamerItem;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
class StreamerSubscriberTest extends BaseIgniteAbstractTest {
+ private static ScheduledExecutorService flushExecutor;
+
+ @BeforeAll
+ public static void flushExecutorInit() {
+ flushExecutor = Executors.newSingleThreadScheduledExecutor(
+ new NamedThreadFactory("flushExecutor",
Loggers.forClass(StreamerSubscriberTest.class)));
+ }
+
+ @AfterAll
+ public static void flushExecutorShutdown() {
+ flushExecutor.shutdown();
Review Comment:
Done.
--
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]