From 4a70a9a982f8b34b4ccc7744c074863aa1c5b63b Mon Sep 17 00:00:00 2001 From: Zhao Yang Date: Wed, 21 Nov 2018 19:44:53 +0800 Subject: [PATCH] support frozen collections: list, set in cassandra-stress patch by ZhaoYang ; reviewed by Mick Semb Wever for CASSANDRA-14907 --- CHANGES.txt | 1 + .../src/org/apache/cassandra/stress/StressProfile.java | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGES.txt b/CHANGES.txt index 492bc1c439..8ee7e061b0 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 c19e0cdede..0b0d4e9e19 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;