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

DiscoveryNodeRoleIT.testExplicitlyHasAdditionalRole fails on 7.x #43223

Closed
pgomulka opened this issue Jun 14, 2019 · 3 comments
Closed

DiscoveryNodeRoleIT.testExplicitlyHasAdditionalRole fails on 7.x #43223

pgomulka opened this issue Jun 14, 2019 · 3 comments
Labels
>test-failure Triaged test failures from CI

Comments

@pgomulka
Copy link
Contributor

The test is failing on 7.x with following stacktrace:

java.lang.AssertionError:
--
Expected: a collection containing <DiscoveryNodeRole{roleName='additional', roleNameAbbreviation='a'}>
but: mismatches were: [was <DiscoveryNodeRole{roleName='ingest', roleNameAbbreviation='i'}>, was <DiscoveryNodeRole{roleName='data', roleNameAbbreviation='d'}>, was <DiscoveryNodeRole{roleName='additional', roleNameAbbreviation='a'}>, was <DiscoveryNodeRole{roleName='master', roleNameAbbreviation='m'}>]
at __randomizedtesting.SeedInfo.seed([DE1C54CA25478013:CEC687B84041F96F]:0)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.cluster.node.DiscoveryNodeRoleIT.runTestNodeHasAdditionalRole(DiscoveryNodeRoleIT.java:97)
at org.elasticsearch.cluster.node.DiscoveryNodeRoleIT.testExplicitlyHasAdditionalRole(DiscoveryNodeRoleIT.java:80)

https://build-stats.elastic.co/app/kibana#/discover?_g=(refreshInterval:(pause:!t,value:0),time:(from:'2019-06-11T22:00:00.000Z',mode:absolute,to:'2019-06-15T21:59:59.999Z'))&_a=(columns:!(_source),index:b646ed00-7efc-11e8-bf69-63c8ef516157,interval:auto,query:(language:lucene,query:DiscoveryNodeRoleIT),sort:!(process.time-start,desc))

one of the failed build:
https://scans.gradle.com/s/erubw2qjmdbak/console-log#L1284

Reproduce line - reproduces locally

./gradlew :server:integTest --tests "org.elasticsearch.cluster.node.DiscoveryNodeRoleIT.testExplicitlyHasAdditionalRole" -Dtests.seed=DE1C54CA25478013 -Dtests.security.manager=true -Dtests.locale=ar-IQ -Dtests.timezone=Australia/NSW -Dcompiler.java=12 -Druntime.java=8
@pgomulka pgomulka added the >test-failure Triaged test failures from CI label Jun 14, 2019
@pgomulka
Copy link
Contributor Author

pgomulka commented Jun 14, 2019

is passes for this seed

./gradlew :server:integTest --tests "org.elasticsearch.cluster.node.DiscoveryNodeRoleIT.testExplicitlyHasAdditionalRole" -Dtests.seed=5DBF6BADEB4F9F41 -Dtests.security.manager=true -Dtests.locale=ar-IQ -Dtests.timezone=Australia/NSW -Dcompiler.java=12 -Druntime.java=8

but for seed 9E0A29F51189B133
org.elasticsearch.cluster.node.DiscoveryNodeRoleIT#testDefaultHasAdditionalRole also fails

I havn't noticed org.elasticsearch.cluster.node.DiscoveryNodeRoleIT#testDoesNotHaveAdditionalRole failing

@pgomulka
Copy link
Contributor Author

@jasontedor would you be able to have a look into this test?

DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this issue Jun 14, 2019
The test fails if querying the roles via a transport client, since the
transport client does not have the plugin necessary to interpret the additional
role correctly. This commit adds this plugin to the transport client used.

Relates elastic#43175
Fixes elastic#43223
DaveCTurner added a commit that referenced this issue Jun 14, 2019
The test fails if querying the roles via a transport client, since the
transport client does not have the plugin necessary to interpret the additional
role correctly. This commit adds this plugin to the transport client used.

Relates #43175
Fixes #43223
@pgomulka
Copy link
Contributor Author

closed by #43225

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>test-failure Triaged test failures from CI
Projects
None yet
Development

No branches or pull requests

1 participant