phoenix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mujt...@apache.org
Subject phoenix git commit: PHOENIX-2240 Duplicate keys generated by performance.py
Date Thu, 10 Sep 2015 19:51:18 GMT
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-0.98 ba80e2020 -> 40f46b48f


PHOENIX-2240 Duplicate keys generated by performance.py


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

Branch: refs/heads/4.x-HBase-0.98
Commit: 40f46b48fb8d2269bdf134e5303790e682dfd296
Parents: ba80e20
Author: Mujtaba <mujtaba@apache.org>
Authored: Thu Sep 10 12:51:16 2015 -0700
Committer: Mujtaba <mujtaba@apache.org>
Committed: Thu Sep 10 12:51:16 2015 -0700

----------------------------------------------------------------------
 .../java/org/apache/phoenix/util/GeneratePerformanceData.java     | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/40f46b48/phoenix-core/src/test/java/org/apache/phoenix/util/GeneratePerformanceData.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/test/java/org/apache/phoenix/util/GeneratePerformanceData.java
b/phoenix-core/src/test/java/org/apache/phoenix/util/GeneratePerformanceData.java
index 8f5c93f..7ef7887 100644
--- a/phoenix-core/src/test/java/org/apache/phoenix/util/GeneratePerformanceData.java
+++ b/phoenix-core/src/test/java/org/apache/phoenix/util/GeneratePerformanceData.java
@@ -24,6 +24,7 @@ import java.text.SimpleDateFormat;
 import java.util.Calendar;
 import java.util.GregorianCalendar;
 import java.util.Random;
+import java.util.TimeZone;
 
 public class GeneratePerformanceData {
     private static final String FILENAME = "data.csv";
@@ -37,6 +38,7 @@ public class GeneratePerformanceData {
         try {
             Random random = new Random();
             SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+            sdf.setTimeZone(TimeZone.getTimeZone("GMT"));
             if (args.length < 1) {
                 System.out.println("Row count must be specified as argument");
                 return;
@@ -61,3 +63,4 @@ public class GeneratePerformanceData {
         }
     }
 }
+


Mime
View raw message