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

Only indicate cancelation to resharding metrics on participant shards if the userCanceled field is set to true

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v5.0
    • Sprint:
      Sharding 2021-05-17, Sharding 2021-06-14, Sharding 2021-06-28, Sharding 2021-05-31
    • Story Points:
      1

      Description

      Do the following on the recipient first – unsure at this time if the donor is ready for this.

      1. Make userCanceled a class member of participants of type boost::optional<bool>.
      2. This class member will be populated from two different sources, either the onReshardingFieldsChanges() or abort() directly from the shard's abortReshardCollection command. Both of these sources go through the abort() command eventually, so you can populate the class member there.
      3. Refer to userCanceled here, where you will indicate kCanceled if aborted == true && userCanceled == true, kFailure if aborted == true && userCanceled == false, and kSuccess otherwise.
      4. Try removing this call to onCompletion. If tests fail, keep it for now.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              luis.osta Luis Osta
              Reporter:
              blake.oler Blake Oler
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: