Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-41222

[UDF] js-evaluator crash

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 7.0.0
    • Cheshire-Cat
    • js-evaluator
    • 1

    Description

      If the javascript function calls json.parse() on an input parameter, and the input is not json, js-evaluator will crash.

      If the javascript function has syntax error, js-evaluator will crash.

      I have also seen js-evaluator crashing after it running for a few weeks using the following function:

      function test (key, sourceDoc, sourceCas, sourceId, targetDoc, targetCas, targetId)

      { let res =

      {"key": key, "sourceCas": sourceCas, "sourceId": sourceId, "targetCas": targetCas, "targetId": targetId}

      ;

      return JSON.stringify(res)

      }

       

      Once it crashes, the js-evaluator client goes into loop logging errors about transient error connection refused.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            abhishek.jindal Abhishek Jindal
            lilei.chen Lilei Chen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty