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/05/05 21:08:29 UTC

[GitHub] [nifi] mattyb149 commented on a diff in pull request #6001: NIFI-9967: Added FlowSerializationStrategy to determine which flow formats (XML,JSON) to save

mattyb149 commented on code in PR #6001:
URL: https://github.com/apache/nifi/pull/6001#discussion_r866315453


##########
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/StandardFlowService.java:
##########
@@ -173,7 +175,8 @@ public static StandardFlowService createClusteredInstance(
             final RevisionManager revisionManager,
             final Authorizer authorizer) throws IOException {
 
-        return new StandardFlowService(controller, nifiProperties, senderListener, encryptor, true, coordinator, revisionManager, authorizer);
+        return new StandardFlowService(controller, nifiProperties, senderListener, encryptor, true, coordinator, revisionManager, authorizer,
+                FlowSerializationStrategy.WRITE_XML_AND_JSON);

Review Comment:
   Only NiFi itself runs in clustered mode, the reason we have an extra argument in the standalone instance is for MiNiFi, which needs WRITE_XML_ONLY and calls getStandaloneInstance() directly (not via Spring)



-- 
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