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

findAndModify no-op retry should respect the fields option

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.6.0-rc1
    • Component/s: None
    • Labels:
    • Query Execution
    • ALL
    • Query 2019-12-02, Query 2019-12-30, Query 2020-01-13, Query Execution 2021-04-05, Query Execution 2021-04-19

      findAndModify can accept a "fields" option that determines which fields to return in the value object (like projection). Right now when reconstructing the findAndModify response, we don't account for this option. Instead, if "fields" is given we should filter the response to include the specified fields only.

      Failing retryable_writes_jscore_passthrough tests:

      • crud_api.js
      • find_and_modify2.js
      • find_and_modify_server6865.js
      • profile_findandmodify.js

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            3 Vote for this issue
            Watchers:
            21 Start watching this issue

              Created:
              Updated: