You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2021/01/18 13:39:36 UTC

[GitHub] [bookkeeper] eolivelli edited a comment on issue #2544: ConcurrentModificationException when print LinkedList

eolivelli edited a comment on issue #2544:
URL: https://github.com/apache/bookkeeper/issues/2544#issuecomment-762256303


   that variable should be a CopyOnWriteArrayList and not a simple LinkedList
   
   see here:
   https://github.com/apache/bookkeeper/blob/master/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/EntryLogManagerForEntryLogPerLedger.java#L277
   
   probably this issue is a result of a refactor
   
   otherwise we should take care of synchronization in all of the accesses to the variable.
   given the hierarchy of classes I suggest to change the type to CopyOnWriteArrayList


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org