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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 5.0.1, 5.1.0-rc0
    • None
    • None
    • Fully Compatible
    • ALL
    • v5.0
    • Execution Team 2021-07-26
    • 147

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: