Repository: nifi
Updated Branches:
  refs/heads/master 769b044e3 -> 0690aee45


NIFI-1460 - Performance improvement. test Timeout Mitigation. less IO, less 
dependency on /dev/(u)random.
          - Incorporated comments for UUID format conformance & optimized.
          - polished to satisfy this test-case. we don't need incrementAndGet
Reviewed by Tony Kurc ([email protected]). This closes #202


Project: http://git-wip-us.apache.org/repos/asf/nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/0690aee4
Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/0690aee4
Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/0690aee4

Branch: refs/heads/master
Commit: 0690aee452f01806b941ad80535d0220aa380597
Parents: 769b044
Author: [email protected] <[email protected]>
Authored: Tue Feb 2 15:04:37 2016 -0600
Committer: Tony Kurc <[email protected]>
Committed: Wed Feb 3 21:50:24 2016 -0500

----------------------------------------------------------------------
 .../org/apache/nifi/controller/TestStandardFlowFileQueue.java  | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/nifi/blob/0690aee4/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/TestStandardFlowFileQueue.java
----------------------------------------------------------------------
diff --git 
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/TestStandardFlowFileQueue.java
 
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/TestStandardFlowFileQueue.java
index 32d8566..b84ae90 100644
--- 
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/TestStandardFlowFileQueue.java
+++ 
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/TestStandardFlowFileQueue.java
@@ -533,10 +533,14 @@ public class TestStandardFlowFileQueue {
             this.size = size;
 
             if (!attributes.containsKey(CoreAttributes.UUID.key())) {
-                attributes.put(CoreAttributes.UUID.key(), 
UUID.randomUUID().toString());
+                attributes.put(CoreAttributes.UUID.key(), createFakeUUID());
             }
         }
 
+        private  String createFakeUUID(){
+            final String s=Long.toHexString(id);
+            return new 
StringBuffer("00000000-0000-0000-0000000000000000".substring(0,(35-s.length()))+s).insert(23,
 '-').toString();
+        }
 
         @Override
         public long getId() {

Reply via email to