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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Yuhong Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: