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: [email protected]
For additional commands, e-mail: [email protected]