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

[3.0.0][Bug] Jarhell when installing the plugin zip on opensearch core #1165

Closed
peterzhuamazon opened this issue Jul 16, 2024 · 6 comments
Closed
Labels
bug Something isn't working

Comments

@peterzhuamazon
Copy link
Member

https://build.ci.opensearch.org/blue/organizations/jenkins/distribution-build-opensearch/detail/distribution-build-opensearch/10068/pipeline/69

2024-07-16 18:05:24 INFO     Executing "/tmp/tmprdj4jneh/opensearch-3.0.0/bin/opensearch-plugin install --batch file:/tmp/tmprdj4jneh/opensearch-security-analytics-3.0.0.0.zip" in /tmp/tmprdj4jneh/opensearch-3.0.0

-> Installing file:/tmp/tmprdj4jneh/opensearch-security-analytics-3.0.0.0.zip

-> Downloading file:/tmp/tmprdj4jneh/opensearch-security-analytics-3.0.0.0.zip

-> Failed installing file:/tmp/tmprdj4jneh/opensearch-security-analytics-3.0.0.0.zip

-> Rolling back file:/tmp/tmprdj4jneh/opensearch-security-analytics-3.0.0.0.zip

-> Rolled back file:/tmp/tmprdj4jneh/opensearch-security-analytics-3.0.0.0.zip

Exception in thread "main" java.lang.IllegalStateException: failed to load plugin opensearch-security-analytics due to jar hell

	at org.opensearch.plugins.PluginsService.checkBundleJarHell(PluginsService.java:693)

	at org.opensearch.plugins.InstallPluginCommand.jarHellCheck(InstallPluginCommand.java:861)

	at org.opensearch.plugins.InstallPluginCommand.loadPluginInfo(InstallPluginCommand.java:829)

	at org.opensearch.plugins.InstallPluginCommand.installPlugin(InstallPluginCommand.java:874)

	at org.opensearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:276)

	at org.opensearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:250)

	at org.opensearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:104)

	at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:138)

	at org.opensearch.cli.MultiCommand.execute(MultiCommand.java:104)

	at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:138)

	at org.opensearch.cli.Command.main(Command.java:101)

	at org.opensearch.plugins.PluginCli.main(PluginCli.java:66)

Caused by: java.lang.IllegalStateException: jar hell!

class: com.google.common.annotations.Beta

jar1: /tmp/tmprdj4jneh/opensearch-3.0.0/plugins/opensearch-job-scheduler/guava-32.1.3-jre.jar

jar2: /tmp/tmprdj4jneh/opensearch-3.0.0/plugins/opensearch-alerting/guava-32.0.1-jre.jar

	at org.opensearch.bootstrap.JarHell.checkClass(JarHell.java:316)

	at org.opensearch.bootstrap.JarHell.checkJarHell(JarHell.java:215)

	at org.opensearch.plugins.PluginsService.checkBundleJarHell(PluginsService.java:675)

	... 11 more

Thanks.

@peterzhuamazon peterzhuamazon added the bug Something isn't working label Jul 16, 2024
@peterzhuamazon
Copy link
Member Author

@goyamegh
Copy link
Collaborator

goyamegh commented Jul 17, 2024

@goyamegh
Copy link
Collaborator

Started running security tests on a dummy PR to see if they are passing now: https://github.com/opensearch-project/security-analytics/actions/runs/9980393278?pr=1171

@goyamegh
Copy link
Collaborator

The security tests are failing due to assertion failures now for three tests specifically. I'm looking into them now, to figure out the root cause.

@goyamegh
Copy link
Collaborator

@peterzhuamazon jar hell issue is now fixed, which was verified by confirming that the docker image is getting published as expected. For integ test failures with security enabled, it is being tracked and fixed as part of: #1182.

Let me know if I can close this issue now. Thanks!

@peterzhuamazon
Copy link
Member Author

@peterzhuamazon jar hell issue is now fixed, which was verified by confirming that the docker image is getting published as expected. For integ test failures with security enabled, it is being tracked and fixed as part of: #1182.

Let me know if I can close this issue now. Thanks!

Go ahead and close the issue.
Thanks @goyamegh !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants