Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-0.98 1a05421a3 -> 6416181f8


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

Branch: refs/heads/4.x-HBase-0.98
Commit: 6416181f89e633d9103ef2920ee14c314c473c0f
Parents: 1a05421
Author: Lars Hofhansl <la...@apache.org>
Authored: Mon Jul 18 14:13:21 2016 -0700
Committer: Lars Hofhansl <la...@apache.org>
Committed: Mon Jul 18 14:13:21 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/6416181f/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);
         

Reply via email to