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

JS UDF: Even if the java script function fails, it returns status:success

    XMLWordPrintable

Details

    • Bug
    • Resolution: User Error
    • Major
    • 7.1.0
    • 7.1.0
    • js-evaluator, query
    • None
    • Untriaged
    • 1
    • Unknown

    Description

      {'statement': 'EXECUTE FUNCTION doDelivery(1,6,"2022-01-07 12:02:40.176581")', 'creds': '[

      {"user":"Administrator","pass":"password"}

      ]'}

      {'requestID': '62778d0c-d098-440f-8f16-5758f22cff37', 'signature': None, 'results': [

      {'message': 'Active iterator limit of 10 reached. Close unused iterators and retry', 'stack': 'Error\n    at doNewOrder (functions/n1qltpcc2.js:266:26)'}

      ], 'status': 'success', 'metrics': {'elapsedTime': '42.65754ms', 'executionTime': '42.616851ms', 'resultCount': 1, 'resultSize': 150, 'serviceLoad': 3, 'transactionElapsedTime': '40.41933ms', 'transactionRemainingTime': '14.959571198s'}}

       

      The message says: Active iterator limit of 10 reached. Close unused iterators and retry

      It means nothing got executed, but it also says:'status': 'success'. 

       

      Attachments

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

        Activity

          People

            kamini.jagtiani Kamini Jagtiani
            kamini.jagtiani Kamini Jagtiani
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty