grighetto opened a new pull request #478: CASSANDRA-15526 Fix 
testConcurrentMemtableReadsAndWrites UT
URL: https://github.com/apache/cassandra/pull/478
 
 
   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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to