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

getShardDistribution() incorrectly shows 0 chunks

    • Fully Compatible
    • ALL
    • Hide
      python3 buildscripts/resmoke.py --suites=generational_fuzzer --storageEngineCacheSizeGB=1 path/to/query_fuzzer-524659-1569598253645-0.js
      
      Show
      python3 buildscripts/resmoke.py --suites=generational_fuzzer --storageEngineCacheSizeGB=1 path/to/query_fuzzer-524659-1569598253645-0.js
    • Sharding 2019-10-21

      Output of getShardDistribution():

      data : 63KiB docs : 108 chunks : 0
      estimated data per chunk : 0B
      estimated docs per chunk : 0
      
      data : 53KiB docs : 92 chunks : 0
      estimated data per chunk : 0B
      estimated docs per chunk : 0
      
      Totals
       data : 116KiB docs : 200 chunks : 0
       Shard query_fuzzer-524659-1569598253645-0-rs1 contains 53.86% data, 54% docs in cluster, avg obj size on shard : 597B
       Shard query_fuzzer-524659-1569598253645-0-rs0 contains 46.13% data, 46% docs in cluster, avg obj size on shard : 600B
      
      config.chunks.find({ns: 'fuzzer.fuzzer_coll'}).itcount() = 4 // so there are actually 4, not 0 chunks
      
      

        1. shardDist1.log
          696 kB
        2. query_fuzzer-524659-1569598253645-0.js
          210 kB

            Assignee:
            alex.taskov@mongodb.com Alexander Taskov (Inactive)
            Reporter:
            vlad.rachev@mongodb.com Vlad Rachev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: