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

    • Fully Compatible
    • v5.0
    • Sharding 2021-05-17, Sharding 2021-06-14, Sharding 2021-06-28, Sharding 2021-05-31
    • 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

              luis.osta@mongodb.com Luis Osta (Inactive)
              blake.oler@mongodb.com Blake Oler
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: