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

Bench.cpp should fail and report error on connection failure

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Performance
    • Labels:
    • Operating System:
      ALL
    • Linked BF Score:
      0

      Description

      Bench.cpp uses BenchRunWorkerStateGuard to synchronize worker threads in benchRun after establishing connections to the mongod. If the connection attempt fails, the guard is skipped, and the remaining workers wait forever for the failed thread.

      The exception handling code should decrement the counter used by BenchRunWorkerStateGuard so the other threads don't hang, and should signal a failure.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: