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

Opening cursor on nonexistent index leads to failure

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: WT2.6.1
    • Fix Version/s: WT2.7.0
    • Labels:
      None
    • # Replies:
      3
    • Last comment by Customer:
      true

      Description

      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

        Issue Links

          Activity

          Hide
          xgen-internal-githook Githook User added a comment -

          Author:

          {u'username': u'ddanderson', u'name': u'Don Anderson', u'email': u'dda@ddanderson.com'}

          Message: WT-2022. If a non-existent cursor is opened, the base table needs
          to be released.
          Branch: develop
          https://github.com/wiredtiger/wiredtiger/commit/ddc08b50eddd4f30e9192594418cc2f6962c1abc

          Show
          xgen-internal-githook Githook User added a comment - Author: {u'username': u'ddanderson', u'name': u'Don Anderson', u'email': u'dda@ddanderson.com'} Message: WT-2022 . If a non-existent cursor is opened, the base table needs to be released. Branch: develop https://github.com/wiredtiger/wiredtiger/commit/ddc08b50eddd4f30e9192594418cc2f6962c1abc
          Hide
          xgen-internal-githook Githook User added a comment -

          Author:

          {u'username': u'agorrod', u'name': u'Alex Gorrod', u'email': u'alexander.gorrod@mongodb.com'}

          Message: Merge pull request #2087 from wiredtiger/curindex-release

          WT-2022. When non-existent index cursor is opened, release the base table.
          Branch: develop
          https://github.com/wiredtiger/wiredtiger/commit/9df72d73af1e466a99c333d9c239ff70da7d5f4b

          Show
          xgen-internal-githook Githook User added a comment - Author: {u'username': u'agorrod', u'name': u'Alex Gorrod', u'email': u'alexander.gorrod@mongodb.com'} Message: Merge pull request #2087 from wiredtiger/curindex-release WT-2022 . When non-existent index cursor is opened, release the base table. Branch: develop https://github.com/wiredtiger/wiredtiger/commit/9df72d73af1e466a99c333d9c239ff70da7d5f4b
          Hide
          donald.anderson Donald Anderson added a comment -

          This problem is resolved by the commit/merges of July 26.

          Show
          donald.anderson Donald Anderson added a comment - This problem is resolved by the commit/merges of July 26.

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since reply:
                1 year, 38 weeks, 2 days ago
                Date of 1st Reply: