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

Failure of :modules:transport-netty4:test on master #48330

Closed
przemekwitek opened this issue Oct 22, 2019 · 8 comments · Fixed by #48356
Closed

Failure of :modules:transport-netty4:test on master #48330

przemekwitek opened this issue Oct 22, 2019 · 8 comments · Fixed by #48356
Labels
:Core/Infra/Core Core issues without another label

Comments

@przemekwitek
Copy link
Contributor

przemekwitek commented Oct 22, 2019

Build | 20191022054831-A81DC5D0
Log | https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+master+multijob-windows-compatibility/os=windows-2012-r2/215/console
Build Scans | https://gradle-enterprise.elastic.co/s/hpnzc7hnzftce

Reproduce line:

REPRODUCE WITH: gradlew ':modules:transport-netty4:test' --tests "org.elasticsearch.transport.netty4.SimpleNetty4TransportTests.testLocalNodeConnection" \
  -Dtests.seed=175DFFF16E9928FC \
  -Dtests.security.manager=true \
  -Dtests.locale=lg-UG \
  -Dtests.timezone=Africa/Juba \
  -Dcompiler.java=12 \
  -Druntime.java=11

Does not reproduce locally.

Excerpt from logs:

06:39:55   2> java.lang.AssertionError: expected:<0> but was:<16777216>
06:39:55         at __randomizedtesting.SeedInfo.seed([175DFFF16E9928FC:6655EB5329A51DB6]:0)
06:39:55         at org.junit.Assert.fail(Assert.java:88)
06:39:55         at org.junit.Assert.failNotEquals(Assert.java:834)
06:39:55         at org.junit.Assert.assertEquals(Assert.java:645)
06:39:55         at org.junit.Assert.assertEquals(Assert.java:631)
06:39:55         at org.elasticsearch.transport.netty4.SimpleNetty4TransportTests.tearDown(SimpleNetty4TransportTests.java:53)

@przemekwitek przemekwitek added the :Core/Infra/Core Core issues without another label label Oct 22, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Core)

@alpar-t
Copy link
Contributor

alpar-t commented Oct 22, 2019

@przemekwitek I think we should mute the test on windows with something like assumeFalse(Constants.WIDOWS)

@przemekwitek
Copy link
Contributor Author

Ok, I'll prepare a fix shortly.

@przemekwitek
Copy link
Contributor Author

@przemekwitek
Copy link
Contributor Author

@przemekwitek
Copy link
Contributor Author

@williamrandolph
Copy link
Contributor

williamrandolph commented Oct 22, 2019

This may relate to a bug from #47384, which only happened with a Java 8 runtime (which is why it failed on 7.x but not master). In that case, we could be more specific in what we muted. For example, in JvmErgonomicsTests, we use:

        assumeFalse(System.getProperty("os.name").startsWith("Windows") && JavaVersion.majorVersion(JavaVersion.CURRENT) == 8);

See the specific issue's description in this comment: #47384 (comment)

EDIT: I'm not sure this is the same issue, after a closer look, but it seems related.

EDIT 2: I'm quite wrong, apologies for the noise. This affects the work I've been doing, not the other way around.

@Tim-Brooks
Copy link
Contributor

I think this has to do with dirty state from a prior test. Netty holds a static allocator which if touched will allocate memory. In this test we are asserting the allocator is empty. This assertion was mainly a sanity check and I think was not well thought out on my part (requires all related test to cooperate).

I opened #48356 to remove this assertion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Core Core issues without another label
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants