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

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

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

      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@mongodb.com Enrico Golfieri
            Reporter:
            enrico.golfieri@mongodb.com Enrico Golfieri
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: