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

getShardDistribution() incorrectly shows 0 chunks

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.3.1
    • Sharding
    • 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

    Description

      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
      
      

      Attachments

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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: