Operational Defect Database

BugZero found this defect 60 days ago.

MongoDB | 2614887

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

Last update date:

3/20/2024

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

No fixed releases provided.

Description:

Info

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.

Top User Comments


Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

In Progress

Learn More

Search:

...