Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-5834

Incremental backup returning too large offset

    • 5
    • Storage Engines 2020-03-23
    • v4.4, v4.2

      The code in WT-5240 to add incremental backup to test/format appears to have found a bug in the code. It is returning an offset larger than the file size:

      t: FAILED: copy_blocks/260: lseek(rfd, (wt_off_t)offset, SEEK_SET): error return: -2063597568
      (gdb) bt
      #0  0x00007f21a526a5f7 in raise () from /lib64/libc.so.6
      #1  0x00007f21a526bce8 in abort () from /lib64/libc.so.6
      #2  0x00000000004154d3 in testutil_die (e=-2063597568, fmt=0x5fdd7d "%s/%d: %s") at ../../../test/utility/misc.c:66
      #3  0x000000000040394b in copy_blocks (session=0x7f21a642e1f8, bkup_c=0x7f2170001050, name=0x7f2170001590 "wt.wt")
          at ../../../test/format/backup.c:260
      #4  0x000000000040455d in backup (arg=0x0) at ../../../test/format/backup.c:445
      #5  0x00007f21a5c24dc5 in start_thread () from /lib64/libpthread.so.0
      #6  0x00007f21a532bc9d in clone () from /lib64/libc.so.6
      (gdb) frame 3
      #3  0x000000000040394b in copy_blocks (session=0x7f21a642e1f8, bkup_c=0x7f2170001050, name=0x7f2170001590 "wt.wt")
          at ../../../test/format/backup.c:260
      260	            error_sys_check(lseek(rfd, (wt_off_t)offset, SEEK_SET));
      (gdb) p offset
      $1 = 2231369728
      [sue@ip-172-30-0-18 (1) format]$ ls -l RUNDIR/wt.wt
      -rw-rw-r-- 1 sue sue 543343616 Mar 12 18:46 RUNDIR/wt.wt
      

            Assignee:
            sue.loverso@mongodb.com Susan LoVerso
            Reporter:
            sue.loverso@mongodb.com Susan LoVerso
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: