This repository has been archived by the owner on Sep 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 83
[scheduler,mtsource] Pod not found when using kubeclient to get Pod #596
Labels
kind/bug
Categorizes issue or PR as related to a bug.
Comments
Update: this is the error you see in the logs with the latest HA code changes for pod lister:
|
After further analysis, looks like this error is expected and fine. As the new pod comes up when sts scales up, the pod is unavailable/not found by pod lister. After some time, this resolves and pod is used for placements. This delay to list pods isn't affecting placements from multiple sources. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
s.podClient.Get(context.Background(), podName, metav1.GetOptions{})
returns error occasionally"error":"pods \"kafkasource-mt-adapter-4\" not found"
(in controller log), and then most times during the next reconcile, it passes.Finding pod failure means we don't get node info and then the zone info for that node.
Today, when we get an error, we peacefully continue onto next iteration of loop.
More info in #587, #463
Expected behavior
Seeing this error as a new pod comes up is understandable. But if pod is running and ready, kubeclient should be able to find pod.
To Reproduce
Create kafkasource with large # of consumers, and let autoscaler do its job to scale up. Open controller log and you'll find the error message above.
Knative release version
Additional context
Add any other context about the problem here such as proposed priority
The text was updated successfully, but these errors were encountered: