cshannon commented on PR #4980:
URL: https://github.com/apache/accumulo/pull/4980#issuecomment-2422698386

   One thing to note as I was working on this was I started to wonder if it 
made sense to get rid of the jobAges map and just move the Timer into the 
TabletJobs object as it's always a 1 to 1 relationship that we have to keep in 
sync. This would make managing it easier, but the primary downside is being 
unable to iterate over the timers to collect the current stats without locking. 
Right now with the separate map it's a concurrent hashmap so we can iterate and 
collect data as a snapshot in the memoized field and I think that makes it 
worthwhile to keep separate, even if it's more work to make things correct.


-- 
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]

Reply via email to