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

Opening cursor on nonexistent index leads to failure

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • WT2.7.0
    • Affects Version/s: WT2.6.1
    • Component/s: None
    • None

      Open a cursor on nonexistent index (the base table must exist). This fails as expected. Then drop the table.

      $ ./bug_drop_index
      [1437748149:86701][9591:0x7fff75dcb300], WT_SESSION.drop: ../src/schema/schema_list.c, 228: table->refcnt <= 1
      [1437748149:86733][9591:0x7fff75dcb300], WT_SESSION.drop: aborting WiredTiger library
      Abort trap: 6

      The debugger shows table->refcnt to be 2.

      See attached test case.

        1. bug_drop_index.c
          1 kB
          Donald Anderson

            Assignee:
            donald.anderson@mongodb.com Donald Anderson
            Reporter:
            donald.anderson@mongodb.com Donald Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: