-
Notifications
You must be signed in to change notification settings - Fork 14
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
Problem with migrations location when switched to 0.4.3 #239
Comments
Attach logs for both versions 0.4.3 0.4.2 |
BTW for elastic version 8.8.1 three are some warnings |
thanks @alexeychalov |
Hi @xtermi2, @alexeychalov: I just tried it out in my project. All my migration scripts are getting collected with the new version 4.3.0, see debugger screenshot and a log screenshot. My configuration in this case is the default one. After migrating there is a validation mechanism of Hibernate Search which does not fail - so index seems to be completely migrated. |
@xtermi2: I see that @alexeychalov got a baseline version set and I see some minor changes between 4.2 and 4.3 regarding the baseline validation. Could that be the case? |
@RiVogel: actually, baseline version is default one, I didn't set it purposefully. Moreover, my migrations run on application packaged in boot jar startup, if there no problems in your case I guess it may classloader/class path lookup issue. But everything was fine in 0.4.2 version I'll later will make a test with 0.4.3 version and downgraded reflections version and report the result |
Well, actually I cannot use evolution version 0.4.3 with reflections 0.9.12: Running just main class is ok, running via gradle bootRun is ok, the problem appears only if I run bootJar via java -jar |
@alexeychalov: Yes, downgrading did not work since org.reflections also changed the usage of the ResourceScanner somehow. In the meantime I could reproduce your problem within a minimal reproducer and starting the Spring Boot application with "java -jar". Let's see... |
I can't believe it. It looks like you ran into this issue: ronmamo/reflections#373 My mimimal reproducer faced the same problem and after downgrading to reflections version 0.10.1 it worked. @xtermi2: Shall we change the dependency to reflections 0.10.1 or just mention it in the documentation? |
Maybe both. But we also need an unit- or integration test. |
… the classpath for migration files. Fixes #239
@RiVogel and/or @alexeychalov can you checkout the branch |
@xtermi2 works fine, indices are created. Thanks, guys. 2023-11-16 09:58:22,887 WARN [main] o.e.c.RequestLogger: request [POST http://localhost:9200/search_support_evolution/_search?ignore_throttled=false&ignore_unavailable=true&expand_wildcards=open&allow_no_indices=true] returned 1 wa ES8. Should I create another issue? |
OK, thanks for testing @alexeychalov. Then I will create a release shortly in the next days.
|
@xtermi2: Yes, for me the branch also works. Maybe add in the documentation of 0.4.3 that one should downgrade reflections to 0.10.1 if they run spring as jar. |
… the classpath for migration files. Fixes #239
… the classpath for migration files. Fixes #239
After switching to 0.4.3 from 0.4.2 starter does not see migration script directory in packaged boot jar. I.e. when one clean up elastic and then start migration via boot jar app startup. Everything worked fine in 0.4.2 version
The text was updated successfully, but these errors were encountered: