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:56:01 GMT
Repository: phoenix
Updated Branches:
  refs/heads/4.5-HBase-1.1 decde8faa -> a501829b3


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

Branch: refs/heads/4.5-HBase-1.1
Commit: a501829b32523583a4fdfd53d199cd1a9dcfb527
Parents: decde8f
Author: Mujtaba <mujtaba@apache.org>
Authored: Thu Sep 10 12:55:58 2015 -0700
Committer: Mujtaba <mujtaba@apache.org>
Committed: Thu Sep 10 12:55:58 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/a501829b/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