-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Catalog and Routing
-
1
-
🟦 Shard Catalog
-
None
-
None
-
None
-
None
-
None
-
None
In OutStage::createTemporaryCollection(), when creating the temporary collection for $out to a timeseries target, the code strips the "clusteredIndex" and "validator" fields from the original collection options obtained via listCollections. This was needed because passing those fields alongside the "timeseries" field to the create command was invalid.
However, SERVER-105339 already fixed listCollections to not return "clusteredIndex" and "validator" for viewless timeseries collections, and SERVER-56933 established the principle that listCollections output should be directly usable to recreate collections. Therefore the removeFields workaround should no longer be necessary and the code can be simplified.
The fix should:
- Remove the {{removeFields(
{"clusteredIndex", "validator"}
)}} call
- Verify that listCollections already excludes these fields for all timeseries collection types
- Add test coverage to ensure $out to timeseries works without the stripping logic
- is related to
-
SERVER-105339 listCollections should hide clusteredIndex for viewless timeseries
-
- Closed
-
-
SERVER-56933 listCollections output should allow user to recreate time-series collections
-
- Closed
-