forked from linkerd/linkerd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix consul service observation release (linkerd#1871)
Consul namer releases the observation of a service by raising a specific Exception - ServiceRelease. Decision whether to release an observation is taken upon inspection of an observation result (SvcAddr:67) - if it's a Failure and ServiceRelease is its imeediate cause, then the observation should be released. However the cause may be nested deeply. So the observation is not always released. This commit unwraps the root cause of a Thrown received during observation so we can detect ServiceRelease even if it was wrapped arbitrary number of times by underlying code. Fixed linkerd#1820 Signed-off-by: Dmytro Kostiuchenko <[email protected]>
- Loading branch information
Showing
2 changed files
with
30 additions
and
3 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
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