SERVER-112991 Update error message to remove incorrect assumption that compact gets EBUSY due to cache pressure (#43184)

GitOrigin-RevId: 440a40b2a7502c58eb0c36cee23ab19b6dbc1eb4
This commit is contained in:
Gregory Wlodarek 2025-10-28 10:23:25 +11:00 committed by MongoDB Bot
parent 263e0f92d1
commit af84ecdcca
2 changed files with 2 additions and 3 deletions

View File

@ -24,7 +24,7 @@ let res = coll.runCommand("compact", {force: true});
if (res.code == 115) {
quit();
}
assert.commandWorked(res);
assert.commandWorkedOrFailedWithCode(res, ErrorCodes.Interrupted);
assert.eq(coll.getIndexes().length, 2);
assert.eq(coll.find({_id: 1}).itcount(), 1);

View File

@ -132,8 +132,7 @@ StatusWith<int64_t> WiredTigerIndexUtil::compact(OperationContext* opCtx,
if (ret == EBUSY) {
return Status(ErrorCodes::Interrupted,
str::stream() << "Compaction interrupted on " << uri.c_str()
<< " due to cache eviction pressure");
str::stream() << "Compaction interrupted on " << uri.c_str());
}
invariantWTOK(ret, *s);