You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by GitBox <gi...@apache.org> on 2020/03/17 06:09:12 UTC

[GitHub] [cassandra] grighetto opened a new pull request #475: CASSANDRA-15526 Fix testConcurrentMemtableReadsAndWrites UT

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


[GitHub] [cassandra] grighetto closed pull request #475: CASSANDRA-15526 Fix testConcurrentMemtableReadsAndWrites UT

Posted by GitBox <gi...@apache.org>.
grighetto closed pull request #475: CASSANDRA-15526 Fix testConcurrentMemtableReadsAndWrites UT
URL: https://github.com/apache/cassandra/pull/475
 
 
   

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