You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by xe...@apache.org on 2012/01/11 22:44:19 UTC

git commit: Make stress.java insert operation to use microseconds patch by Yuki Morishita; reviewed by Pavel Yaskevich for CASSANDRA-3725

Updated Branches:
  refs/heads/trunk bfac658f0 -> bb7b64312


Make stress.java insert operation to use microseconds
patch by Yuki Morishita; reviewed by Pavel Yaskevich for CASSANDRA-3725


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

Branch: refs/heads/trunk
Commit: bb7b64312d80d9dc3864cf6b09d565cbd6a14c14
Parents: bfac658
Author: Pavel Yaskevich <po...@gmail.com>
Authored: Thu Jan 12 00:43:41 2012 +0200
Committer: Pavel Yaskevich <po...@gmail.com>
Committed: Thu Jan 12 00:43:41 2012 +0200

----------------------------------------------------------------------
 CHANGES.txt                                        |    2 ++
 .../cassandra/stress/operations/Inserter.java      |    3 ++-
 2 files changed, 4 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/bb7b6431/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 3bdd26f..edfb9e1 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -42,6 +42,8 @@
  * finer-grained control over data directories (CASSANDRA-2749)
  * Fix ClassCastException during hinted handoff (CASSANDRA-3694)
  * Upgrade Thrift to 0.7 (CASSANDRA-3213)
+ * Make stress.java insert operation to use microseconds (CASSANDRA-3725)
+
 
 1.0.7
  * fix regression in HH page size calculation (CASSANDRA-3624)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/bb7b6431/tools/stress/src/org/apache/cassandra/stress/operations/Inserter.java
----------------------------------------------------------------------
diff --git a/tools/stress/src/org/apache/cassandra/stress/operations/Inserter.java b/tools/stress/src/org/apache/cassandra/stress/operations/Inserter.java
index c81df6f..a887724 100644
--- a/tools/stress/src/org/apache/cassandra/stress/operations/Inserter.java
+++ b/tools/stress/src/org/apache/cassandra/stress/operations/Inserter.java
@@ -22,6 +22,7 @@ import org.apache.cassandra.stress.util.Operation;
 import org.apache.cassandra.db.ColumnFamilyType;
 import org.apache.cassandra.thrift.*;
 import org.apache.cassandra.utils.ByteBufferUtil;
+import org.apache.cassandra.utils.FBUtilities;
 
 import java.io.IOException;
 import java.nio.ByteBuffer;
@@ -54,7 +55,7 @@ public class Inserter extends Operation
         {
             columns.add(new Column(columnName(i, session.timeUUIDComparator))
                                 .setValue(values.get(i % values.size()))
-                                .setTimestamp(System.currentTimeMillis()));
+                                .setTimestamp(FBUtilities.timestampMicros()));
         }
 
         if (session.getColumnFamilyType() == ColumnFamilyType.Super)