Behavioral change creating capped collection in sharded cluster

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL
    • 44
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The Java driver has a regression test for its create collection helper that is failing against a sharded cluster. The test runs the following command:

      {
         create: <collection>,
         capped: true
         size: 40960
         max: 100
      }
      

      Followed by

      {
          collStats: <collection>
      }
      

      and expects that the value of the storageSize field in the reply is equal to 40960.
      But the actual value of the field is 4096.

      The test first failed against MongoDB 6.2.0-alpha-209-g8de369e. The test last succeeded against v6.2.0-alpha-187-gbd8a8d4. The same test still passes against replica set and standalone topologies.

            Assignee:
            Enrico Golfieri
            Reporter:
            Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: