Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-21276

sanityn test_39a/39d: mtime is not updated on write

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • None
    • None
    •  <distro/arch>
    • 3
    • 9223372036854775807

      sanityn test_39a and test_39d intermittently fail with "mtime is not updated on write". They read date +%s, write, read date +%s again, and require d1 <= mtime <= d2. That fails when the kernel timestamp falls just outside the userspace window.

      This is the same kernel vs. userspace clock skew that b6242fd0f9ce ("LU-12105 tests: fix sanity/39 checks and style") fixed in sanity.sh test_39c/39l. That patch didn't touch sanityn.sh.

      Fix: the same as LU-12105, a sleep 0.5 before and after the write.

            wc-triage WC Triage
            johgras John Grasso
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: