-
Type:
Task
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Execution
-
Fully Compatible
-
None
-
None
-
None
-
None
-
None
-
None
-
None
I've noticed that in the new UWE we have the following line:
const bool isShardedTimeseries = targeter.isTrackedTimeSeriesNamespace();
I believe this is wrong or at least very confusing, in fact we can have collections that are tracked but unsharded. In order to check if a timeseries collection is sharded, we should:
const bool isShardedTimeseries = targeter.isTrackedTimeSeriesNamespace() && targeter.isTargetedCollectionSharded();
Or even better we can directly use the CRI
const bool isShardedTimeseries = cri.isTimeseriesCollection() && cri.isSharded();