Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NIFI-4212 - RethinkDB Delete Processor #2030

Closed
wants to merge 2 commits into from

Conversation

mans2singh
Copy link
Contributor

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:

  • Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder?
  • Have you written or updated unit tests to verify your changes?
  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
  • If applicable, have you updated the LICENSE file, including the main LICENSE file under nifi-assembly?
  • If applicable, have you updated the NOTICE file, including the main NOTICE file found under nifi-assembly?
  • If adding new Properties, have you added .displayName in addition to .name (programmatic access) for each of the new properties?

For documentation related changes:

  • Have you ensured that format looks appropriate for the output in which it is rendered?

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.

@jvwing
Copy link
Contributor

jvwing commented Jul 25, 2017

Reviewing...

@jvwing
Copy link
Contributor

jvwing commented Jul 25, 2017

Overall, this looks good - tests pass, integration tests pass, refactoring of integration test credentials is nice, code looks good. In my basic testing, it deleted objects from RethinkDB just fine. I have a few questions about the Return old Changes from the delete option, and how it is processed. I am not very familiar with RethinkDB, so I had to check the delete docs on how it works. I have no practical experience using this option.

  • Instead of a true/false dropdown list, you made this a free text field supporting expression language. May I ask why? I think it would be easier to edit if we did, and easier to understand if we made the options more explanatory ("Capture changes as FlowFile content", "Do not capture changes", or something like that).
  • If the option is true, the processor writes the changes to the attribute rethinkdb.delete.changes, the changes are also contained in the entire raw attribute rethinkdb.delete.result attribute, and finally the changes are written to the flowfile content. Do we need all of those?
  • In the event that the deleted document is large, the attributes will be large, and potentially unusable due to truncation at 64KB.
  • The modify provenance event is reported regardless of this setting. Shouldn't we only do that if a change is made?

@mans2singh
Copy link
Contributor Author

Hi @jvwing - Thanks for your feedback and recommendations.

I used EL support for returning changed document attribute to give the use the flexibility to make the decision globally or per document. If you think this is not useful, I can change it.

You are right about the change document in the attribute and I've removed the related attributes.

Also, I've corrected modify provenance event to be invoked only when the flow file content is changed.

Please let me know if you have any other recommendations.

Thanks again.

Mans

@mans2singh
Copy link
Contributor Author

Hi @jvwing - Please let me know if you have any other recommendations for this pull request. Thanks.

@jvwing
Copy link
Contributor

jvwing commented Jul 29, 2017

Thanks for fixing those items, @mans2singh, I'll get this merged.

@asfgit asfgit closed this in 0bb1411 Jul 29, 2017
@mans2singh
Copy link
Contributor Author

Thanks @jvwing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants