RE: DatabaseDescriptor.defsVersion

2011-04-15 Thread Jeffrey Wang
Done: https://issues.apache.org/jira/browse/CASSANDRA-2490 -Jeffrey -Original Message- From: Jonathan Ellis [mailto:jbel...@gmail.com] Sent: Friday, April 15, 2011 7:39 PM To: user@cassandra.apache.org Cc: Jeffrey Wang Subject: Re: DatabaseDescriptor.defsVersion I think you found a bug

Re: DatabaseDescriptor.defsVersion

2011-04-15 Thread Jonathan Ellis
ge conflicts on 0.7.3 (I > am serializing all schema changes to a single Cassandra node and waiting for > them to finish before continuing). Occasionally a node in the cluster will > never report the correct schema, and I think it may have to do with > synchronization on DatabaseDescrip

DatabaseDescriptor.defsVersion

2011-04-15 Thread Jeffrey Wang
have to do with synchronization on DatabaseDescriptor.defsVersion. As far as I can tell, it is a static variable accessed by multiple threads but is not protected by synchronized/volatile. I was able to write a test in which one thread never reads the modification done by another thread (