Skip to content

LicenseTribeTests failure #42004

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

Closed
davidkyle opened this issue May 9, 2019 · 6 comments
Closed

LicenseTribeTests failure #42004

davidkyle opened this issue May 9, 2019 · 6 comments
Assignees
Labels
:Security/License License functionality for commercial features Team:Security Meta label for security team >test-failure Triaged test failures from CI

Comments

@davidkyle
Copy link
Member

https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+6.7+multijob-unix-compatibility/os=redhat-8/155/console

java.lang.IllegalStateException: failed to load plugin class [org.elasticsearch.xpack.core.XPackPlugin]
	at __randomizedtesting.SeedInfo.seed([C243B7DC44DADFC4:A317BD6C5FD831E5]:0)
	at org.elasticsearch.plugins.PluginsService.loadPlugin(PluginsService.java:614)
	at org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:119)
	at org.elasticsearch.node.Node.<init>(Node.java:339)
	at org.elasticsearch.node.MockNode.<init>(MockNode.java:105)
	at org.elasticsearch.node.MockNode.<init>(MockNode.java:91)
	at org.elasticsearch.node.MockNode.<init>(MockNode.java:76)
	at org.elasticsearch.node.MockNode.<init>(MockNode.java:69)
	at org.elasticsearch.license.TribeTransportTestCase.testTribeSetup(TribeTransportTestCase.java:229)

       ...

	... 44 more
Caused by: org.apache.lucene.util.SetOnce$AlreadySetException: The object cannot be set twice!
	at org.apache.lucene.util.SetOnce.set(SetOnce.java:69)
	at org.elasticsearch.xpack.core.XPackPlugin.setSslService(XPackPlugin.java:158)
	at org.elasticsearch.xpack.core.XPackPlugin.<init>(XPackPlugin.java:144)
	... 49 more

Does not reproduce

 ./gradlew :x-pack:qa:tribe-tests-with-license:unitTest \
  -Dtests.seed=C243B7DC44DADFC4 \
  -Dtests.class=org.elasticsearch.license.LicenseTribeTests \
  -Dtests.method="testTribeSetup" \
  -Dtests.security.manager=true \
  -Dtests.locale=hu \
  -Dtests.timezone=America/Bahia_Banderas \
  -Dcompiler.java=12 \
  -Druntime.java=8

I haven't muted this test as this is the only instance if it failing I can find

@davidkyle davidkyle added >test-failure Triaged test failures from CI :Security/License License functionality for commercial features labels May 9, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-security

@davidkyle
Copy link
Member Author

davidkyle commented May 9, 2019

@tvernum tvernum self-assigned this May 17, 2019
tvernum added a commit to tvernum/elasticsearch that referenced this issue May 20, 2019
Something is causing this to be set twice in LicenseTribeTests.
These tribe tests do weird things to work around the SetOnce that
XPackPlugin uses for the SslService, but that seems to be failing
randomly.

This additional logging will help work out which plugin instance is
setting the SSLService when it should not be.

Relates: elastic#42004
@droberts195
Copy link
Contributor

Another one on Red Hat 8, so it's looking more like it's not a coincidence: https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+6.7+multijob-unix-compatibility/os=redhat-8/201/console

tvernum added a commit that referenced this issue May 21, 2019
Something is causing this to be set twice in LicenseTribeTests.
These tribe tests do weird things to work around the SetOnce that
XPackPlugin uses for the SslService, but that seems to be failing
randomly.

This additional logging will help work out which plugin instance is
setting the SSLService when it should not be.

Relates: #42004
tvernum added a commit to tvernum/elasticsearch that referenced this issue May 21, 2019
Something is causing this to be set twice in LicenseTribeTests.
These tribe tests do weird things to work around the SetOnce that
XPackPlugin uses for the SslService, but that seems to be failing
randomly.

This additional logging will help work out which plugin instance is
setting the SSLService when it should not be.

Relates: elastic#42004
Backport of: elastic#42210
@tvernum
Copy link
Contributor

tvernum commented May 21, 2019

It seems very strange that this is suddenly happening on 1 particular OS.

I've added additional logging for this test (but not the related Monitoring failure) which should give some indication of what is going on next time it fails.

tvernum added a commit that referenced this issue May 21, 2019
Something is causing this to be set twice in LicenseTribeTests.
These tribe tests do weird things to work around the SetOnce that
XPackPlugin uses for the SslService, but that seems to be failing
randomly.

This additional logging will help work out which plugin instance is
setting the SSLService when it should not be.

Relates: #42004
Backport of: #42210
@tvernum
Copy link
Contributor

tvernum commented Jun 25, 2019

This issue is on hold because our RHEL8 builds were breaking unexpectedly, so they're not currently included in the unix matrix builds.

@rjernst rjernst added the Team:Security Meta label for security team label May 4, 2020
@jkakavas
Copy link
Member

I'm closing this down as we're not using RHEL8 workers any more and this has not been observed in any other kinds of workers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Security/License License functionality for commercial features Team:Security Meta label for security team >test-failure Triaged test failures from CI
Projects
None yet
Development

No branches or pull requests

6 participants