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

all_collection_stats.js should compare only few selected fields

    • Fully Compatible
    • v6.1, v6.0
    • Sharding EMEA 2022-10-17, Sharding EMEA 2022-10-31
    • 15

      all_collection_stats.js is a test for the new aggregation pipeline stage  _internalAllCollectionStats that reports the statistics of all collections.
      However, the test simply compares the json result of _internalAllCollectionStats with calling multiple times $collStats.

      The result should be theoretically equivalent, unfortunately this test might fail since the collection stats contains some cache information that apparently can change among successive calls.

      My suggestion is to simply compare some selected fields. However, any other solution is welcomed. 

            Assignee:
            pol.pinol@mongodb.com Pol Pinol
            Reporter:
            enrico.golfieri@mongodb.com Enrico Golfieri
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: