Skip to content

Fix Slf4jThreadLocalAccessor with keys for missing values #348

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

Closed
wants to merge 1 commit into from

Conversation

chemicL
Copy link
Collaborator

@chemicL chemicL commented Apr 7, 2025

In case of missing MDC entries, when a scope was closed, the value should be removed. This was not the case and that could lead to leaks of these MDC entries. This change takes the missing previous values into account and clears them from the MDC in case they were set by a snapshot.

Fixes #347.

In case of missing MDC entries, when a scope was closed, the value
should be removed. This was not the case and that could lead to leaks of
these MDC entries. This change takes the missing previous values into
account and clears them from the MDC in case they were set by a
snapshot.

Fixes #347.

Signed-off-by: Dariusz Jędrzejczyk <[email protected]>
@chemicL chemicL added the bug A general bug label Apr 7, 2025
@chemicL chemicL changed the base branch from main to 1.1.x April 7, 2025 19:36
@chemicL chemicL changed the base branch from 1.1.x to main April 7, 2025 19:36
@chemicL chemicL closed this Apr 7, 2025
@chemicL
Copy link
Collaborator Author

chemicL commented Apr 7, 2025

Since I can't force push to rebase onto 1.1.x branch, I reopened as #349

@jonatan-ivanov jonatan-ivanov removed the bug A general bug label Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix Slf4jThreadLocalAccessor with keys for missing values
2 participants