[Bugs] [Bug 1206461] New: sparse file self heal fail under xfs version 2 with speculative preallocation feature on

bugzilla at redhat.com bugzilla at redhat.com
Fri Mar 27 07:56:00 UTC 2015


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

            Bug ID: 1206461
           Summary: sparse file self heal fail under xfs version 2 with
                    speculative preallocation feature on
           Product: GlusterFS
           Version: mainline
         Component: replicate
          Severity: high
          Assignee: bugs at gluster.org
          Reporter: madaozhou at gmail.com
                CC: bugs at gluster.org, gluster-bugs at redhat.com



Description of problem:

Under gluster 3.6.3 beta1 and file system of xfs version 2, test:
tests/basic/afr/sparse-file-self-heal.t would fail.
With both full and diff algorithm, file big2bigger would become sparse file
after self heal was done.

If the speculative preallocation feature of xfs is disabled, the test would
pass but which may cause the potential of increasing fragmentation.

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

glusterfs 3.6.3 beta1
xfs version 2

How reproducible:

Mount xfs file system without setting allocsize and run
tests/basic/afr/sparse-file-self-heal.t

Steps to Reproduce:

1. Install gluster3.6.3 beta1.
2. Mount device with xfs file system.
3. Run tests/basic/afr/sparse-file-self-heal.t.

Actual results:

big2bigger will become sparse file under both full and diff self heal
algorithms.

Expected results:

All tests pass.

Additional info:
Under xfs version 2 with speculative preallocation feature on, the test result
is :
---------->>>> test info <<<<<-------------

Test Summary Report
-------------------
./tests/basic/afr/sparse-file-self-heal.t (Wstat: 0 Tests: 64 Failed: 2)
  Failed tests:  33, 61
Files=1, Tests=64, 46 wallclock secs ( 0.03 usr  0.01 sys +  1.99 cusr  2.31
csys =  4.34 CPU)
Result: FAIL
Failed tests  ./tests/basic/afr/sparse-file-self-heal.t

Under xfs version 2 with speculative preallocation feature off:
mount -o allocsize=64k -t xfs device dir
the test result is :
---------->>>> test info <<<<<-------------
[07:53:36] ./tests/basic/afr/sparse-file-self-heal.t .. ok    46257 ms
[07:54:22]
All tests successful.
Files=1, Tests=64, 46 wallclock secs ( 0.03 usr  0.01 sys +  1.96 cusr  2.30
csys =  4.30 CPU)
Result: PASS

-- 
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