sumitagrawl commented on code in PR #3783:
URL: https://github.com/apache/ozone/pull/3783#discussion_r996477635
##########
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/server/events/FixedThreadPoolWithAffinityExecutor.java:
##########
@@ -46,17 +43,26 @@
* @param <P> the payload type of events
*/
@Metrics(context = "EventQueue")
-public class FixedThreadPoolWithAffinityExecutor<P>
+public class FixedThreadPoolWithAffinityExecutor<P, Q>
implements EventExecutor<P> {
private static final String EVENT_QUEUE = "EventQueue";
private static final Logger LOG =
LoggerFactory.getLogger(FixedThreadPoolWithAffinityExecutor.class);
+ private static final Map<String, FixedThreadPoolWithAffinityExecutor>
+ EXECUTOR_MAP = new ConcurrentHashMap<>();
+
private final String name;
- private final List<ThreadPoolExecutor> executors;
Review Comment:
added final for all new fields.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]