NIFI-9678 update Elasticsearch REST API processor integration-tests for Elasticsearch 8.x#5822
NIFI-9678 update Elasticsearch REST API processor integration-tests for Elasticsearch 8.x#5822ChrisSamo632 wants to merge 1 commit into
Conversation
…or Elasticsearch 8.x
| String type = TYPE | ||
| if (VERSION.toString().startsWith("7.")) { | ||
| if (VERSION.toString().startsWith("8.")) { | ||
| // TODO: something that's deprecated when the 8.x branch progresses to include search-API deprecations |
There was a problem hiding this comment.
What shall we do with this here?
There was a problem hiding this comment.
I'm generally not a fan of TODOs in code, but there's literally no deprecated Search API funcitons in Elasticsearch 8.x yet (it's too new for them to have deprecated anything, having just removed all previously deprecated stuff from 7.x).
I've Skipped the test for 8.x using the Assume but I think we should look to update this test to prove the WARNING funcitnoality for 8.x once Search API deprecations appear in Elasticsearch (so that would be a case of removing the Assume and implementing some sort of query here that caused a WARNING).
We could just remove this TODO and if branch, but I thought the TODO here would hopefully serve as a reminder to do this in future. I'd normally raise a Jira ticket to cover a TODO, but as there's no realistic way of currently implementing such a Jira ticket, it seemed like that wouldn't be sensible either.
So I think the options are:
- Leave as-is and pick this up for a future version of Elasticsearch 8.x
- Remove the TODO and hope someone picks this up in future
- Raise a Jira ticket to pick this up in future, noting that it can't currently be implemented and someone will need to watch out for an appropriate Search API deprecation in order to achieve the test
There was a problem hiding this comment.
Thanks for the elaboration -- in light of that, I think we should keep the TODO.
gresockj
left a comment
There was a problem hiding this comment.
I successfully ran the integration tests -- it's good to know ES 8 will be supported out of the box. Aside from one question about a leftover "TODO", this test update looks good to me.
gresockj
left a comment
There was a problem hiding this comment.
Thanks for the clarification regarding the TODO, @ChrisSamo632 -- I'll go ahead and merge.
…or Elasticsearch 8.x Signed-off-by: Joe Gresock <jgresock@gmail.com> This closes apache#5822.
…or Elasticsearch 8.x Signed-off-by: Joe Gresock <jgresock@gmail.com> This closes apache#5822.
Description of PR
NIFI-9678 test integration of Elasticsearch REST API processors with 8.x.
Tested using the following integration tests in the
nifi-elasticsearch-client-servicemodule (see the updatedREADME.md):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
main)?Is your initial contribution a single, squashed commit? Additional commits in response to PR reviewer feedback should be made on this branch and pushed to allow change tracking. Do not
squashor use--forcewhen pushing to allow for clean monitoring of changes.For code changes:
mvn -Pcontrib-check clean installat the rootnififolder?[ ] 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 theLICENSEfile, including the mainLICENSEfile undernifi-assembly?[ ] If applicable, have you updated theNOTICEfile, including the mainNOTICEfile found undernifi-assembly?[ ] If adding new Properties, have you added.displayNamein 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 GitHub Actions CI for build issues and submit an update to your PR as soon as possible.