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

findAndModify no-op retry should respect the fields option

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • 3.6.0-rc1
    • None
    • 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

    Description

      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

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            3 Vote for this issue
            Watchers:
            21 Start watching this issue

            Dates

              Created:
              Updated: