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 2021/01/05 22:41:45 UTC
[GitHub] [nifi] turcsanyip commented on a change in pull request #4586: NIFI-7894 - ConsumeMQTT - allow EL on Client ID property with shared …
turcsanyip commented on a change in pull request #4586:
URL: https://github.com/apache/nifi/pull/4586#discussion_r552232866
##########
File path: nifi-nar-bundles/nifi-mqtt-bundle/nifi-mqtt-processors/src/main/java/org/apache/nifi/processors/mqtt/ConsumeMQTT.java
##########
@@ -194,9 +194,15 @@ public void onPropertyModified(PropertyDescriptor descriptor, String oldValue, S
}
final boolean clientIDSet = context.getProperty(PROP_CLIENTID).isSet();
+ final boolean clientIDwithEL = context.getProperty(PROP_CLIENTID).isExpressionLanguagePresent();
final boolean groupIDSet = context.getProperty(PROP_GROUPID).isSet();
- if (clientIDSet && groupIDSet) {
- results.add(new ValidationResult.Builder().subject("Client ID and Group ID").valid(false).explanation("if client ID is not unique, multiple nodes cannot join the consumer group").build());
+ if (!clientIDwithEL && clientIDSet && groupIDSet) {
+ results.add(new ValidationResult.Builder()
+ .subject("Client ID and Group ID").valid(false)
+ .explanation("If client ID is not unique, multiple nodes cannot join the consumer group. If you want "
Review comment:
The explanation will be concatenated into a sentence like `"... is invalid because [explanation]"` by the framework.
So it should start with lower case I think.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org