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

dataSize do not reduce after chunks migrated

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Storage
    • Labels:
      None
    • ALL

      Hi,

      Recently I have noticed a issue after upgrading from 4.0.14 to 4.0.20

      When using Mongo version 4.0.14, I have added 1 shard on top of existing 2 shards. turnedOn the balancer and chunks migrated to newly added shard (3rd) and I could see dataSize reduced on older shards, by using "compact" I reclaimed storageSize after migration.

       

      After upgrading to 4.0.20, I have added 1 more shard on top of 3 shards, turnedOn the balancer and chunks migrated to newly added shard (4th) and I did not notice dataSize reduced on older shards, I also verified by looking at "file bytes available for reuse" on db.stats() and db.coll.stats() 

        1. C_C-shardDistribution-10-21-2020.txt
          1 kB
        2. C_E_C-shardDistribution-10-21-2020.txt
          1 kB
        3. C_ERROR-shardDistribution-10-21-2020.txt
          1 kB
        4. C_RETRY-shardDistribution-10-21-2020.txt
          1 kB
        5. script-cleanupOrphaned.txt
          0.3 kB
        6. sh.status()-10-21-2020
          4 kB
        7. sh-status()_10-24_1700CT.txt
          4 kB

            Assignee:
            edwin.zhou@mongodb.com Edwin Zhou
            Reporter:
            dheeraj.dba7@gmail.com Dheeraj G
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: