Skip to content

[CI] DeprecationHttpIT.testDeprecationWarnMessagesCanBeIndexed fails on CI #79038

@tlrx

Description

@tlrx

Build scan:
https://gradle-enterprise.elastic.co/s/vuqcaq564ouqk

Repro line:

./gradlew ':x-pack:plugin:deprecation:qa:rest:javaRestTest' --tests "org.elasticsearch.xpack.deprecation.DeprecationHttpIT.testDeprecationWarnMessagesCanBeIndexed" -Dtests.seed=343F92B68CCFFD45 -Dtests.locale=en-US -Dtests.timezone=Pacific/Rarotonga -Druntime.java=11

Reproduces locally?:
No

Applicable branches:
master

Failure history:
None so far.

Failure excerpt:

java.lang.AssertionError: 
    Expected: a collection with size <2>
         but: collection size was <3>
        at __randomizedtesting.SeedInfo.seed([343F92B68CCFFD45:BEA45F5EDDD98058]: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.xpack.deprecation.DeprecationHttpIT.lambda$testDeprecationWarnMessagesCanBeIndexed$8(DeprecationHttpIT.java:478)
        at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:965)
        at org.elasticsearch.xpack.deprecation.DeprecationHttpIT.testDeprecationWarnMessagesCanBeIndexed(DeprecationHttpIT.java:474)

There are unexpected deprecation messages about .ml-config system index:

{elasticsearch.cluster.name=javaRestTest, service.name=ES_ECS, elasticsearch.event.category=api, data_stream.namespace=default, message=this request accesses system indices: [.ml-config], but in a future major version, direct access to system indices will be prevented by default, data_stream.type=logs, log.logger=org.elasticsearch.deprecation.cluster.metadata.IndexNameExpressionResolver, @timestamp=2021-10-13T08:18:09.885Z, event.code=open_system_index_access, elasticsearch.cluster.uuid=MWdCh2bJRFmV_t6qzzsH9A, elasticsearch.node.name=javaRestTest-0, ecs.version=1.7, data_stream.dataset=deprecation.elasticsearch, log.level=CRITICAL, event.dataset=deprecation.elasticsearch, process.thread.name=elasticsearch[javaRestTest-0][transport_worker][T#10], elasticsearch.node.id=yxvB7S88TzakOMyGSAkdaw}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions