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

Narrow down matched lines when using rawMongoProgramOutput in catalog and routing tests

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • CAR Team 2024-10-28, CAR Team 2024-11-11
    • 200
    • 1

      SERVER-95628 changed rawMongoProgramOutput to throw an exception when more than 16MB of logs are matched. This is necessary because if the matched lines can't fit in a single BSON object, they can't be passed in as argument to this function.

      Purpose of this ticket is to review rawMongoProgramOutput's usages in the catalog and routing tests using the helper:

      We should narrow down the number of matched lines in order to be fairly sure not to overpass the 16MB limit.

      E.g. this line should change as follows:

      • FROM
        assert.neq(-1, rawMongoProgramOutput(".*").search(/Fatal assertion.*40475/));
        
      • TO
        assert.neq(-1, rawMongoProgramOutput("Fatal assertion.").search(/40475/));
        

            Assignee:
            igor.praznik@mongodb.com Igor Praznik
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: