Fix sharded timeseries detection in UWE

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • 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();
      

            Assignee:
            Rui Liu
            Reporter:
            Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: