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: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: 4.4.29, 5.0.26, 6.0.15, 7.0.7
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • ALL
    • v8.0, v7.3, v7.0, v6.0, v5.0
    • 200

      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:
            rui.liu@mongodb.com Rui Liu
            Reporter:
            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            18 Start watching this issue

              Created:
              Updated:
              Resolved: