-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pool: fix CDC for repository listener notification
Motivation: The repository supports the registration of listeners that may learn of changes to replicas within the repository in a decoupled fashion. The CDC (logging context) for this notification is wrong, as the notification happens on a separate, reused thread (from an executor) but without establishing the correct context. The result is any logging will be recorded against arbitrary (and misleading) context, making diagnosing problems much harder. Modification: Ensure the CDC is initialised correctly before calling the listeners, using the caller's context. Result: Fix some logging on the pool where messages were recorded against an arbitrary context (i.e., the bit in square brackets), resulting in misleading information. Target: master Requires-notes: yes Requires-book: no Request: 5.0 Request: 4.2 Request: 4.1 Request: 4.0 Request: 3.2 Patch: https://rb.dcache.org/r/11589/ Acked-by: Tigran Mkrtchyan
- Loading branch information
1 parent
d2488fa
commit a663aad
Showing
1 changed file
with
47 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters