You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by dc...@apache.org on 2020/08/31 19:34:22 UTC
[cassandra] branch trunk updated: MessageSerializationPropertyTest
fails with bytes should not be empty for type
org.apache.cassandra.db.marshal.BytesType
This is an automated email from the ASF dual-hosted git repository.
dcapwell pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra.git
The following commit(s) were added to refs/heads/trunk by this push:
new 23ba48a MessageSerializationPropertyTest fails with bytes should not be empty for type org.apache.cassandra.db.marshal.BytesType
23ba48a is described below
commit 23ba48aa935d3f81e66b65285fa8e7972f94dcfe
Author: David Capwell <dc...@apache.org>
AuthorDate: Mon Aug 31 11:33:20 2020 -0700
MessageSerializationPropertyTest fails with bytes should not be empty for type org.apache.cassandra.db.marshal.BytesType
patch by David Capwell; reviewed by Jon Meredith, Caleb Rackliffe for CASSANDRA-16086
---
test/unit/org/apache/cassandra/utils/AbstractTypeGenerators.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/unit/org/apache/cassandra/utils/AbstractTypeGenerators.java b/test/unit/org/apache/cassandra/utils/AbstractTypeGenerators.java
index 9eb74ee..6b685dc 100644
--- a/test/unit/org/apache/cassandra/utils/AbstractTypeGenerators.java
+++ b/test/unit/org/apache/cassandra/utils/AbstractTypeGenerators.java
@@ -72,11 +72,11 @@ public final class AbstractTypeGenerators
TypeSupport.of(LongType.instance, SourceDSL.longs().all()),
TypeSupport.of(FloatType.instance, SourceDSL.floats().any()),
TypeSupport.of(DoubleType.instance, SourceDSL.doubles().any()),
- TypeSupport.of(BytesType.instance, Generators.bytes(0, 1024)),
+ TypeSupport.of(BytesType.instance, Generators.bytes(1, 1024)),
TypeSupport.of(UUIDType.instance, Generators.UUID_RANDOM_GEN),
TypeSupport.of(InetAddressType.instance, Generators.INET_ADDRESS_UNRESOLVED_GEN), // serialization strips the hostname, only keeps the address
- TypeSupport.of(AsciiType.instance, SourceDSL.strings().ascii().ofLengthBetween(0, 1024)),
- TypeSupport.of(UTF8Type.instance, Generators.utf8(0, 1024)),
+ TypeSupport.of(AsciiType.instance, SourceDSL.strings().ascii().ofLengthBetween(1, 1024)),
+ TypeSupport.of(UTF8Type.instance, Generators.utf8(1, 1024)),
TypeSupport.of(TimestampType.instance, Generators.DATE_GEN),
// null is desired here as #decompose will call org.apache.cassandra.serializers.EmptySerializer.serialize which ignores the input and returns empty bytes
TypeSupport.of(EmptyType.instance, rnd -> null)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org