[Bugs] [Bug 1218951] New: Spurious failures in fop-sanity.t

bugzilla at redhat.com bugzilla at redhat.com
Wed May 6 09:23:47 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1218951

            Bug ID: 1218951
           Summary: Spurious failures in fop-sanity.t
           Product: GlusterFS
           Version: mainline
         Component: tests
          Assignee: bugs at gluster.org
          Reporter: nbalacha at redhat.com
                CC: bugs at gluster.org, gluster-bugs at redhat.com
        Depends On: 1218940



+++ This bug was initially created as a clone of Bug #1218940 +++

Description of problem:

tests/basic/fop-sanity.t fails randomly

Version-Release number of selected component (if applicable):


How reproducible:
Randomly on the regression systems
However, it is consistently reproducible if tests/basic/fop-sanity.c is
modified to add the following line immediately before the call to open():
fprintf(stdout, "Test string");

Steps to Reproduce:
1.
2.
3.

Actual results:
Result: PASS
tests/basic/fops-sanity.t .. 
1..11
ok 1
ok 2
No volumes present
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
volume set: success
ok 9
read failed: No data available
read returning junk
fd based file operation 1 failed
read failed: No data available
read returning junk
fstat failed : No data available
fd based file operation 2 failed
read failed: No data available
read returning junk
dup fd based file operation failed
not ok 10 
FAILED COMMAND: ./fops-sanity damn
/home/nbalachandran/Projects/gluster/code/glusterfs
ok 11
Failed 1/11 subtests

Expected results:
Test should pass

Additional info:

--- Additional comment from Nithya Balachandran on 2015-05-06 04:59:51 EDT ---

The man page for open() states that the mode must be passed in if the flags
include O_CREAT. The calls to open() in the fops-sanity.c did not include the
mode argument. This seemed to cause the file to be created with some random
mode which ended up creating a 'T' file. DHT then proceeded to treat the file
as a linkto file instead of a data file, causing the test to fail.

Fix:
Provide a mode argument to the open() calls.


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1218940
[Bug 1218940] Spurious failures in fop-sanity.t
-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list