-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TestFUSEOverlayFS/LayerFileupdate fails depending on the number of CPUs #2
Comments
fails on Ubuntu 19.04 kernel |
It fails on my another Ubuntu 19.10 machine. Maybe unrelated to kernel version. |
However, it succeeds when running with Maybe timestamp issue |
This seems concurrrency issue. This issue doesn't happen on GCE n1-standard-4, but when I add |
|
"updated" file has $ git diff
diff --git a/vendor/github.com/containerd/continuity/fs/fstest/continuity_util.go b/vendor/github.com/containerd/continuity/fs/fstest/continuity_util.go
index 4d30dd0..03a8729 100644
--- a/vendor/github.com/containerd/continuity/fs/fstest/continuity_util.go
+++ b/vendor/github.com/containerd/continuity/fs/fstest/continuity_util.go
@@ -29,10 +29,11 @@ type resourceUpdate struct {
}
func (u resourceUpdate) String() string {
- return fmt.Sprintf("%s(mode: %o, uid: %d, gid: %d) -> %s(mode: %o, uid: %d, gid: %d)",
- u.Original.Path(), u.Original.Mode(), u.Original.UID(), u.Original.GID(),
- u.Updated.Path(), u.Updated.Mode(), u.Updated.UID(), u.Updated.GID(),
- )
+ return fmt.Sprintf("%s(%+v) -> %s(%+v)", u.Original.Path(), u.Original, u.Updated.Path(), u.Updated)
+// return fmt.Sprintf("%s(mode: %o, uid: %d, gid: %d) -> %s(mode: %o, uid: %d, gid: %d)",
+// u.Original.Path(), u.Original.Mode(), u.Original.UID(), u.Original.GID(),
+// u.Updated.Path(), u.Updated.Mode(), u.Updated.UID(), u.Updated.GID(),
+// )
}
type resourceListDifference struct {
$ go test -c . && sudo taskset --cpu-list 1 ./containerd-fuse-overlayfs.t
est -test.root -test.v -test.run TestFUSEOverlayFS/LayerFileupdate
=== RUN TestFUSEOverlayFS
=== RUN TestFUSEOverlayFS/LayerFileupdate
=== PAUSE TestFUSEOverlayFS/LayerFileupdate
=== CONT TestFUSEOverlayFS/LayerFileupdate
--- FAIL: TestFUSEOverlayFS (0.01s)
--- FAIL: TestFUSEOverlayFS/LayerFileupdate (0.04s)
issues.go:62: Check snapshots failed: directory diff between /tmp/snapshot-suite-fuse-overlayfs-823498837/work/flat106545072 and /tmp/snapshot-
suite-fuse-overlayfs-823498837/work/check314936477
~ /root/.bashrc(&{resource:{paths:[/root/.bashrc] mode:420 uid:0 gid:0 xattrs:map[]} size:23 digests:[sha256:a28a732b0fa5e1774f8ff746277d44
e5796d523fe5312789d9c5b87f4824f596]}) -> /root/.bashrc(&{resource:{paths:[/root/.bashrc] mode:420 uid:0 gid:0 xattrs:map[]} size:0 digests:[sha256:e3b0
c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855]})
... |
Mounting |
tree: 5e1e2cf
kernel:
5.0.0-31-generic #33~18.04.1-Ubuntu
make test
succeeds on Ubuntu 19.10 kernel5.3.0-18-generic #19-Ubuntu
The text was updated successfully, but these errors were encountered: