mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-11-13 06:04:02 +00:00
Use fsync instead of sync for test
sync sometimes hangs with misbehaving NFS during the tests Signed-off-by: Mrunal Patel <mpatel@redhat.com>
This commit is contained in:
@@ -113,7 +113,7 @@ var _ = SIGDescribe("StatefulSet", func() {
|
||||
By("Verifying statefulset set proper service name")
|
||||
framework.ExpectNoError(sst.CheckServiceName(ss, headlessSvcName))
|
||||
|
||||
cmd := "echo $(hostname) > /data/hostname; sync;"
|
||||
cmd := "echo $(hostname) | dd of=/data/hostname conv=fsync"
|
||||
By("Running " + cmd + " in all stateful pods")
|
||||
framework.ExpectNoError(sst.ExecInStatefulPods(ss, cmd))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user