-
Type: Bug
-
Resolution: Cannot Reproduce
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
-
ALL
-
QE 2021-11-29
jstests/sharding/query/sharded_lookup_execution.js fails with an assertion in src/mongo/db/pipeline/accumulator_avg.cpp:62 executing this pipeline (see "assertLookupExecution(pipeline, {comment: "unsharded_to_sharded_cache"}" at sharded_lookup_execution.js:632):
[[ {"$match" : {"customer" : "Alice"}}, {"$unwind" : "$products"}, { "$lookup" : { "from" : "reviews", "let" :
, "pipeline" : [ { "$group" : { "_id" : "$product_id", "avg_stars" :
{ "$avg" : "$stars" }, "name" : { "$first" : "$product_id" } } }, {"$match" : {"$expr" :
{"$eq" : ["$name","$$customer_product_name"]}}} ], "as" : "avg_review" } }, {"$unwind" : {"path" : "$avg_review", "preserveNullAndEmptyArrays" : true}}, {"$group" : {"_id" : "$_id", "products" : {"$push" : {"_id" : "$products._id","avg_review" : "$avg_review.avg_stars"}}}}]
Log for this failure: