NIFI-5688: Ensure that when we map our flow to a VersionedProcessGroup that we include the connections' Load Balance Compression flag

This closes #3064
This commit is contained in:
Mark Payne 2018-10-11 14:57:31 -04:00 committed by Matt Gilman
parent 8da403ce9e
commit 8398ea77bc
No known key found for this signature in database
GPG Key ID: DF61EC19432AEE37
1 changed files with 1 additions and 0 deletions

View File

@ -250,6 +250,7 @@ public class NiFiRegistryFlowMapper {
final FlowFileQueue flowFileQueue = connection.getFlowFileQueue();
versionedConnection.setLoadBalanceStrategy(flowFileQueue.getLoadBalanceStrategy().name());
versionedConnection.setPartitioningAttribute(flowFileQueue.getPartitioningAttribute());
versionedConnection.setLoadBalanceCompression(flowFileQueue.getLoadBalanceCompression().name());
versionedConnection.setBends(connection.getBendPoints().stream()
.map(this::mapPosition)