Skip to content

Conversation

cbuescher
Copy link
Member

In order to better understand the failures in #129445, this PR temporarily adds logging around where the
sort documents in FieldSortIT#testSortMixedFieldTypes are indexed and increases the log level for the
test suite in the o.e.search package to TRACE and in two o.e.action.search classes to DEBUG in order
to better understand where exceptions are thrown and to better trace how resources are released after that.

Relates to #129445

@cbuescher cbuescher added >test Issues or PRs that are addressing/adding tests :Search Foundations/Search Catch all for Search Foundations v9.2.0 v9.1.1 v8.19.1 labels Jul 18, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch label Jul 18, 2025
@elasticsearchmachine
Copy link
Collaborator

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

Copy link
Contributor

@benchaplin benchaplin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one question for my own education!

protected Settings nodeSettings(int nodeOrdinal, Settings otherSettings) {
return Settings.builder()
.put(super.nodeSettings(nodeOrdinal, otherSettings))
.put(NetworkModule.HTTP_TYPE_KEY, Netty4Plugin.NETTY_HTTP_TRANSPORT_NAME)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this do?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, I honestly just copied this from another test that used the RestClient because otherwise I got errors using the "/_cat/shards" call I need for the logging later. I removed the settings now but left the "addMockHttpTransport" override in the test, that seems to works as well.

In order to better understand the infrequent failures in elastic#129445 and
in the hope to reproduce the issue better, this PR adds logging
around which shards and nodes documents end up in
FieldSortIT#testSortMixedFieldTypes and increases the log level for
this test suite in the o.e.search packages to TRACE and in some
action.search packages to DEBUG to better understand where exceptions
are thrown and to better trace how resources are released after that.

Relates to elastic#129445
@cbuescher cbuescher force-pushed the add-logging-129445 branch from de97c30 to cd1dd08 Compare July 21, 2025 08:58
@cbuescher cbuescher added the auto-backport Automatically create backport pull requests when merged label Jul 21, 2025
@cbuescher cbuescher merged commit bc0c189 into elastic:main Jul 21, 2025
33 checks passed
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
9.1
8.19

cbuescher added a commit to cbuescher/elasticsearch that referenced this pull request Jul 21, 2025
In order to better understand the infrequent failures in elastic#129445 and
in the hope to reproduce the issue better, this PR adds logging
around which shards and nodes documents end up in
FieldSortIT#testSortMixedFieldTypes and increases the log level for
this test suite in the o.e.search packages to TRACE and in some
action.search packages to DEBUG to better understand where exceptions
are thrown and to better trace how resources are released after that.

Relates to elastic#129445
cbuescher added a commit to cbuescher/elasticsearch that referenced this pull request Jul 21, 2025
In order to better understand the infrequent failures in elastic#129445 and
in the hope to reproduce the issue better, this PR adds logging
around which shards and nodes documents end up in
FieldSortIT#testSortMixedFieldTypes and increases the log level for
this test suite in the o.e.search packages to TRACE and in some
action.search packages to DEBUG to better understand where exceptions
are thrown and to better trace how resources are released after that.

Relates to elastic#129445
elasticsearchmachine pushed a commit that referenced this pull request Jul 22, 2025
In order to better understand the infrequent failures in #129445 and
in the hope to reproduce the issue better, this PR adds logging
around which shards and nodes documents end up in
FieldSortIT#testSortMixedFieldTypes and increases the log level for
this test suite in the o.e.search packages to TRACE and in some
action.search packages to DEBUG to better understand where exceptions
are thrown and to better trace how resources are released after that.

Relates to #129445
elasticsearchmachine pushed a commit that referenced this pull request Jul 22, 2025
In order to better understand the infrequent failures in #129445 and
in the hope to reproduce the issue better, this PR adds logging
around which shards and nodes documents end up in
FieldSortIT#testSortMixedFieldTypes and increases the log level for
this test suite in the o.e.search packages to TRACE and in some
action.search packages to DEBUG to better understand where exceptions
are thrown and to better trace how resources are released after that.

Relates to #129445
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged :Search Foundations/Search Catch all for Search Foundations Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch >test Issues or PRs that are addressing/adding tests v8.19.1 v9.1.1 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants