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

Asserting clauses do not cause a jstest to fail when it is run through startParallelShell()

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: Shell
    • None
    • Fully Compatible
    • STM 2021-09-06
    • 142
    • 2

      Updated Description:
      startParallelShell returns a function that needs to be called to assert the output of the shell. This is not intuitive and error prone. We should be able to enforce that the returned function is called by storing and removing pids in a dict and checking that the dict is empty on shell shutdown.

      See impl sketch here: https://github.com/mongodb/mongo/commit/bd70fe9b24fbefbb2d7a483d15a5a7d3a326b315

      Original Description:
      When executing an asserting function through startParallelShell() , the failure will appear in tests.log as an uncaught exception, but the test will still pass.

            Assignee:
            richard.samuels@mongodb.com Richard Samuels (Inactive)
            Reporter:
            paolo.polato@mongodb.com Paolo Polato
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: