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

[SpringBoot 2.3] Upgrade to Spring Data Elasticsearch 4.0 and Elasticsearch 7.6 #11683

Merged

Conversation

murdos
Copy link
Contributor

@murdos murdos commented May 1, 2020

@mraible
Copy link
Contributor

mraible commented May 1, 2020

We should make sure this works with Heroku. One of the reasons I switched to Jest is because it did not. See #7810 (comment) for more info.

@murdos murdos force-pushed the spring-boot-2.3 branch from 5d0f068 to 2d04635 Compare May 1, 2020 16:10
@murdos murdos force-pushed the spring-boot-2.3-elasticsearch branch from 8b101a0 to 3ca37ca Compare May 1, 2020 16:14
@murdos
Copy link
Contributor Author

murdos commented May 1, 2020

@mraible : thanks for the comment, it helped me realize that I forgot to clean up our deployments subgenerators (kubernetes, openshift, heroku, ...).

I did some tests, and in fact I was not able to have a working application with heroku and master of generator-jhipster. I guess it's related to jest not supporting ES 7.
I also did some tests with this branch, and it's not working out of the box because Spring Boot doesn't accept and parse user:password information in BONSAI_URL, so I've open an issue for that: spring-projects/spring-boot#21291

@mraible
Copy link
Contributor

mraible commented May 2, 2020

@murdos Do you think this is a breaking change? If so, maybe we should start a v7 branch?

@pascalgrimaud
Copy link
Member

@murdos @mraible : do you want me to release v6.9.0 ? then, we'll start the v7 branch from v6.9.0 and we can continue to release v6 branch when needed ?

@atomfrede
Copy link
Member

As a workaround can't we parse the url ourselfs and set username/password manually? I once did something similar using dokku, which does not populate a jdbc url to parse the database url and create a valid jdbc url from it.

@murdos
Copy link
Contributor Author

murdos commented May 2, 2020

@murdos Do you think this is a breaking change? If so, maybe we should start a v7 branch?

Which change?
The only constraint I can think of is the requirement of version >= 7.6 of Elasticsearch since the Java High Level REST Client is only guaranteed to be able to communicate with any Elasticsearch node running on the same major version and greater or equal minor version.
But I'm not sure this requires switching to a v7 branch.

@murdos @mraible : do you want me to release v6.9.0 ? then, we'll start the v7 branch from v6.9.0 and we can continue to release v6 branch when needed ?

As you can see in cleanup.js I was expecting that a 6.9.0 version will indeed be released before the version including Spring Boot 2.3, and I was targeting a 6.10.0 version for SB2.3. But depending on discussion SB2.3 might end on v7 😉
Anyway, there's no emergency for a 6.9.0 for me, but since there a bit of new features in master, that might be interesting.

@mraible
Copy link
Contributor

mraible commented May 2, 2020 via email

@murdos murdos force-pushed the spring-boot-2.3 branch from 2d04635 to 9d6396e Compare May 7, 2020 21:00
@murdos murdos force-pushed the spring-boot-2.3-elasticsearch branch from 329190c to 2a5443d Compare May 7, 2020 21:00
@murdos murdos force-pushed the spring-boot-2.3 branch from 9d6396e to 3a6cc79 Compare May 9, 2020 17:01
@murdos murdos changed the title [Spring Boot 2.3] Upgrade to Spring Data Elasticsearch 4.0 and Elasticsearch 7.6 [SpringBoot 2.3] Upgrade to Spring Data Elasticsearch 4.0 and Elasticsearch 7.6 May 10, 2020
@murdos murdos force-pushed the spring-boot-2.3 branch from 38f5d27 to 7568d9f Compare May 17, 2020 08:35
@murdos murdos force-pushed the spring-boot-2.3-elasticsearch branch 3 times, most recently from 1f3496d to ff7f3b0 Compare May 24, 2020 23:07
murdos added 2 commits May 26, 2020 00:13
…arch 7.6

Remove Jest since Spring Data now fully support RestHighLevelClient.
Fixes #10003
…sticsearch.home.path

Spring Boot does not support starting embedded node since version 2.0
@murdos murdos force-pushed the spring-boot-2.3-elasticsearch branch 2 times, most recently from 7ae806b to 1d020b9 Compare May 25, 2020 22:26
@murdos murdos force-pushed the spring-boot-2.3-elasticsearch branch from 1d020b9 to afecc89 Compare May 25, 2020 23:04
@murdos
Copy link
Contributor Author

murdos commented Jun 4, 2020

FYI I'm going to merge this PR (in the spring-boot-2.3 branch).
There's no reason to keep using Jest in JHipster: VanRoy/spring-data-jest#116 (comment)

@pascalgrimaud
Copy link
Member

agree @murdos, go ahead

@DanielFran
Copy link
Member

Yes saw it 2 days ago...

@murdos murdos merged commit b0330bc into jhipster:spring-boot-2.3 Jun 4, 2020
@murdos murdos deleted the spring-boot-2.3-elasticsearch branch June 4, 2020 22:03
@pascalgrimaud pascalgrimaud added this to the 6.10.0 milestone Jun 19, 2020
@murdos murdos mentioned this pull request Sep 19, 2020
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants