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

[CI] CodecTests testResolveDefaultCodecs failing #107417

Closed
luigidellaquila opened this issue Apr 12, 2024 · 8 comments · Fixed by #107477
Closed

[CI] CodecTests testResolveDefaultCodecs failing #107417

luigidellaquila opened this issue Apr 12, 2024 · 8 comments · Fixed by #107477
Assignees
Labels
low-risk An open issue or test failure that is a low risk to future releases :StorageEngine/Mapping The storage related side of mappings Team:StorageEngine >test-failure Triaged test failures from CI

Comments

@luigidellaquila
Copy link
Contributor

Build scan:
https://gradle-enterprise.elastic.co/s/ox6wktju34gmi/tests/:server:test/org.elasticsearch.index.codec.CodecTests/testResolveDefaultCodecs

Reproduction line:

./gradlew ':server:test' --tests "org.elasticsearch.index.codec.CodecTests.testResolveDefaultCodecs" -Dtests.seed=F59F63933A2B7E82 -Dbuild.snapshot=false -Dtests.jvm.argline="-Dbuild.snapshot=false" -Dtests.locale=uk-UA -Dtests.timezone=Brazil/Acre -Druntime.java=21

Applicable branches:
main

Reproduces locally?:
Yes

Failure history:
Failure dashboard for org.elasticsearch.index.codec.CodecTests#testResolveDefaultCodecs

Failure excerpt:

java.lang.AssertionError: 
Expected: an instance of org.elasticsearch.index.codec.PerFieldMapperCodec
     but: <Lucene99> is a org.elasticsearch.index.codec.LegacyPerFieldMapperCodec

  at __randomizedtesting.SeedInfo.seed([F59F63933A2B7E82:B192150924821B52]:0)
  at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
  at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:6)
  at org.elasticsearch.test.ESTestCase.assertThat(ESTestCase.java:2151)
  at org.elasticsearch.index.codec.CodecTests.testResolveDefaultCodecs(CodecTests.java:47)
  at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
  at java.lang.reflect.Method.invoke(Method.java:580)
  at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
  at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
  at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
  at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
  at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
  at org.junit.rules.RunRules.evaluate(RunRules.java:20)
  at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
  at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
  at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
  at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
  at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
  at org.junit.rules.RunRules.evaluate(RunRules.java:20)
  at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
  at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
  at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
  at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
  at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
  at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
  at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
  at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
  at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
  at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
  at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
  at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
  at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
  at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
  at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
  at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
  at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
  at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
  at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
  at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
  at org.junit.rules.RunRules.evaluate(RunRules.java:20)
  at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
  at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
  at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
  at java.lang.Thread.run(Thread.java:1583)

@luigidellaquila luigidellaquila added :Core/Infra/Core Core issues without another label >test-failure Triaged test failures from CI labels Apr 12, 2024
@elasticsearchmachine elasticsearchmachine added blocker Team:Core/Infra Meta label for core/infra team labels Apr 12, 2024
@elasticsearchmachine
Copy link
Collaborator

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

@rjernst rjernst added :Search/Search Search-related issues that do not fall into other categories and removed :Core/Infra/Core Core issues without another label labels Apr 12, 2024
@elasticsearchmachine elasticsearchmachine added Team:Search Meta label for search team and removed Team:Core/Infra Meta label for core/infra team labels Apr 12, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

@rjernst
Copy link
Member

rjernst commented Apr 12, 2024

My guess is this is fallout from #106133, @ChrisHegarty can you take a look?

@ChrisHegarty ChrisHegarty self-assigned this Apr 12, 2024
@ChrisHegarty
Copy link
Contributor

The failure is unrelated to #106133.

The failure relates to a recently added test that, due to randomisation in the test run, runs with -Dbuild.snapshot=false, which invalidates the assertion in the test - the test assertion assumes that feature flags are enabled - i.e. snapshot is true.

@ChrisHegarty ChrisHegarty removed their assignment Apr 12, 2024
@ChrisHegarty
Copy link
Contributor

The test was last modified by #103374, which likely needs to take into account that feature flags may not be enabled.

@benwtrent
Copy link
Member

@martijnvg could you take a look here? I am not sure about the feature flag being used for zstd and release tests are failing due to it not being set it seems.

@martijnvg
Copy link
Member

Thanks for the ping here. I will change these tests to only run when the feature flag is actually enabled.

@martijnvg martijnvg self-assigned this Apr 15, 2024
@martijnvg martijnvg added low-risk An open issue or test failure that is a low risk to future releases and removed blocker labels Apr 15, 2024
martijnvg added a commit to martijnvg/elasticsearch that referenced this issue Apr 15, 2024
The tests can only be run when zstd feature flag is enabled.

Closes elastic#107417
@martijnvg martijnvg added :StorageEngine/Mapping The storage related side of mappings and removed :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team labels Apr 15, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

elasticsearchmachine pushed a commit that referenced this issue Apr 19, 2024
The tests can only be run when zstd feature flag is enabled.

Closes #107417
martijnvg added a commit to martijnvg/elasticsearch that referenced this issue Apr 19, 2024
The tests can only be run when zstd feature flag is enabled.

Closes elastic#107417
elasticsearchmachine pushed a commit that referenced this issue Apr 19, 2024
The tests can only be run when zstd feature flag is enabled.

Closes #107417
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
low-risk An open issue or test failure that is a low risk to future releases :StorageEngine/Mapping The storage related side of mappings Team:StorageEngine >test-failure Triaged test failures from CI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants