cassandra-pr mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From haaawk <...@git.apache.org>
Subject [GitHub] cassandra pull request #:
Date Mon, 05 Mar 2018 13:15:42 GMT
Github user haaawk commented on the pull request:

    https://github.com/apache/cassandra/commit/522d0dd1e4e0b76cb36907d13595b31e231543d6#commitcomment-27928749
  
    In src/java/org/apache/cassandra/db/marshal/TypeParser.java:
    In src/java/org/apache/cassandra/db/marshal/TypeParser.java on line 83:
    Why is it guaranteed that running cache.put("some string", type) multiple times concurrently
won't lead to a destruction of internal structures of the hash map? It seems to me that this
code run concurrently could lead to a wrong structure of a tree inside the bucket: http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/8u40-b25/java/util/HashMap.java#1990



---

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


Mime
View raw message