-
Notifications
You must be signed in to change notification settings - Fork 148
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
fix: flaky logging mdc tests #1410
Conversation
@@ -90,6 +91,12 @@ import pekko.annotation.InternalApi | |||
} | |||
|
|||
val marker: Option[Marker] = Option(event.getMarkerList).flatMap(_.asScala.headOption) | |||
val mdc: Map[String, String] = Option(event.getMDCPropertyMap) | |||
.filterNot(_.isEmpty) | |||
.orElse(Option(MDC.getMDCAdapter.getCopyOfContextMap)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if MDC didn't useLogbackMDCAdapter
as mdcAdapter, then fallback to the original MDC field.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
lgtm |
let us merge, and then we will see what happens |
@Roiocam can you backport this change to 1.0.x branch? |
they looks cool in 1.0.x |
I thought the test was flaky in 1.0.x - but not failing as often as in the main branch. Let me keep an eye on the 1.0.x builds. This test did not fail there last night. I'm going to try to backport some other changes to 1.0.x for other broken tests first. |
Resolves: #795, diagnostics: #795 (comment)
ci checks passed in my repo: