phoenix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From la...@apache.org
Subject phoenix git commit: PHOENIX-3070 Unnecessary use of UUID.randomUUID().
Date Mon, 18 Jul 2016 21:13:33 GMT
Repository: phoenix
Updated Branches:
  refs/heads/master e5a8dca90 -> 6a0afa4fa


PHOENIX-3070 Unnecessary use of UUID.randomUUID().


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

Branch: refs/heads/master
Commit: 6a0afa4fa45bce497275eda76fa3c6e663ee9979
Parents: e5a8dca
Author: Lars Hofhansl <larsh@apache.org>
Authored: Mon Jul 18 14:13:21 2016 -0700
Committer: Lars Hofhansl <larsh@apache.org>
Committed: Mon Jul 18 14:15:11 2016 -0700

----------------------------------------------------------------------
 .../main/java/org/apache/phoenix/iterate/BaseResultIterators.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/6a0afa4f/phoenix-core/src/main/java/org/apache/phoenix/iterate/BaseResultIterators.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/main/java/org/apache/phoenix/iterate/BaseResultIterators.java
b/phoenix-core/src/main/java/org/apache/phoenix/iterate/BaseResultIterators.java
index c2a97b5..d0ade72 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/iterate/BaseResultIterators.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/iterate/BaseResultIterators.java
@@ -43,6 +43,7 @@ import java.util.UUID;
 import java.util.concurrent.ConcurrentLinkedQueue;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.Future;
+import java.util.concurrent.ThreadLocalRandom;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.TimeoutException;
 
@@ -365,7 +366,7 @@ public abstract class BaseResultIterators extends ExplainTable implements
Result
                 ? context.getConnection().getQueryServices().getTableStats(physicalTableName,
currentSCN)
                 : PTableStats.EMPTY_STATS;
         // Used to tie all the scans together during logging
-        scanId = UUID.randomUUID().toString();
+        scanId = new UUID(ThreadLocalRandom.current().nextLong(), ThreadLocalRandom.current().nextLong()).toString();
         
         initializeScan(plan, perScanLimit, offset, scan);
         


Mime
View raw message