xiangzhou xia created CASSANDRA-13756:

             Summary: StreamingHistogram is not thread safe
                 Key: CASSANDRA-13756
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-13756
             Project: Cassandra
          Issue Type: Bug
            Reporter: xiangzhou xia

optimization in CASSANDRA-13038 led to a spool flush every time when we call 
sum. Since TreeMap is not thread safe, threads will be stuck when multiple 
threads visit sum() at the same time, and finally 100% cpu is stuck in that 

I think this issue is not limit to sum(), update() and merge() both have the 
same issue since they all need to update TreeMap. 

Add lock to bin solved this issue but it also introduced extra overhead.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to