[Xapian-tickets] [Xapian] #823: Unit test ioblock1 failure

Xapian nobody at xapian.org
Thu Jan 18 17:22:24 GMT 2024


#823: Unit test ioblock1 failure
--------------------------+-------------------------------
 Reporter:  someplaceguy  |             Owner:  Olly Betts
     Type:  defect        |            Status:  assigned
 Priority:  normal        |         Milestone:  1.4.25
Component:  Test Suite    |           Version:  1.4.24
 Severity:  normal        |        Resolution:
 Keywords:                |        Blocked By:
 Blocking:                |  Operating System:  Linux
--------------------------+-------------------------------
Comment (by someplaceguy):

 That doesn't seem to work, the test is still being skipped:
 {{{
 Running test: ioblock1...hole: 136192, st_size: 136192
  SKIPPED
 unittest.cc:957: Skipping rest of testcase - sparse files not supported
 }}}

 I think it's not working because the test is doing two writes:

 * One write to offsets 1024..2047, corresponding to the first 128K ZFS
 block (which covers offsets 0..131071)
 * Another write to offsets 135168..136191, corresponding to the second
 128K ZFS block (which covers offsets 131072..262143).

 Since the test is writing both to the first and to the second ZFS blocks,
 there is no hole in-between.

 However, if I change `132` to a bigger offset, like `270` (for example),
 then it should work fine because the first write would still be done to
 the first ZFS block, while the second write would be done to the *third*
 ZFS block. This would leave a hole in the middle (i.e. the second ZFS
 block).

 As expected, after changing `132` to `270` the test passes:

 {{{
 Running test: ioblock1... ok
 PASS: unittest
 }}}
-- 
Ticket URL: <https://trac.xapian.org/ticket/823#comment:11>
Xapian <https://xapian.org/>
Xapian


More information about the Xapian-tickets mailing list