Query stats fails to re-parse query with $text.$language

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • ALL
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The error message is like

      Failed to re-parse query stats store key when reading. Hash: 12217416401367914107, Query Shape: { cmdNs: { db: "test", coll: "fts_querylang" }, command: "update", q: { $text: { $search: "?", $language: "?", $caseSensitive: true, $diacriticSensitive: true } }, u: { $set: { b: 1 } }, multi: true, upsert: false }, full error: {'ok': 0.0, 'errmsg': 'Executor error during aggregate command on namespace: admin.$cmd.aggregate :: caused by :: Failed to re-parse query stats store key when reading. Hash: 12217416401367914107, Query Shape: { cmdNs: { db: "test", coll: "fts_querylang" }, command: "update", q: { $text: { $search: "?", $language: "?", $caseSensitive: true, $diacriticSensitive: true } }, u: { $set: { b: 1 } }, multi: true, upsert: false }', 'code': 435, 'codeName': 'QueryStatsFailedToRecord', 'version': '8.3.0-alpha0-3842-gbf78734', 'cmdObj': {'$queryStats': {}}, 'status': {'code': 2, 'codeName': 'BadValue', 'errmsg': 'unsupported language: "?" for text index version 3'}}

      This issue seems to have been existing prior to the work of SPM-3696. It started to fail only because we enabled query stats on this update command on this file after we supported SERVER-110344 .

      NOTE: Query fuzzer tests should have caught this earlier. Because this bug seems independent of the recent update work.

            Assignee:
            Calvin Nguyen
            Reporter:
            Chi-I Huang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: