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

Upgrade plugin to work with actual newest ES version 6.5.x #13

Closed
occurred opened this issue Sep 10, 2018 · 13 comments
Closed

Upgrade plugin to work with actual newest ES version 6.5.x #13

occurred opened this issue Sep 10, 2018 · 13 comments
Assignees
Labels
Milestone

Comments

@occurred
Copy link

For this also an upgrade from the actual used TransportClient to the new Rest Client will be done:
https://www.elastic.co/guide/en/elasticsearch/client/java-rest/master/java-rest-overview.html

occurred added a commit that referenced this issue Jan 23, 2019
There are still tests failing and most problematic is the case that embedded ES was removed and so there is no accurate possibility to run integration tests with ES, see here: https://discuss.elastic.co/t/in-memory-testing-with-resthighlevelclient/106196/6 . For now the integration tests are only working if a local elasticsearch version is running, which can be downloaded here: https://www.elastic.co/downloads/past-releases - please note that you’ve to use the same version like described in the above comments, so for now it is 6.5.4
@occurred occurred added this to the 2.5.0 milestone Jan 23, 2019
occurred added a commit that referenced this issue Jan 23, 2019
@occurred occurred modified the milestones: 2.5.0, 2.6.0 Jan 23, 2019
@occurred occurred changed the title Upgrade plugin to work with actual newest ES version 6.4.0 Upgrade plugin to work with actual newest ES version 6.5.x Jan 23, 2019
@occurred occurred added the type: enhancement New feature or request label Jan 30, 2019
@codeconsole
Copy link
Contributor

You are better off skipping 6.5.x and going straight to 7.1.x

@cgoIT
Copy link

cgoIT commented Aug 6, 2019

Are there any plans to get this issue done in an upcoming release (2.5.0, 2.6.0)? We're using this plugin in one of our projects but have to use a newer es version. We have some little time yet. But if there is no time schedule maybe we have to get this done on our own (I think the main work is done by the commits linked here in this ticket).

@occurred
Copy link
Author

occurred commented Aug 6, 2019

Yes, I think the main work is already done by me, see:
https://github.com/puneetbehl/elasticsearch-grails-plugin/tree/2.6.0.RC1

Sorry, but currently I can't say when I'm able to finish.

@cgoIT
Copy link

cgoIT commented Aug 6, 2019

Thx for your quick response. I saw this branch. Just looking at it ;).

Do you have a list of things which are not finished yet? I do not want to promise too much, but maybe I find the time to take a look.

@occurred
Copy link
Author

occurred commented Aug 6, 2019

I'll try to find out asap and will let you know - don't think that it will be before today evening (CEST).
I also saw now on my local branch that I've some small additional changes I can commit.

@cgoIT
Copy link

cgoIT commented Aug 6, 2019

Hi, maybe you could have a look on my commits from today: https://github.com/cgoIT/elasticsearch-grails-plugin/commits/2.6.0.RC1.

Maybe it's easier (to not blow up this thread here) to communicate via email ([email protected]) and post our results here?

@cgoIT
Copy link

cgoIT commented Aug 8, 2019

I also invested some time to upgrade to ElasticSearch 7.3.0. You could find my commits under https://github.com/cgoIT/elasticsearch-grails-plugin/commits/2.7.0.RC1.

In this branch I also included a gradle plugin (the plugin is not available at the plugin portal right now. Will be there soon) to start an "embedded" elasticsearch node for integration tests.

@puneetbehl
Copy link
Contributor

Thank you @cgoIT and @occurred for your help. I just completed an initial draft to support Grails 4. Also, we are now using semantic versioning ( trying to simplify versioning). So, the next version to support Grails 4 would be 3.0.0

Once we complete upgrade to support ES 6.x or 7.x then the version would be 5.0.0. I am going on vacation but will prioritize the remaining work to support ES v7.3.0.

@puneetbehl
Copy link
Contributor

@cgoIT Would you be interested to send a PR with your changes?

@cgoIT
Copy link

cgoIT commented Jun 12, 2020

Hi, this could be difficult. In the meantime, a lot of code has changed, so that merging should no longer be possible automatically.

I don't think the situation itself is really good, but since we have to use the plugin in an official product, we were forced to develop it further.

Currently I have too little time to rework the code so that am automatic merge is possible. Unfortunately I didn't get any feedback on my messages from 6.8. and 8.8.2019. Otherwise I surely would have waited with the further adjustments.

There are not only the adjustments to the new ElasticSearch version. The other main changes concern the possibility to use aggregations and the Snapshot Lifecycle Management.

@puneetbehl
Copy link
Contributor

I appreciate the effort you put in and all the work you have done on the plugin. I think the issue might be that you are trying to merge to the master branch which is for Grails 4. The automatic merge should be possible without conflicts if you do it based on the branch 2.6.0.RC1.

Once, that is done I would add a tag and that should do the automatic release to support the latest version of Elasticsearch with Grails 3. If you would want the commit rights on this repository then I could grant the permission for the same. But, I would like to keep this as the official repository.

@puneetbehl puneetbehl modified the milestones: 2.6.0, 2.7.0 Jun 17, 2020
@puneetbehl
Copy link
Contributor

Check https://github.com/puneetbehl/elasticsearch-grails-plugin/tree/2.7.x
Thanks to @cgoIT and @occurred

@cgoIT
Copy link

cgoIT commented Jun 17, 2020

Hi,
maybe you could have a look at #14 and #15. I think there's a good chance that this two bugs are fixed as well with the new version.

#14: I'm not sure if I get all cases for Temporal classes from the java.time package.
#15: I use highlighting feature quite intensive within our application and didn't found any issues with that until now.

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

No branches or pull requests

4 participants