AMashenkov commented on a change in pull request #9544:
URL: https://github.com/apache/ignite/pull/9544#discussion_r740123256
##########
File path:
modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/stat/BusyExecutor.java
##########
@@ -35,52 +39,65 @@
private final String name;
/** Active flag (used to skip commands in inactive cluster.) */
- private volatile boolean active;
+ private final AtomicBoolean active = new AtomicBoolean(false);
/** Lock protection of started gathering during deactivation. */
- private final GridBusyLock busyLock = new GridBusyLock();
+ private volatile GridBusyLock busyLock = new GridBusyLock();
/** Executor pool. */
private final IgniteThreadPoolExecutor pool;
+ /** Cancellable tasks. */
+ private final ConcurrentMap<CancellableTask, Object> cancellableTasks =
new ConcurrentHashMap<>();
Review comment:
ConcurrentMap -> ConcurrentHashSet or ConcurrentSkipListSet ?
--
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]