#253 statistics are not mult-thread safe

Dozer v5.2.2
closed-fixed
nobody
None
5
2010-05-12
2010-04-16
No

The incorrect use of ConcurrentHashMap in StatisticsManagerImpl and Statistic causes threading issues as demonstrated by attached test

Discussion

  • Charles Honton

    Charles Honton - 2010-04-16

    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.

     
  • dmitry (lv)

    dmitry (lv) - 2010-05-12

    Hi,

    I applied the patch where you replaced notNull checking with putIfAbsent invocation.
    Thanks for the work done!

    Dmitry

     
  • dmitry (lv)

    dmitry (lv) - 2010-05-12
    • milestone: 1049123 --> Dozer v5.2.2
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks