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

Recognize errors for inserts, updates, and removes in bench.cpp

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Service Arch
    • Fully Compatible
    • ALL
    • Service Arch 2024-04-01
    • 120

      Currently, when benchRun runs commands and those commands error, we don't really have a way of knowing besides hoping the log debug level is high enough. This caused a perf workload error to go unnoticed.

      For bench.cpp specifics, OpType::UPDATE, OpType::INSERT, and OpType::REMOVE  don’t care about whether the command fails or succeeds.

      Investigate what type of error handling is necessary here. I imagine certain error codes would be fatal. Over slack, Matt Broadstone suggests wrapping an "ok" check in a MONGO_unlikely (perf impact of this would need to be tested), or implementing a dry run to do error checking.

            Assignee:
            joseph.prince@mongodb.com Joseph Prince
            Reporter:
            alex.li@mongodb.com Alex Li
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: