sanpwc commented on code in PR #1508:
URL: https://github.com/apache/ignite-3/pull/1508#discussion_r1086529180
##########
modules/distribution-zones/src/main/java/org/apache/ignite/internal/distributionzones/DistributionZoneManager.java:
##########
@@ -167,6 +201,17 @@ public DistributionZoneManager(
this.watchListener = createMetastorageListener();
logicalTopology = Collections.emptySet();
+
+ executor = new ScheduledThreadPoolExecutor(
+ Math.min(Runtime.getRuntime().availableProcessors() * 3, 20),
+ new
NamedThreadFactory(NamedThreadFactory.threadPrefix(nodeName,
DISTRIBUTION_ZONE_MANAGER_POOL_NAME), LOG),
+ new ThreadPoolExecutor.DiscardPolicy()
+ );
+ }
+
+ @TestOnly
+ Map<Integer, ZoneState> zonesTimers() {
Review Comment:
Minor: let's be consistent in naming. Is it timers or state?
--
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]