Restrict $text queries from sharded viewless timeseries queries

XMLWordPrintableJSON

    • Query Integration
    • Minor Change
    • 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:
            Gil Alon
            Reporter:
            Gil Alon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: