-
Notifications
You must be signed in to change notification settings - Fork 48
Closed
Labels
Description
Describe the bug
Version: 4.32.2
When an instance is not available or time out the following is logged:
2023-10-18 13:21:43.0589|69|Warn|ServiceControl.CompositeViews.Messages.ScatterGatherApi`2[[ServiceControl.Persistence.IEndpointInstanceMonitoring, ServiceControl.Persistence, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null],[System.Collections.Generic.IList`1[[ServiceControl.Persistence.KnownEndpointsView, ServiceControl.Persistence, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]|Failed to query remote instance at http://adtqmon04.teleena.local:44448/api.
System.Threading.Tasks.TaskCanceledException: A task was canceled.
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at ServiceControl.CompositeViews.Messages.ScatterGatherApi`2.<FetchAndParse>d__17.MoveNext() in /_/src/ServiceControl/CompositeViews/Messages/ScatterGatherApi.cs:line 114These TaskCanceledException should be gracefully handled to only report a single one line log entry like:
2023-10-18 13:21:43.0589|69|Warn|ServiceControl.CompositeViews.Messages.ScatterGatherApi|Failed to query remote instance at http://adtqmon04.teleena.local:44448/api: A task was canceled.Steps to reproduce
- Setup instance
- Stop audit instance
- Invoke scatter gather API
Relevant log output
No response
Additional Information
No response