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

sanityn test_14ab: expected error, got success

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • None
    • None
    • 3
    • 9223372036854775807

      sanityn test_14ab fails with "expected error, got success" at a very low rate: 7 failures since 2024-12 (master, master-next, janitor and review runs of unrelated changes), 1 in about 1500 review-dne-zfs-part-5 runs in the last 30 days. Failed here on https://testing.whamcloud.com/test_sets/61c424df-b046-4076-a90a-8a1aea6c3496 (change 69348, which does not touch this test or the exec path).

      test_14ab starts "$DIR1/$tdir/sleep 60 &" and immediately runs "$MULTIOP $DIR2/$tdir/sleep Oc", expecting -ETXTBSY. Nothing waits for the backgrounded sleep to actually exec the file, so when the open on the second mount wins the race against the fork and exec, the open of the not yet executing file succeeds and the test reports the error. This looks like a test race, not a client or server bug.

      Likely fix: make the test wait until the file is executing (for example poll for the sleep process or retry the open for a short period) before checking for -ETXTBSY.

      Raised by Patch Watcher run pw-engineer-69348-ps3-28b9b55a85bc on https://review.whamcloud.com/69348

      VVVVVVV DO NOT REMOVE LINES BELOW, Added by Maloo for auto-association VVVVVVV
      sanityn test_14ab - expected error, got success

            adilger Andreas Dilger
            maloo Maloo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: