node should not be ready when klog flush deamon in kubelet is block in fsync #124016
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
sig/node
Categorizes an issue or PR as relevant to SIG Node.
Projects
What happened?
flushAll
and block in fsync syscallkubernetes/vendor/k8s.io/klog/v2/klog.go
Lines 1223 to 1228 in a309fad
other goroutines in kubelet will be block when print log
kubernetes/vendor/k8s.io/klog/v2/klog.go
Lines 885 to 894 in a309fad
kubelet can renew node lease normally because this goroutine do not print log
node controller think this node is ready
What did you expect to happen?
node should be not ready
How can we reproduce it (as minimally and precisely as possible)?
maybe use ptrace to block fsync?
Anything else we need to know?
No response
Kubernetes version
1.26.0
Cloud provider
none
OS version
Install tools
Container runtime (CRI) and version (if applicable)
Related plugins (CNI, CSI, ...) and versions (if applicable)
The text was updated successfully, but these errors were encountered: