Skip to content

Fix BanFailureLoggingTests#75171

Merged
DaveCTurner merged 2 commits intoelastic:masterfrom
DaveCTurner:2021-07-09-fix-BanFailureLoggingTests
Jul 13, 2021
Merged

Fix BanFailureLoggingTests#75171
DaveCTurner merged 2 commits intoelastic:masterfrom
DaveCTurner:2021-07-09-fix-BanFailureLoggingTests

Conversation

@DaveCTurner
Copy link
Copy Markdown
Member

Today both BanFailureLoggingTests fail to remove the ban and report
this in the logs. testLogsAtDebugOnDisconnectionDuringBan does not
wait for this message to be logged, so the logging might happen
concurrently with the logger being stopped and removed, resulting in a
Attempted to append to non-started appender mock failure.

This commit ensures that both test cases wait for the expected removal
failure message to be logged.

Closes #75129

Today both `BanFailureLoggingTests` fail to remove the ban and report
this in the logs. `testLogsAtDebugOnDisconnectionDuringBan` does not
wait for this message to be logged, so the logging might happen
concurrently with the logger being stopped and removed, resulting in a
`Attempted to append to non-started appender mock` failure.

This commit ensures that both test cases wait for the expected removal
failure message to be logged.

Closes elastic#75129
@DaveCTurner DaveCTurner added >test Issues or PRs that are addressing/adding tests :Distributed/Task Management Issues for anything around the Tasks API - both persistent and node level. v8.0.0 v7.14.1 v7.15.0 v7.13.4 labels Jul 9, 2021
@elasticmachine elasticmachine added the Team:Distributed Meta label for distributed team. label Jul 9, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

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

@DaveCTurner
Copy link
Copy Markdown
Member Author

@elasticmachine please run elasticsearch-ci/part-1

Copy link
Copy Markdown
Contributor

@original-brownbear original-brownbear left a comment

Choose a reason for hiding this comment

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

LGTM :)

@DaveCTurner DaveCTurner merged commit 3c54a9a into elastic:master Jul 13, 2021
@DaveCTurner DaveCTurner deleted the 2021-07-09-fix-BanFailureLoggingTests branch July 13, 2021 15:16
DaveCTurner added a commit that referenced this pull request Jul 13, 2021
Today both `BanFailureLoggingTests` fail to remove the ban and report
this in the logs. `testLogsAtDebugOnDisconnectionDuringBan` does not
wait for this message to be logged, so the logging might happen
concurrently with the logger being stopped and removed, resulting in a
`Attempted to append to non-started appender mock` failure.

This commit ensures that both test cases wait for the expected removal
failure message to be logged.

Closes #75129
DaveCTurner added a commit that referenced this pull request Jul 13, 2021
Today both `BanFailureLoggingTests` fail to remove the ban and report
this in the logs. `testLogsAtDebugOnDisconnectionDuringBan` does not
wait for this message to be logged, so the logging might happen
concurrently with the logger being stopped and removed, resulting in a
`Attempted to append to non-started appender mock` failure.

This commit ensures that both test cases wait for the expected removal
failure message to be logged.

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

Labels

:Distributed/Task Management Issues for anything around the Tasks API - both persistent and node level. Team:Distributed Meta label for distributed team. >test Issues or PRs that are addressing/adding tests v7.14.0 v7.15.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] BanFailureLoggingTests testLogsAtDebugOnDisconnectionDuringBan failing

5 participants