The incorrect use of ConcurrentHashMap in StatisticsManagerImpl and Statistic causes threading issues as demonstrated by attached test
fix for multithreaded statistics
alternative fix for multithreaded
I have attached two suggested solutions. The first uses ConcurrentHashMap properly. The second solution has StatisticsManagerImpl using an array of Statistic instead of a ConcurrentHashMap.
I applied the patch where you replaced notNull checking with putIfAbsent invocation.
Thanks for the work done!
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.