You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by sl...@apache.org on 2016/03/08 10:42:41 UTC

[05/15] cassandra git commit: Document the lack of thread-safety in CQLSSTableWriter

Document the lack of thread-safety in CQLSSTableWriter


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/e01b3a94
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/e01b3a94
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/e01b3a94

Branch: refs/heads/cassandra-3.5
Commit: e01b3a94abcd13063e2d28116b534aeaabcaab97
Parents: c3d2f26
Author: Sylvain Lebresne <sy...@datastax.com>
Authored: Tue Mar 8 10:41:17 2016 +0100
Committer: Sylvain Lebresne <sy...@datastax.com>
Committed: Tue Mar 8 10:41:17 2016 +0100

----------------------------------------------------------------------
 src/java/org/apache/cassandra/io/sstable/CQLSSTableWriter.java | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/e01b3a94/src/java/org/apache/cassandra/io/sstable/CQLSSTableWriter.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/io/sstable/CQLSSTableWriter.java b/src/java/org/apache/cassandra/io/sstable/CQLSSTableWriter.java
index ae8a392..838ea48 100644
--- a/src/java/org/apache/cassandra/io/sstable/CQLSSTableWriter.java
+++ b/src/java/org/apache/cassandra/io/sstable/CQLSSTableWriter.java
@@ -74,6 +74,10 @@ import org.apache.cassandra.utils.Pair;
  *   // Close the writer, finalizing the sstable
  *   writer.close();
  * </pre>
+ *
+ * Please note that {@code CQLSSTableWriter} is <b>not</b> thread-safe (multiple threads cannot access the
+ * same instance). It is however safe to use multiple instances in parallel (even if those instance write
+ * sstables for the same table).
  */
 public class CQLSSTableWriter implements Closeable
 {