You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by GitBox <gi...@apache.org> on 2022/11/30 05:21:33 UTC

[GitHub] [nifi] ZhewenFu commented on a diff in pull request #6596: NIFI-10717 fix inconsistent tests

ZhewenFu commented on code in PR #6596:
URL: https://github.com/apache/nifi/pull/6596#discussion_r1035539697


##########
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/inheritance/MissingComponentsCheck.java:
##########
@@ -34,15 +35,15 @@ public FlowInheritability checkInheritability(final DataFlow existingFlow, final
         existingMissingComponents.removeAll(proposedFlow.getMissingComponents());
 
         if (existingMissingComponents.size() > 0) {
-            final String missingIds = StringUtils.join(existingMissingComponents, ",");
+            final String missingIds = StringUtils.join(existingMissingComponents.stream().sorted().collect(Collectors.toList()), ",");

Review Comment:
   Hi, the current fix of using LinkedHashSet only fully solves the first test, and the second test is still flaky so I left the sorting here. I have tried to replace `HashSet` with `LinkedHashSet` on all the places where we check `MissingComponenets` but the second test is still flaky in this case. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org