Spring Boot 2.3, JHipster 7 and Couchbase

170 views
Skip to first unread message

Aurélien Mino

unread,
Aug 23, 2020, 1:02:55 PM8/23/20
to JHipster dev team
Hi team!

I'm back from holidays and I saw that a lot of refactoring has been merged in the main generator.
Thus the spring-boot-2.3 branch now has a lot of conflicts with master.

The current status of Spring Boot 2.3 upgrade is that everything should work, except Couchbase.

Spring Data Couchbase 4.0, pulled by SB 2.3, suffers from a lot of issues, as reported in comments of SB 2.3 announcement: https://spring.io/blog/2020/05/15/spring-boot-2-3-0-available-now#comment-4918821080
I've myself reported a few bugs, some were fixed, some are still open: https://jira.spring.io/browse/DATACOUCH-588 and https://jira.spring.io/browse/DATACOUCH-589.

So Couchbase support is stuck, I don't have the energy to continue working on it (I already spent so much time :( on it). The draft PR is here: https://github.com/jhipster/generator-jhipster/pull/11845 and a generated project is also available: https://github.com/murdos/react-maven-couchbase-caffeine-sb23 if anyone want to work on it.

So the question is how do we move forward with the SB 2.3 upgrade?
IMO the branch should be merged soon in master, because the more we wait, the more conflicts we'll have. I'm inclined to fix the conflicts once, but I won't do it again and again.
Should we temporarily disable Couchbase and try to fix it before release of JHipster 7? Or should we remove it from JHipster 7?

Aurélien

Matt Raible

unread,
Aug 23, 2020, 1:37:01 PM8/23/20
to Aurélien Mino, JHipster dev team
I’d say we upgrade to Spring Boot 2.3 and leave Couchbase behind. We can leave an issue open for it and put a bug bounty on it. If it’s not fixed before 7.0 GA is released, oh well. We can advertise that it’s not included in alpha and beta releases, hopefully encouraging someone to help. 

We can always add it back in after 7.0 is released if it’s fixed.

Cheers,

Matt

--
You received this message because you are subscribed to the Google Groups "JHipster dev team" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jhipster-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jhipster-dev/CACXN3_gAVJTJpuyTCppU_xBJs8jqRKsN5M9weOErJ%2ByCefFL%2BA%40mail.gmail.com.

Pascal GRIMAUD

unread,
Aug 23, 2020, 1:39:00 PM8/23/20
to Aurélien Mino, JHipster dev team
Hello,

I'm in favor of disabling Couchbase if no one wants to help to keep the option:
- remove it from prompt or mention "broken"
- remove it from CI
Then, if it's not fixed in a few weeks/months, let's simply remove it.

As already said, we have really too many options.
Lot of people are happy to have it, but when it's time to help/fix the bugs, there is a strange silence...

Pascal



--

Frederik Hahne

unread,
Aug 23, 2020, 1:55:39 PM8/23/20
to JHipster dev team
Let's disable and the option for now. I guess when spring data has ironed out the issues it might be easy to add again. So let's move forward with 2.3.

Julien Dubois

unread,
Aug 23, 2020, 2:27:43 PM8/23/20
to Frederik Hahne, JHipster dev team
Hey, just when I’m discussing with Couchbase so they sponsor the project 🤣
Well, it might show that we need support from them! Anyway, I agree with the decision, we can’t postpone Spring Boot 2.3 just for one option.

Julien Dubois 

--
Julien Dubois

Twitter: @juliendubois

Anthony Viard

unread,
Aug 28, 2020, 10:55:38 AM8/28/20
to JHipster dev team
My bad, I forgot to reply All :D

---------- Forwarded message ---------
De : Anthony Viard <anth....@gmail.com>
Date: ven. 28 août 2020 à 16:54
Subject: Re: Spring Boot 2.3, JHipster 7 and Couchbase
To: Aurélien Mino <aureli...@gmail.com>, Julien Dubois <julien...@gmail.com>


Hi Aurélien,
now we've just finished adding Cypress to the generator, I wonder if you need help to move forward on Spring Boot 2.3. 
For the v7, it will be awesome to merge Spring boot 2.3, I think it's a must have.

@Julien Dubois Have we some news about Couchbase issues and help that we can have from them?

Do we, finally, disable this option for the moment?

Regards, 

Anthony

Le dim. 23 août 2020 à 19:02, Aurélien Mino <aureli...@gmail.com> a écrit :
--

Julien Dubois

unread,
Aug 28, 2020, 11:13:38 AM8/28/20
to Anthony Viard, JHipster dev team
Hey,
No reply from Couchbase yet... I don't believe this option is used by a lot of people, so we shouldn't make everybody wait just for this. Please remove the option, but not the code: if we don't find a solution in the next 6-12 months then we'll also remove the code, but there's no need to rush and I have good confidence we will have something.

Julien

Aurélien Mino

unread,
Aug 28, 2020, 11:33:07 AM8/28/20
to Anthony Viard, JHipster dev team
Hi Anthony,

Couchbase CI tests have been disabled in the spring-boot-2.3 branch and the option labelled as broken.
I've currently 2 issues:
- backend tests for react-gradle-psql-es-noi18n-mapsid are failing on CI, but I don't reproduce locally. My only hint right now is to check if it's related to the previous CI step that starts docker containers.
- there's seems to be an issue with webflux tests that don't run at all with GithubActions - they should however been green

If you have time to help with these issues, that would be great ;-)
I'll try to work on it too during week-end.

Aurélien

Zs.

unread,
Aug 28, 2020, 7:12:59 PM8/28/20
to Aurélien Mino, Anthony Viard, JHipster dev team
My guess is that here the condition is only true, when the commit message contains the "[webflux]" string.

Zsombor

Anthony Viard

unread,
Aug 28, 2020, 7:20:36 PM8/28/20
to Aurélien Mino, JHipster dev team, Zsombor G
I've failed another time (I must choose "reply all" next time :)). 

---------- Forwarded message ---------
De : Anthony Viard <anth....@gmail.com>
Date: sam. 29 août 2020 à 01:18

Subject: Re: Spring Boot 2.3, JHipster 7 and Couchbase
To: Zsombor G <gzso...@gmail.com>


Oh yes! This had been added recently to avoid amount of builds when we open a PR. Since reactive is still in alpha, we suppose that you must enable explicitly the webflux builds by adding the keyword in the commit message. 

Daniel Franco

unread,
Aug 28, 2020, 7:27:44 PM8/28/20
to gzso...@gmail.com, Aurélien Mino, Anthony Viard, JHipster dev team
Hello,

Pascal did it on purpose.

See #12156:

Webflux is ignored by default, as it is still in beta and some of these options are not used enough:

  • if you want to trigger Webflux build, add [webflux] in your commit message

Aurélien Mino

unread,
Sep 2, 2020, 3:38:16 AM9/2/20
to Anthony Viard, JHipster dev team
Hi,

Regarding issue with react-gradle-psql-es-noi18n-mapsid, it seems to be related to Gradle (it works fine with Maven) that loads hazelcast 3 rather than hazelcast 4:

Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
io.github.jhipster.sample.config.CacheConfiguration.initializeDefaultMapConfig(CacheConfiguration.java:93)
The following method did not exist:
'com.hazelcast.config.EvictionConfig com.hazelcast.config.MapConfig.getEvictionConfig()'
The method's class, com.hazelcast.config.MapConfig, is available from the following locations:
jar:file:/home/runner/.gradle/caches/modules-2/files-2.1/com.hazelcast/hazelcast/3.12.8/c92dd8dd1bdd8ed0733aa6e0827761acec46cb6/hazelcast-3.12.8.jar!/com/hazelcast/config/MapConfig.class
The class hierarchy was loaded from the following locations:
com.hazelcast.config.MapConfig: file:/home/runner/.gradle/caches/modules-2/files-2.1/com.hazelcast/hazelcast/3.12.8/c92dd8dd1bdd8ed0733aa6e0827761acec46cb6/hazelcast-3.12.8.jar

I've added a call to the :dependencies task on CI that shows that Hazelcast 4 is detected and should be used, and I don't have the issue locally, so I'm a bit puzzled here.
If anyone has an idea on the way to solve that...

Aurélien

Vishal Mahajan

unread,
Sep 2, 2020, 4:04:23 AM9/2/20
to Aurélien Mino, Anthony Viard, JHipster dev team
In job logs, I can see the version being picked up as 3.12.8 instead of 4.0.1
2020-08-30T22:17:30.6828124Z |    +--- com.hazelcast:hazelcast:4.0.1 -> 3.12.8 (c)
2020-08-30T22:17:30.6828883Z |    +--- com.hazelcast:hazelcast-spring:4.0.1 -> 3.12.8 (c)

I am not a gradle expert, but, can try to take a quick look over here.

Cheers,
Vishal

Fredrik Hahne

unread,
Sep 2, 2020, 4:31:51 AM9/2/20
to jhipst...@googlegroups.com

I won't have time before 4th (need to finish a print article about jhipster) so if you have some time please go ahead.

Vishal Mahajan

unread,
Sep 2, 2020, 5:05:34 AM9/2/20
to Fredrik Hahne, JHipster dev team
Reply all
Reply to author
Forward
0 new messages