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

          Vinayaka Kamath We need to cherry-pick the fix to CC branch to fix the issue for 7.0.1

          jeelan.poola Jeelan Poola added a comment - Vinayaka Kamath We need to cherry-pick the fix to CC branch to fix the issue for 7.0.1

          Build couchbase-server-7.1.0-1024 contains eventing commit 2d01166 with commit message:
          MB-46647: Set appropriate language_compatibility on /function endpoint

          build-team Couchbase Build Team added a comment - Build couchbase-server-7.1.0-1024 contains eventing commit 2d01166 with commit message: MB-46647 : Set appropriate language_compatibility on /function endpoint

          Ritam SharmaChanabasappa Ghali This is a simple change in REST layer. Fix available in 7.1 already. Will help QE, CI/CD scripts. Request inclusion in 7.0.1. Thank you!

          jeelan.poola Jeelan Poola added a comment - Ritam Sharma Chanabasappa Ghali This is a simple change in REST layer. Fix available in 7.1 already. Will help QE, CI/CD scripts. Request inclusion in 7.0.1. Thank you!
          ritam.sharma Ritam Sharma added a comment -

          Jeelan Poola - Thank you, please add this to 7.0.1.

          ritam.sharma Ritam Sharma added a comment - Jeelan Poola - Thank you, please add this to 7.0.1.

          Build couchbase-server-7.0.1-5970 contains eventing commit eda6c8d with commit message:
          MB-46647: Set appropriate language_compatibility on /function endpoint

          build-team Couchbase Build Team added a comment - Build couchbase-server-7.0.1-5970 contains eventing commit eda6c8d with commit message: MB-46647 : Set appropriate language_compatibility on /function endpoint
          sujay.gad Sujay Gad added a comment -

          Verified and automated using 7.0.1 - 5990.

          sujay.gad Sujay Gad added a comment - Verified and automated using 7.0.1 - 5990.

          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