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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
            Reporter:
            Alex Li
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: