You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by mc...@apache.org on 2019/04/10 11:51:20 UTC
[cassandra] branch cassandra-3.0 updated: support frozen
collections: list, set in cassandra-stress
This is an automated email from the ASF dual-hosted git repository.
mck pushed a commit to branch cassandra-3.0
in repository https://gitbox.apache.org/repos/asf/cassandra.git
The following commit(s) were added to refs/heads/cassandra-3.0 by this push:
new 4a70a9a support frozen collections: list, set in cassandra-stress
4a70a9a is described below
commit 4a70a9a982f8b34b4ccc7744c074863aa1c5b63b
Author: Zhao Yang <zh...@gmail.com>
AuthorDate: Wed Nov 21 19:44:53 2018 +0800
support frozen collections: list, set in cassandra-stress
patch by ZhaoYang ; reviewed by Mick Semb Wever for CASSANDRA-14907
---
CHANGES.txt | 1 +
tools/stress/src/org/apache/cassandra/stress/StressProfile.java | 5 +++++
2 files changed, 6 insertions(+)
diff --git a/CHANGES.txt b/CHANGES.txt
index 492bc1c..8ee7e06 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
3.0.19
+ * cassandra-stress works with frozen collections: list and set (CASSANDRA-14907)
* For nodetool listsnapshots output, put spaces between columns, and increase snapshot padding (CASSANDRA-14876)
* Fix handling FS errors on writing and reading flat files - LogTransaction and hints (CASSANDRA-15053)
* Avoid double closing the iterator to avoid overcounting the number of requests (CASSANDRA-15058)
diff --git a/tools/stress/src/org/apache/cassandra/stress/StressProfile.java b/tools/stress/src/org/apache/cassandra/stress/StressProfile.java
index c19e0cd..0b0d4e9 100644
--- a/tools/stress/src/org/apache/cassandra/stress/StressProfile.java
+++ b/tools/stress/src/org/apache/cassandra/stress/StressProfile.java
@@ -411,6 +411,11 @@ public class StressProfile implements Serializable
{
case SET:
case LIST:
+ if (c.getType().isFrozen())
+ {
+ sb.append("?");
+ break;
+ }
case COUNTER:
sb.append(c.getName()).append(" + ?");
break;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org