Fix findAndModify check on tracked timeseries collection

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Executing a findAndModify with sort over a timeseries unsharded tracked collection will fail with InvalidOptions error and the following message:

      Cannot perform findAndModify with sort on a sharded timeseries collection
      

      This is wrong because the collection is not sharded. In order to fix this problem, we should fix this check to add !cri.isSharded().

      Also, we should make sure that findAndModify with sort on tracked timeseries collections works properly and that we have correct test coverage.

            Assignee:
            Unassigned
            Reporter:
            Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: