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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • WT2.9.0, 3.2.12, 3.4.0-rc4
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage 2016-11-21

      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.

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

              Created:
              Updated:
              Resolved: