You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Mark Payne (JIRA)" <ji...@apache.org> on 2016/07/29 15:14:20 UTC

[jira] [Created] (NIFI-2432) Clarify message provided when local flow differs from cluster flow

Mark Payne created NIFI-2432:
--------------------------------

             Summary: Clarify message provided when local flow differs from cluster flow
                 Key: NIFI-2432
                 URL: https://issues.apache.org/jira/browse/NIFI-2432
             Project: Apache NiFi
          Issue Type: Improvement
          Components: Core Framework
            Reporter: Mark Payne
             Fix For: 1.1.0


Currently, when a node attempts to join a cluster, if its flow is different than the cluster flow, the message provided is not ideal. For example:

Local Fingerprint:   api.dto.ProcessorDTOPutFileWARN0 secTIMER_DRIVEN1 sec130 secnullConflict Resolution Strategy=replaceCreate Missing Directories=trueDirectory=/home/filePermissions=666NO 
Cluster Fingerprint: api.dto.ProcessorDTOPutFileWARN0 secTIMER_DRIVEN1 sec130 secnullConflict Resolution Strategy=replaceDirectory=/home/filePermissions=666NO_AUTO_TERMINATED_RELATIONSHIPS6

From this, one can glean the difference between the flow if they understand the structure of the message, but it is not at all intuitive. At the point when this message is generated, we have both the proposed flow and the current flow. We also have methods that will convert both flows into DTO objects. So we should instead perform a more intelligent 'diff' and output message such as:

Proposed flow does not contain Process Group ABC(id=1234)

Proposed flow has different property values for Processor MyPutFile(id=4321):
Create Missing Directories = true (Local Flow)
Create Missing Directories = <NO VALUE SET> (Cluster Flow)

This makes it much more clear what the difference is between the flows so that the admin is able to determine how to address the issue.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)