-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Execution
-
ALL
-
-
None
-
None
-
None
-
None
-
None
-
None
-
None
An aggregation whose pipeline contains a $unionWith whose sub-pipeline begins with a cursorless stage ($collStats) fails with a non-retryable StaleConfig ("timestamp mismatch detected") whenever the node that executes the $unionWith is not the shard that owns the foreign collection. This is hit deterministically on clusters where tracked unsplittable collections live off the merging node (e.g. after moveCollection, or when unsharded collections are tracked upon creation and placed on a random data shard), which is the configuration exercised by the aggregation_unsplittable_collections_on_random_shard_passthrough suite.
I found this issue when adding a regression test for SERVER-137654.
The issue SERVER-113591 is related, but is restricted to legacy time series collections, and so is considered lower priority.