Files
kubernetes/pkg
Kubernetes Submit Queue 47b4c0e770 Merge pull request #33899 from MrHohn/fix_config_test
Automatic merge from submit-queue

Fix #33784, IN_CREATE event does not guarantee file content written

Fixed #33784.

The CREATE inotify event [here](https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/config/file_linux_test.go#L275) is triggered by os.OpenFile(), however the content would be written by the following f.Write(). It will fail if the program try to process the event in between.

IN_CREAE event is triggered by open(2), mkdir(2), link(2), symlink(2), bind(2), but not all of them will guarantee the content is written ([ref](http://man7.org/linux/man-pages/man7/inotify.7.html)). <s>Hence we should not respond to IN_CREATE event for pod creation. I believe listen on IN_MODIFY and IN_MOVED_TO would be sufficient for pod addition&update.

Would like to see the Jenkins test results for further evaluation.

@Random-Liu
2016-10-03 22:24:48 -07:00
..
2016-09-19 09:57:19 -04:00
2016-10-03 12:46:39 -04:00
2016-09-28 10:53:30 -07:00
2016-10-03 12:46:39 -04:00
2016-08-31 13:46:40 -07:00
2016-08-25 10:57:31 -07:00
2016-09-29 13:52:20 -04:00
2016-09-29 17:35:43 -07:00
2016-08-22 14:18:15 -04:00
2016-09-28 10:53:30 -07:00
2016-09-27 12:44:54 -04:00
2016-09-20 14:47:31 +08:00