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

OpObserverImpl should pass the shard key when calling shardObserveDeleteOp

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: 4.9.0-alpha4
    • Component/s: Sharding
    • Fully Compatible
    • ALL
    • Sharding 2021-03-22
    • 121

      OpObserverImpl is only passing the document '_id' when calling shardObserveDeleteOp. However, it should also mass the shardKey element, because OpObserverShardingImpl::shardObserveDeleteOp needs it so that in assertIntersectingChunkHasNotMoved it is able to find the intersecting chunk.

      This line should be changed to:

      documentKey.getShardKeyAndId(),
      

            Assignee:
            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            Reporter:
            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: