cassandra-pr mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [cassandra] grighetto opened a new pull request #475: CASSANDRA-15526 Fix testConcurrentMemtableReadsAndWrites UT
Date Tue, 17 Mar 2020 06:09:12 GMT
grighetto opened a new pull request #475: CASSANDRA-15526 Fix testConcurrentMemtableReadsAndWrites
UT
URL: https://github.com/apache/cassandra/pull/475
 
 
   The implementation of ConcurrentSkipListMap changed significantly from Java v8 to v11.
In v8, ConcurrentSkipListMap#size iterates over the elements in the map and counts them as
it goes. But in v11, ConcurrentSkipListMap holds an internal LongAdder instance, which is
incremented as new elements are added.
   In both versions, isEmpty will return false if it's able to find the head node.
   The issue is that in v11 there's a potential race condition in which the head node may
have been initialized, but the LongAdder hasn't been incremented yet, which leaves it briefly
in an inconsistent state.
   
   https://issues.apache.org/jira/browse/CASSANDRA-15526?focusedCommentId=17049522&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17049522

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org


Mime
View raw message