-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
JVM crash #395
Comments
Ouch. That doesn't look good. Based on the error message, it seems as though there's a failure occurring within the Jansi library's JNI code. fusesource/jansi#66 looks vaguely similar and suggests that there is a clash with the version of Jansi shipped with Gradle. Do you think this sounds plausible? It might be worth trying to force Testcontainers to use a different version of Jansi for it's transitive dependency; whichever version Gradle is bringing in (or any other version that may be on your classpath). I'm sorry that we've never observed this before, otherwise I'd hope we could be of more help! If we can find a way to fix within Testcontainers we'll definitely do that. |
Yeah I agree, will try to exclude jansi from the testcontainer dependency. But why did this start to happen now? Did you add new dependencies? |
@sscarduzio yes, in 1.3.1 we added "pre-flight checks", they use @rnorth's VisibleAssertions, and they have a dependency on jansi. We might try to shade it if it causes issues to the end-user. P.S. didn't know that you use Testcontainers in readonly-rest-plugin, that's cool 👍 |
Yes please, would be nice if you manage to shade that stuff. Our project build files are already way too tricky to add more exclude clauses. Yeah we use testcontainers because what we want to prove in CI is that the plugin behaves the same way across all Elasticsearch versions. So we test the behaviour over the (docker) network. Did you know readonlyrest plugin? Wow, I'm flattered. 👍 |
@sscarduzio sorry to hear that it doesn't work for you sometime :) I'll take a look at jansi dependency and how can we shade it. If you need a workaround until that fix, you can just disable the checks, so that they will not use jansi at all. You can add And thanks for reporting! |
Brilliant, will try the workaround right now :) |
I didn't mean to say TC is bad and breaks all the times, just that it's naturally more fragile because docker operates below the JVM abstraction level and stuff tends to get complicated (i.e. docker version upgrades, different platforms, etc). I guess it's the price to pay for doing things right. ¯_(ツ)_/¯ |
* Upgrade to v2.0.0 of Visible Assertions Removes usage of Jansi - fixes #395 * Update changelog
I'm out of ideas about what can ever cause this catastrophic crash, I was hoping some of you can give some pointers on where to look nest.
https://travis-ci.org/sscarduzio/elasticsearch-readonlyrest-plugin/jobs/251713488
Relevant code:
https://github.com/sscarduzio/elasticsearch-readonlyrest-plugin/blob/support_2x/tests-utils/src/main/java/org/elasticsearch/plugin/readonlyrest/utils/containers/ESWithReadonlyRestContainer.java
The text was updated successfully, but these errors were encountered: