You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Wojciech Bartosiak (JIRA)" <ji...@apache.org> on 2019/03/12 21:11:00 UTC

[jira] [Updated] (NIFIREG-237) Importing previously exported flow removes definitions of loadBalanceCompression loadBalanceStrategy and partitioningAttribute

     [ https://issues.apache.org/jira/browse/NIFIREG-237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wojciech Bartosiak updated NIFIREG-237:
---------------------------------------
    Description: 
When you export Nifi flow (previously versioned by Nifi GUI) from Registry as JSON it has definitions of
 * loadBalanceCompression
 * loadBalanceStrategy
 * partitioningAttribute

inside connections sections.

 

When you reimport flow from json, creating new version, and then re-export it, above definitions are not included in JSON.

 

  was:
When you export Nifi flow (previously versioned by Nifi GUI) from Registry as JSON it has definitions of
 * loadBalanceCompression
 * loadBalanceStrategy
 * partitioningAttribute

inside connections sections.

 

When you reimport flow from json, creating new version, and then re-export it, above definitions are not included in JSON.

 

Example:
{code:java}
// code placeholder
{
"backPressureDataSizeThreshold": "1 GB",
"backPressureObjectThreshold": 10000,
"bends": [],
"componentType": "CONNECTION",
"destination": {
"comments": "",
"groupId": "9355c6a7-a6c0-3ee2-b1f1-c77bfc3f7516",
"id": "0ff87950-f3af-3453-b016-918684b3ef84",
"name": "[ERROR]LogAttribute",
"type": "PROCESSOR"
},
"flowFileExpiration": "0 sec",
"groupIdentifier": "9355c6a7-a6c0-3ee2-b1f1-c77bfc3f7516",
"identifier": "d512595c-cd92-3b55-b081-d5493d0f6ea1",
"labelIndex": 1,
"loadBalanceCompression": "DO_NOT_COMPRESS",
"loadBalanceStrategy": "DO_NOT_LOAD_BALANCE",
"name": "",
"partitioningAttribute": "",
"prioritizers": [],
"selectedRelationships": [
"No Retry"
],
"source": {
"comments": "",
"groupId": "9355c6a7-a6c0-3ee2-b1f1-c77bfc3f7516",
"id": "f3804ca5-05cc-37ae-a3a1-686c3ca268de",
"name": "InvokeHTTP",
"type": "PROCESSOR"
},
"zIndex": 0
}
{code}
 

exported just after loading:

 
{code:java}
{
"backPressureDataSizeThreshold": "1 GB",
"backPressureObjectThreshold": 10000,
"bends": [],
"componentType": "CONNECTION",
"destination": {
"comments": "",
"groupId": "c1e6e3be-008a-344f-8cae-5d29e14ce9ef",
"id": "0ff87950-f3af-3453-b016-918684b3ef84",
"name": "[ERROR]LogAttribute",
"type": "PROCESSOR"
},
"flowFileExpiration": "0 sec",
"groupIdentifier": "c1e6e3be-008a-344f-8cae-5d29e14ce9ef",
"identifier": "d512595c-cd92-3b55-b081-d5493d0f6ea1",
"labelIndex": 1,
"name": "",
"prioritizers": [],
"selectedRelationships": [
"No Retry"
],
"source": {
"comments": "",
"groupId": "c1e6e3be-008a-344f-8cae-5d29e14ce9ef",
"id": "f3804ca5-05cc-37ae-a3a1-686c3ca268de",
"name": "InvokeHTTP",
"type": "PROCESSOR"
},
"zIndex": 0
},
{code}
 


> Importing previously exported flow removes definitions of loadBalanceCompression loadBalanceStrategy and partitioningAttribute
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: NIFIREG-237
>                 URL: https://issues.apache.org/jira/browse/NIFIREG-237
>             Project: NiFi Registry
>          Issue Type: Bug
>    Affects Versions: 0.3.0
>            Reporter: Wojciech Bartosiak
>            Priority: Critical
>
> When you export Nifi flow (previously versioned by Nifi GUI) from Registry as JSON it has definitions of
>  * loadBalanceCompression
>  * loadBalanceStrategy
>  * partitioningAttribute
> inside connections sections.
>  
> When you reimport flow from json, creating new version, and then re-export it, above definitions are not included in JSON.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)