When updating a $out (aggregation) on a primary node it runs successful.
When running the same $out aggregation using a secondary node we get this error:
BSONObj size: 16953146 (0x102AF3A) is invalid.
Size must be between 0 and 16793600(16MB) First element:
insert: " tmp.agg_out.55125f65 - 0ef0 - 4c1f - a7ef - dec311c99612 "
According the 4.4 manual https://www.mongodb.com/docs/v4.4/reference/operator/aggregation/out/#behaviors I was under the impression this was possible but I cannot find any information regarding a possible size restriction causing this error.
Is this expected behaviour?