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

Write with very large system.js causes getMore to wait for write concern

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.4.29, 5.0.26, 6.0.15, 7.0.7
    • Component/s: None
    • Query Execution
    • ALL

      Operations that use $where in a query cause the server to read the system.js collection sometimes.

      The way it is implemented is based on a DBDirectClient that iterates a find on it. This operation inherits the writeConcern from the parent operation. As a result, if there are a large number of entries present in the collection the cursor will perform a getMore operation.

      This will cause the operation to wait for write concern since getMore supports it.

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated: