Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Fix a logcontext leak in persist_events #2790

Merged
merged 1 commit into from
Jan 16, 2018

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jan 16, 2018

ObserveableDeferred expects its callbacks to be called without any
logcontexts, whereas it turns out we were calling them with the logcontext of
the request which initiated the persistence loop.

It seems wrong that we are attributing work done in the persistence loop to the
request that happened to initiate it, so let's solve this by dropping the
logcontext for it.

(I'm not sure this actually causes any real problems other than messages in the
debug log, but let's clean it up anyway)

ObserveableDeferred expects its callbacks to be called without any
logcontexts, whereas it turns out we were calling them with the logcontext of
the request which initiated the persistence loop.

It seems wrong that we are attributing work done in the persistence loop to the
request that happened to initiate it, so let's solve this by dropping the
logcontext for it.

(I'm not sure this actually causes any real problems other than messages in the
debug log, but let's clean it up anyway)
@richvdh richvdh merged commit f5f89fd into develop Jan 16, 2018
@richvdh richvdh deleted the rav/preserve_event_logcontext_leak branch January 16, 2018 14:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants