LogTransactionOperationsForShardingHandler::commit misses transferring documents from prepared and non-prepared transactions changing a document's shard key value

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • v6.1, v6.0, v5.0, v4.4, v4.2
    • Sharding 2022-08-08, Sharding 2022-08-22, Sharding 2022-09-05, Sharding 2022-09-19, Sharding NYC 2022-11-14
    • 113
    • 5
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Original summary

      Investigate getPreImageDocumentKey calls in LogTransactionOperationsForShardingHandler::commit

      Original description

      It is called a few times around here:
      https://github.com/mongodb/mongo/blob/119e6b5979e4b1e8fcf91db711673393c56b4020/src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp#L240

      But there appears to be no code setting the value.

              Assignee:
              Randolph Tan
              Reporter:
              Randolph Tan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: