mosermw commented on code in PR #8184:
URL: https://github.com/apache/nifi/pull/8184#discussion_r1455849633
##########
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/flow/synchronization/StandardVersionedComponentSynchronizer.java:
##########
@@ -1433,6 +1434,14 @@ private Map<String, String> populatePropertiesMap(final
ComponentNode componentN
final String serviceVersionedComponentId =
proposedProperties.get(propertyName);
String instanceId =
getServiceInstanceId(serviceVersionedComponentId, group);
value = (instanceId == null) ?
serviceVersionedComponentId : instanceId;
+
+ // Find the same property descriptor in the
component's CreatedExtension and replace it with the
+ // instance ID of the service
+ createdExtensions.stream().filter(ce ->
ce.extension.equals(componentNode)).forEach(createdExtension -> {
+ LOG.debug("Replacing CreatedExtension property {}
old value {} with new value {}",
+ propertyName,
createdExtension.propertyValues.get(propertyName) , value);
Review Comment:
Good point @exceptionfactory, I have removed the debug log statement.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]