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/09/04 12:38:17 UTC

[GitHub] [nifi] ChrisSamo632 commented on a change in pull request #5299: NIFI-9034: Allow multiple urls in http Elasticsearch processors

ChrisSamo632 commented on a change in pull request #5299:
URL: https://github.com/apache/nifi/pull/5299#discussion_r702279809



##########
File path: nifi-nar-bundles/nifi-elasticsearch-bundle/nifi-elasticsearch-processors/src/main/java/org/apache/nifi/processors/elasticsearch/FetchElasticsearchHttp.java
##########
@@ -214,7 +214,7 @@ public void onTrigger(final ProcessContext context, final ProcessSession session
             logger.debug("Fetching {}/{}/{} from Elasticsearch", new Object[]{index, docType, docId});
 
             // read the url property from the context
-            final String urlstr = StringUtils.trimToEmpty(context.getProperty(ES_URL).evaluateAttributeExpressions().getValue());
+            final String urlstr = StringUtils.trimToEmpty(getESUrl());

Review comment:
       The `getESUrl()` method calls `trim()` on the value being returned, so do we really need `StringUtils.trimToEmpty` or `.trim()` calls in all the individual processors (I'd imagine not)?




-- 
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: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org