keith-turner commented on code in PR #4980:
URL: https://github.com/apache/accumulo/pull/4980#discussion_r1802140476
##########
server/manager/src/main/java/org/apache/accumulo/manager/compaction/queue/CompactionJobPriorityQueue.java:
##########
@@ -138,6 +150,10 @@ public CompactionJobPriorityQueue(CompactorGroupId
groupId, int maxSize) {
this.rejectedJobs = new AtomicLong(0);
this.dequeuedJobs = new AtomicLong(0);
this.futures = new ArrayDeque<>();
+ this.jobAges = new ConcurrentHashMap<>();
Review Comment:
> I made it a ConcurrentHashMap() because of CompactionJobPriorityQueueStats
iterates over jobAges to build the stats.
ok, that is a good reason for it to be a ConcurrentHashMap
--
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]