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

Eventing: default value for language_compatibility should be 6.6.2 instead 6.5.0

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • Unknown

    Description

      Build: 7.0.0 build 5247

      Create a handler without language_compatibility

      curl --location --request POST 'http://172.23.106.123:8096/api/v1/functions/perf-test2' \
      --header 'Authorization: Basic QWRtaW5pc3RyYXRvcjpwYXNzd29yZA==' \
      --header 'Content-Type: application/json' \
      --data-raw '[
          {
              "depcfg": {
                  "buckets": [
                      {
                          "alias": "bucket1",
                          "bucket_name": "eventing-bucket-1",
                          "scope_name": "scope-1",
                          "collection_name": "collection-1"
                      }
                  ],
                  "metadata_bucket": "eventing",
                  "metadata_scope": "scope-1",
                  "metadata_collection": "collection-1",
                  "source_bucket": "bucket-1",
                  "source_scope": "scope-1",
                  "source_collection": "collection-1"
              },
              "code_path": "tests/eventing/code/bktop.js",
              "settings": {
                  "worker_count": 24,
                  "log_level": "INFO",
                  "dcp_stream_boundary": "everything",
                  "processing_status": true,
                  "deployment_status": true,
                  "enable_recursive_mutation": true,
                  "cpp_worker_thread_count": 2,
                  "breakpad_on": false,
                  "description": "Perf test"
              },
              "appname": "perf-test2",
              "appcode": "function OnUpdate(doc, meta) {\n}\nfunction OnDelete(doc) {\n}",
              "actionsVisible": true
          }
      ]' 

      language_compatibility set as 6.5.0 it should be 6.6.2

      curl --location --request GET 'http://172.23.106.123:8096/api/v1/functions/perf-test2' \--header 'Authorization: Basic QWRtaW5pc3RyYXRvcjpwYXNzd29yZA=='
       
      {    "appcode": "function OnUpdate(doc, meta) {\n}\nfunction OnDelete(doc) {\n}",    "depcfg": {        "buckets": [            {                "alias": "bucket1",                "bucket_name": "eventing-bucket-1",                "scope_name": "scope-1",                "collection_name": "collection-1",                "access": "rw"            }        ],        "source_bucket": "bucket-1",        "source_scope": "scope-1",        "source_collection": "collection-1",        "metadata_bucket": "eventing",        "metadata_scope": "scope-1",        "metadata_collection": "collection-1"    },    "version": "evt-7.0.0-5247-ee",    "enforce_schema": false,    "handleruuid": 2424289197,    "function_instance_id": "0LBt83",    "appname": "perf-test2",    "settings": {        "breakpad_on": false,        "cpp_worker_thread_count": 2,        "dcp_stream_boundary": "everything",        "deployment_status": true,        "description": "Perf test",        "enable_recursive_mutation": true,        "language_compatibility": "6.5.0",        "log_level": "INFO",        "num_timer_partitions": 128,        "processing_status": true,        "worker_count": 24    }} 

      Note: This will not happen via UI

      Attachments

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

        Activity

          People

            abhishek.jindal Abhishek Jindal
            vikas.chaudhary Vikas Chaudhary
            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