Repository: phoenix Updated Branches: refs/heads/4.x-HBase-1.0 67628f78c -> cb88ae090
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/cb88ae09 Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/cb88ae09 Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/cb88ae09 Branch: refs/heads/4.x-HBase-1.0 Commit: cb88ae09000e372ade79f4ce6f93cafe09d90d67 Parents: 67628f7 Author: Mujtaba <[email protected]> Authored: Thu Sep 10 12:51:50 2015 -0700 Committer: Mujtaba <[email protected]> Committed: Thu Sep 10 12:51:50 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/cb88ae09/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 { } } } +
