cassandra/src
Francisco Guerrero 26c374da4f Synchronize CQLSSTableWriter#build on the Schema.instance object
In this commit the `org.apache.cassandra.io.sstable.CQLSSTableWriter#build` method synchronizes on the
`Schema.instance` object (instead of the `CQLSSTableWriter.class`) to prevent concurrent schema operations
to fail when the offline tools also updates the schema.

For example, a table creation operation, which modifies the keyspace tables metadata, might end up
missing the update when a concurrent call to the `CQLSSTableWriter#build` method is accessing the
singleton Schema instance.

Patch by Francisco Guerrero, reviewed by Yifan Cai, Maxwell Guo, Alex Petrov for CASSANDRA-18317.
2023-10-10 10:46:47 +02:00
..
antlr Merge branch 'cassandra-3.11' into cassandra-4.0 2023-04-27 08:55:32 +02:00
java Synchronize CQLSSTableWriter#build on the Schema.instance object 2023-10-10 10:46:47 +02:00
resources/org/apache/cassandra Merge branch 'cassandra-3.11' into cassandra-4.0 2023-08-31 22:39:56 +02:00