NIFI-4250 - Elasticsearch 5 delete processor#2045
NIFI-4250 - Elasticsearch 5 delete processor#2045mans2singh wants to merge 1 commit intoapache:masterfrom
Conversation
|
Hey Folks: The travis-ci build is failing (? timing out) with the error included below. Can someone let me know how to resolve this ? Thanks |
|
Hey Folks: Let me know if you have any feedback/recommends for this processor. Thanks Mans |
|
Don't worry about the ANTLR stuff, that seems to trip up Travis sometimes. I can review this either this weekend or early next week. One quick question is whether you think it would be too confusing for the user to just add "delete" as an operation to PutElasticsearch(5), it would require doc updates and such. I'm just thinking that after one version of a Delete ES processor is available, the rest would be desired, requested, and possibly implemented. If that were the case, would it be better to have 3 new processors for delete, or to update the 3 Put processors to accept delete? I'm not leaning one way or the other, I'm interested in your thoughts and others' in order to provide the best user experience. |
|
Regarding having a separate delete processor - I prefer single responsibility principle since it avoids confusion and mixing up configuration, processing logic, error handling, testing, maintenance etc. Along the same lines ElasticSearch provides separate JAVA delete/put/get request builders. Besides, overloading put and delete is confusing to me from the REST semantics. Let me know your thoughts. |
|
Makes sense to me, plus once the Extension Registry is in place, that might be the right spot for additional delete ES processors etc. I will review this for inclusion, thanks in advance! |
|
@mattyb149 - Please let me know if you have any comments/recommendations on this processor. Thanks. |
|
+1 LGTM, ran the build and tests, and tried a flow with various conditions (success, not found, failure), everything works well. Thanks for the contribution! Merging to master |
|
Thanks @mattyb149 |
Thank you for submitting a contribution to Apache NiFi.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:
Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?
Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
Has your PR been rebased against the latest commit within the target branch (typically master)?
Is your initial contribution a single, squashed commit?
For code changes:
For documentation related changes:
Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.