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

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1.0, 5.0.1
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v5.0
    • Sprint:
      Execution Team 2021-07-26
    • Linked BF Score:
      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

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

                Dates

                Created:
                Updated:
                Resolved: