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

[TEST] Set logging level in SnapshotResiliencyTests #106238

Merged
merged 2 commits into from
Mar 12, 2024

Conversation

kkrik-es
Copy link
Contributor

Some tests check that the expected INFO message gets logged, so they require setting the level to INFO for SnapshotsService.

Some tests check that the expected INFO message
gets logged, so they require setting the level to INFO
for SnapshotsService.
@kkrik-es kkrik-es added >test Issues or PRs that are addressing/adding tests :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. labels Mar 12, 2024
@kkrik-es kkrik-es self-assigned this Mar 12, 2024
@kkrik-es kkrik-es requested a review from DaveCTurner March 12, 2024 13:46
@kkrik-es kkrik-es marked this pull request as ready for review March 12, 2024 13:46
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

Copy link
Contributor

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

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

👍 we should make this change for sure, but I'm marking this as request changes since before we merge this I'd us to work out why these tests have started failing: it indicates that some other test is leaking a logger config override, and that's definitely a bug.

Copy link
Contributor

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

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

@pmpailis found the culprit I think:

Loggers.setLevel(LogManager.getRootLogger(), Level.DEBUG, restrictedLoggers);

so this is good to go now.

@kkrik-es kkrik-es merged commit bfbb155 into elastic:main Mar 12, 2024
14 checks passed
@kkrik-es kkrik-es deleted the fix/103567-5 branch March 12, 2024 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. >test Issues or PRs that are addressing/adding tests v8.14.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants