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:55:43 GMT
Repository: phoenix
Updated Branches:
  refs/heads/4.5-HBase-1.0 0c29f2733 -> 09bb30c67


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/09bb30c6
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/09bb30c6
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/09bb30c6

Branch: refs/heads/4.5-HBase-1.0
Commit: 09bb30c6754a59c792138d0e3499a796f59876c0
Parents: 0c29f27
Author: Mujtaba <mujtaba@apache.org>
Authored: Thu Sep 10 12:55:41 2015 -0700
Committer: Mujtaba <mujtaba@apache.org>
Committed: Thu Sep 10 12:55:41 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/09bb30c6/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