Restrict $text queries from sharded viewless timeseries queries

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      $text requires a text index which is not possible for timeseries collections. On mongod we correctly check to see if a text index exists in the collection and correctly raise an error that a text index doesn't exist for timeseries collections. We raise this error when constructing a text match expression here. However, on mongos we do not validate the index exists and create a TextNoOpMatchExpression. For sharded collections viewless timeseries we never construct a real text match expression and therefore never check if the index exists, which is incorrect.

      After this ticket, we should be able to enable timeseries_text_geo_near_disallowed.js in the viewless timeseries suites.

              Assignee:
              Unassigned
              Reporter:
              Gil Alon
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: