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

Split currSizeBytes out of ShardStatistics

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc10
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • v8.0
    • CAR Team 2024-03-18, CAR Team 2024-04-01, CAR Team 2024-04-15, CAR Team 2024-04-29, CAR Team 2024-05-13
    • 1

      ShardStatistics::currSizeBytes is populated either with the total size of the shard, or with the collection size, depending on a namespace being passed or not. This was for historical reasons, and the only remaining usage of currSizeBytes is in MoveAndMergeChunksPhase, which requires the collection size.

      We should either create a separate ShardCollectionStatistics, or simply fetch the collection sizes at the site where it is required.

            Assignee:
            yujin.kang@mongodb.com Yujin Kang Park
            Reporter:
            yujin.kang@mongodb.com Yujin Kang Park
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: