kubernetes: kube-apiserver[14274]: E1015 10:17:36.804307 14274 watcher.go:214] watch chan error: etcdserver: mvcc: required revision has been compacted
my kubernetes version 1.16.0 ,etcd version 3.3.13,binary deployment
After deployment i foud here is somthing wrong with kube-apiserver and somthingelse
it shows kube-apiserver[14274]: E1015 12:26:55.231545 14274 watcher.go:214] watch chan error: etcdserver: mvcc: required revision has been compacted and When I perform "kubectl get cs"
it shows "unknown" both etcd and kube-controller-manager and kube-scheduler
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 4
- Comments: 17 (6 by maintainers)
@wenjiaswe Whats confusing about this message then is that it is logged as an ERROR. If its part of normal operations it should not be logged as an error or probably not logged at all.
Still seeing the same logged as error in the Kube API Server log (kubernetes v1.18.6):
etcd is the Kubernetes’ backing store for all cluster data, it has a history compaction mechanism to avoid performance degradation and eventual storage space exhaustion, here are some docs on etcd repo.
“watch chan error: etcdserver: mvcc: required revision has been compacted” literally means the watched revision is compacted. This is working as designed, when attempts to re-establish a watch from a resourceVersion that is no longer available would prompt the caller to re-list objects and obtain a new current resourceVersion to watch from…
For your comment "and When I perform “kubectl get cs” it shows “unknown” both etcd and kube-controller-manager and kube-scheduler ", what does that mean? Could you paste the output of “kubectl get cs” here?