Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-47168

ensure replication of the system.js collection in system_js_access test

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • ALL
    • Query 2020-05-04
    • 32

      The error occurs in a hedge read that goes to secondary before the collection that contains js function definition is replicated:

      assert: command did not fail with any of the following codes [ 4649200 ] {
      "ok" : 0,
      "errmsg" : "Encountered non-retryable error during query :: caused by :: ReferenceError: isAdult is not defined :\n@:1:15\n",
      "code" : 139,
      "codeName" : "JSInterpreterFailure",
      "operationTime" : Timestamp(1585298452, 13),
      "$clusterTime" : {
      "clusterTime" : Timestamp(1585298452, 13),
      "signature" : {
      "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
      "keyId" : NumberLong(0)
      }
      }
      }
      

      A possible quick fix is to ensure the insert of js function is replicated.

            Assignee:
            david.percy@mongodb.com David Percy
            Reporter:
            misha.tyulenev@mongodb.com Misha Tyulenev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: