Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-58489

Collection creation stuck in an infinite writeConflictRetry loop when having a duplicate name as a view

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.1, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v5.0
    • Execution Team 2021-07-26
    • 147

      When creating a collection implicitly, we check if a collection with the namespace string already exists. However, before committing, we also check that if the nss conflicts with another view. As a result, if one thread successfully creates a view while another one is attempting to create a collection with the same nss in the writeConflictRetry loop, the other thread could fall into an infinite loop.

            Assignee:
            yuhong.zhang@mongodb.com Yuhong Zhang
            Reporter:
            yuhong.zhang@mongodb.com Yuhong Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: