Synchronization needed on Schema.cfIdMap?

2014-02-26 Thread Dan LaRocque
Hi, I think cfIdMap in config/Schema.java may be subject to unsynchronized access by distinct threads. Say one thread adds a CF, maybe triggering resizes on cfIdMap's internal tables. What guarantees that other threads calling Schema.instance.getId concurrent with CF addition see an intern

Re: Synchronization needed on Schema.cfIdMap?

2014-02-26 Thread J. Ryan Earl
We've seen a lot of errors that could be exactly this. Would this fit the mold? If so, I can confirm this happens in the wild, we've gotten hundreds of these in the last few months: ERROR [ReadStage:58705] 2014-02-12 01:06:18,254 CassandraDaemon.java (line 192) Exception in thread Thread[ReadSta