mirror of https://github.com/mongodb/mongo
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:
parent
263e0f92d1
commit
af84ecdcca
|
|
@ -24,7 +24,7 @@ let res = coll.runCommand("compact", {force: true});
|
||||||
if (res.code == 115) {
|
if (res.code == 115) {
|
||||||
quit();
|
quit();
|
||||||
}
|
}
|
||||||
assert.commandWorked(res);
|
assert.commandWorkedOrFailedWithCode(res, ErrorCodes.Interrupted);
|
||||||
|
|
||||||
assert.eq(coll.getIndexes().length, 2);
|
assert.eq(coll.getIndexes().length, 2);
|
||||||
assert.eq(coll.find({_id: 1}).itcount(), 1);
|
assert.eq(coll.find({_id: 1}).itcount(), 1);
|
||||||
|
|
|
||||||
|
|
@ -132,8 +132,7 @@ StatusWith<int64_t> WiredTigerIndexUtil::compact(OperationContext* opCtx,
|
||||||
|
|
||||||
if (ret == EBUSY) {
|
if (ret == EBUSY) {
|
||||||
return Status(ErrorCodes::Interrupted,
|
return Status(ErrorCodes::Interrupted,
|
||||||
str::stream() << "Compaction interrupted on " << uri.c_str()
|
str::stream() << "Compaction interrupted on " << uri.c_str());
|
||||||
<< " due to cache eviction pressure");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
invariantWTOK(ret, *s);
|
invariantWTOK(ret, *s);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue