Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hosted services stopping due to unhandled exception #3

Open
goncalo-oliveira opened this issue Jun 12, 2023 · 1 comment
Open

Hosted services stopping due to unhandled exception #3

goncalo-oliveira opened this issue Jun 12, 2023 · 1 comment
Labels
bug Something isn't working question Further information is requested

Comments

@goncalo-oliveira
Copy link
Contributor

goncalo-oliveira commented Jun 12, 2023

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)
@goncalo-oliveira goncalo-oliveira added the bug Something isn't working label Jun 12, 2023
@goncalo-oliveira goncalo-oliveira changed the title Controller crashing due to unhandled exception Hosted services stopping due to unhandled exception Jun 12, 2023
@goncalo-oliveira goncalo-oliveira added the question Further information is requested label Jun 12, 2023
@goncalo-oliveira
Copy link
Contributor Author

It seems the hosted service is stopping when initialization fails, which is expected. Need more information. Waiting for customer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant