cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From slebre...@apache.org
Subject [04/15] cassandra git commit: Document the lack of thread-safety in CQLSSTableWriter
Date Tue, 08 Mar 2016 09:42:40 GMT
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.0
Commit: e01b3a94abcd13063e2d28116b534aeaabcaab97
Parents: c3d2f26
Author: Sylvain Lebresne <sylvain@datastax.com>
Authored: Tue Mar 8 10:41:17 2016 +0100
Committer: Sylvain Lebresne <sylvain@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
 {


Mime
View raw message