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

findAndModify no-op retry should respect the fields option

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: 3.6.0-rc1
    • Fix Version/s: Backlog
    • Component/s: None
    • Operating System:
      ALL
    • Sprint:
      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

          Issue Links

            Activity

              People

              Assignee:
              backlog-query-execution Backlog - Query Execution
              Reporter:
              jack.mulrow Jack Mulrow
              Participants:
              Votes:
              3 Vote for this issue
              Watchers:
              18 Start watching this issue

                Dates

                Created:
                Updated: