Ensure to exhaust the cursor in agg_list_cluster_catalog.js when running $listClusterCatalog

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0, 8.0.10
    • Affects Version/s: 8.1.0-rc0
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v8.0
    • CAR Team 2024-12-23
    • 200
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The aggregation stage is meant to display the entire catalog if run against the admin db.
      However, the test does not exhaust the cursor when running $listClusterCatalog.

      This is problematic because:

      • Previous run of the different core tests are leaving garbage databases/collections around which are displayed by the stage, possibly exceeding the default batch size returned by the stage.
      • The catalog entry we are expecting to see in the stage result might not be present in the first batch.

      The test should always ensure to exhaust the cursor before comparing the result with listCollection.

            Assignee:
            Enrico Golfieri
            Reporter:
            Enrico Golfieri
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: