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

LSM operations get stuck in __wt_clsm_await_switch waiting for switch on tree to complete

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • WT2.9.0, 3.2.12, 3.4.0-rc4
    • None
    • None
    • Storage 2016-11-21

    Description

      lsm_tree->flags are accessed from different threads with no concurrency protection. This can cause the WT_LSM_TREE_NEED_SWITCH flag to clear while LSM operations are sleeping in _wt_clsm_await_switch() waiting on a switch to be performed by the lsm_worker. lsm_worker would skip a switch if the WT_LSM_TREE_NEED_SWITCH flag is cleared, causing operations to get stuck in _wt_clsm_await_switch() forever.

      Attachments

        Activity

          People

            sulabh.mahajan@mongodb.com Sulabh Mahajan
            sulabh.mahajan@mongodb.com Sulabh Mahajan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: