-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: 5.0.0, 5.0.2, 6.1.0-rc0
-
Component/s: None
-
Fully Compatible
-
ALL
-
v5.0
-
QE 2022-05-16, QE 2022-05-30, QE 2022-06-13, QE 2022-06-27, QE 2022-07-11, QE 2022-07-25
-
60
-
None
-
None
-
None
-
None
-
None
-
None
-
None
UPDATE: There's a dedicated test in master branch group_tmp_file_cleanup.js, however, it starts to fail only with memoryLimitMb >= 15.
This seems to be a fairly general issue, because the following simple test reproduces the problem:
function repro() {
db.c.drop()
print("inserting")
doc = {x: "x".repeat(1000)}
many = Array(1000).fill(doc)
for (var i = 0; i < 100; i++)
db.c.insertMany(many)
print("aggregating")
r = db.c.aggregate([
{
$group: {
"_id": "$_id",
x: {$push: "$x"},
}
}
], {
allowDiskUse: true
})
}