Regular expression is invalid UTF-8 while enabling mongo backwards-incompatible 4.0 features

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      I have upgraded my mongo QA environment from v3.6 to v4.0.23. I am running sharded cluster with 14 mongos, 3 config servers and 3 shard servers. I have upgraded all three components successfully to v4.0.23.

      Now I am trying execute last step of upgrade v3.6 to v4.0.23 which is enabling backwards-incompatible 4.0 features. But I am getting below error, even if I retried command, restarted mongos, config and shard servers.

      // mongos> db.adminCommand( { setFeatureCompatibilityVersion: "4.0" } )
      {
              "ok" : 0,
              "errmsg" : "Regular expression is invalid UTF-8",
              "code" : 5108300,
              "codeName" : "Location5108300",
              "operationTime" : Timestamp(1621314272, 3),
              "$clusterTime" : {
                      "clusterTime" : Timestamp(1621314272, 3),
                      "signature" : {
                              "hash" : BinData(0,"F/Ukgpx8acf5fBuOtKfw0gyz3L4="),
                              "keyId" : NumberLong("6934901981374840833")
                      }
              }
      }
      

      {{}}

            Assignee:
            Edwin Zhou
            Reporter:
            sandip Divekar
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: