cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [1/3] cassandra git commit: Fix cassandra-stress to Use single seed in UUID generation
Date Mon, 10 Oct 2016 13:52:22 GMT
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-3.X 37551e99e -> 1bc736d93
  refs/heads/trunk 03e2e0a17 -> 25a3759f1


Fix cassandra-stress to Use single seed in UUID generation

Patch by Chris Splinter; reviewed by tjake for CASSANDRA-12729


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

Branch: refs/heads/cassandra-3.X
Commit: 1bc736d9358c375542c8361afac4065515221ed9
Parents: 37551e9
Author: T Jake Luciani <jake@apache.org>
Authored: Mon Oct 10 09:50:29 2016 -0400
Committer: T Jake Luciani <jake@apache.org>
Committed: Mon Oct 10 09:50:29 2016 -0400

----------------------------------------------------------------------
 CHANGES.txt                                                       | 1 +
 .../src/org/apache/cassandra/stress/generate/values/UUIDs.java    | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/1bc736d9/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 06205df..f4dda82 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 3.10
+ * Fix cassandra-stress to use single seed in UUID generation (CASSANDRA-12729)
  * CQLSSTableWriter does not allow Update statement (CASSANDRA-12450)
  * Config class uses boxed types but DD exposes primitive types (CASSANDRA-12199)
  * Add pre- and post-shutdown hooks to Storage Service (CASSANDRA-12461)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/1bc736d9/tools/stress/src/org/apache/cassandra/stress/generate/values/UUIDs.java
----------------------------------------------------------------------
diff --git a/tools/stress/src/org/apache/cassandra/stress/generate/values/UUIDs.java b/tools/stress/src/org/apache/cassandra/stress/generate/values/UUIDs.java
index faa58c6..b90bb74 100644
--- a/tools/stress/src/org/apache/cassandra/stress/generate/values/UUIDs.java
+++ b/tools/stress/src/org/apache/cassandra/stress/generate/values/UUIDs.java
@@ -34,6 +34,7 @@ public class UUIDs extends Generator<UUID>
     @Override
     public UUID generate()
     {
-        return new UUID(identityDistribution.next(), identityDistribution.next());
+        long seed = identityDistribution.next();
+        return new UUID(seed, seed);
     }
 }


Mime
View raw message