Skip to content

Hosted services stopping due to unhandled exception #3

@goncalo-oliveira

Description

@goncalo-oliveira

The operator sometimes crashes due to an unhandled exception. This leads the hosted services to stop, even though the application is still running.

fail: V1Alpha1FunctionController[0] A task was canceled. System.Threading.Tasks.TaskCanceledException: A task was canceled.    
at System.Net.Http.HttpClient.HandleFailure(Exception e, Boolean telemetryStarted, HttpResponseMessage response, CancellationTokenSource cts, CancellationToken cancellationToken, CancellationTokenSource pendingRequestsCts)    
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)    
at k8s.Kubernetes.SendRequestRaw(String requestContent, HttpRequestMessage httpRequest, CancellationToken cancellationToken)    
at k8s.AbstractKubernetes.k8s.IApiextensionsV1Operations.ListCustomResourceDefinitionWithHttpMessagesAsync(Nullable`1 allowWatchBookmarks, String continueParameter, String fieldSelector, String labelSelector, Nullable`1 limit, String resourceVersion, String resourceVersionMatch, Nullable`1 sendInitialEvents, Nullable`1 timeoutSeconds, Nullable`1 watch, Nullable`1 pretty, IReadOnlyDictionary`2 customHeaders, CancellationToken cancellationToken)    
at k8s.ApiextensionsV1OperationsExtensions.ListCustomResourceDefinitionAsync(IApiextensionsV1Operations operations, Nullable`1 allowWatchBookmarks, String continueParameter, String fieldSelector, String labelSelector, Nullable`1 limit, String resourceVersion, String resourceVersionMatch, Nullable`1 sendInitialEvents, Nullable`1 timeoutSeconds, Nullable`1 watch, Nullable`1 pretty, CancellationToken cancellationToken)    
at V1Alpha1FunctionController.InitializeAsync(CancellationToken stoppingToken) in /operator/V1Alpha1/Functions/Controller.cs:line 26    
at KubeController`1.ExecuteAsync(CancellationToken stoppingToken)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions