Skip to content

[Test] Error due to exception message change in SearchDocumentationIT#testSearchRequestAggregations #32029

@cbuescher

Description

@cbuescher

Test failure: https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+master+matrix-java-periodic/ES_BUILD_JAVA=java10,ES_RUNTIME_JAVA=java11,nodes=virtual&&linux/173/console

REPRODUCE WITH:

./gradlew :client:rest-high-level:integTestRunner \
  -Dtests.seed=65926E1472AD4E99 \
  -Dtests.class=org.elasticsearch.client.documentation.SearchDocumentationIT \
  -Dtests.method="testSearchRequestAggregations" \
  -Dtests.security.manager=true \
  -Dtests.locale=en-SS \
  -Dtests.timezone=EST5EDT

I could not reproduce, but I didn't use the Java versions used in the test run. From the message it seems quite clear that the exception message we test for has gotten more verbose:

expected:
<[org.elasticsearch.search.aggregations.bucket.terms.ParsedStringTerms cannot be cast to org.elasticsearch.search.aggregations.bucket.range.Range]> but was:
<[class org.elasticsearch.search.aggregations.bucket.terms.ParsedStringTerms cannot be cast to class org.elasticsearch.search.aggregations.bucket.range.Range (org.elasticsearch.search.aggregations.bucket.terms.ParsedStringTerms and org.elasticsearch.search.aggregations.bucket.range.Range are in unnamed module of loader 'app')]>

Metadata

Metadata

Assignees

Labels

:Search/SearchSearch-related issues that do not fall into other categories>test-failureTriaged test failures from CI

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