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

metadata track dropping object returns error

    • 8
    • Storage Engines - 2022-07-11

      Running test_schema_abort from WT-9369 is exhibiting an error when attempting to drop a tiered table.

      The error (it also looks like some newlines are missing somewhere because this is all the same thread yet the lines are combined):

      [1654718686:267218][27723:0x7fa2957fa700], WT_SESSION.drop: [WT_VERB_DEFAULT][ERROR]: int __meta_track_apply(WT_SESSION_IMPL *, WT_META_TRACK *), 154: metadata remove dropped object file wt.142-0000000001.wtobj: error return: -1[1654718686:267252][27723:0x7fa2957fa700], WT_SESSION.drop: [WT_VERB_DEFAULT][ERROR]: int __wt_meta_track_off(WT_SESSION_IMPL *, _Bool, _Bool), 342: failed to apply or unroll all tracked operations: error return: -1[1654718686:267259][27723:0x7fa2957fa700], WT_SESSION.drop: [WT_VERB_DEFAULT][ERROR]: int __wt_meta_track_off(WT_SESSION_IMPL *, _Bool, _Bool), 342: the process must exit and restart: WT_PANIC: WiredTiger library panic[1654718686:267264][27723:0x7fa2957fa700], WT_SESSION.drop: [WT_VERB_DEFAULT][ERROR]: void __wt_abort(WT_SESSION_IMPL *), 28: aborting WiredTiger librarytest_schema_abort: FAILED: Child process 27723 abnormally exited: Invalid argument
      

      The stack:

      (gdb) bt
      #0  0x00007fa2c25aee87 in raise () from /lib/x86_64-linux-gnu/libc.so.6
      #1  0x00007fa2c25b07f1 in abort () from /lib/x86_64-linux-gnu/libc.so.6
      #2  0x00007fa2c31a26f4 in __wt_abort (session=0x7fa2c370d190) at ../src/os_common/os_abort.c:30
      #3  0x00007fa2c322bd5a in __wt_panic_func (session=0x7fa2c370d190, error=-1, 
          func=0x7fa2c32aec48 "int __wt_meta_track_off(WT_SESSION_IMPL *, _Bool, _Bool)", line=342, category=WT_VERB_DEFAULT, 
          fmt=0x7fa2c32aed30 "failed to apply or unroll all tracked operations") at ../src/support/err.c:550
      #4  0x00007fa2c319994a in __wt_meta_track_off (session=0x7fa2c370d190, need_sync=true, unroll=false)
          at ../src/meta/meta_track.c:342
      #5  0x00007fa2c31f90f2 in __schema_drop (session=0x7fa2c370d190, uri=0x7fa2957f8fc0 "table:wt.142", cfg=0x7fa2957f8ee0)
          at ../src/schema/schema_drop.c:329
      #6  0x00007fa2c31f8c75 in __wt_schema_drop (session=0x7fa2c370d190, uri=0x7fa2957f8fc0 "table:wt.142", cfg=0x7fa2957f8ee0)
          at ../src/schema/schema_drop.c:345
      #7  0x00007fa2c321229d in __session_drop (wt_session=0x7fa2c370d190, uri=0x7fa2957f8fc0 "table:wt.142", 
          config=0x7fa2957f9000 "force=true,remove_shared=true") at ../src/session/session_api.c:1105
      #8  0x00000000004060db in test_bulk_unique (td=0x240c490, force=1) at ../test/csuite/schema_abort/main.c:286
      #9  0x0000000000404bc8 in thread_run (arg=0x240c490) at ../test/csuite/schema_abort/main.c:709
      #10 0x00007fa2c2d746db in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
      #11 0x00007fa2c269161f in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      The command:

      % ./test_schema_abort -B -h WT_TEST.schema-abort -T 10 -t 28
      

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

              Created:
              Updated:
              Resolved: