Eventing: default value for language_compatibility should be 6.6.2 instead 6.5.0

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

Components

Affects versions

Fix versions

Labels

Environment

None

Link to Log File, atop/blg, CBCollectInfo, Core dump

None

Release Notes Description

None

Activity

Sujay Gad August 18, 2021 at 11:10 AM

Verified and automated using 7.0.1 - 5990.

CB robot July 29, 2021 at 11:01 AM

Build couchbase-server-7.0.1-5970 contains eventing commit eda6c8d with commit message:
https://couchbasecloud.atlassian.net/browse/MB-46647#icft=MB-46647: Set appropriate language_compatibility on /function endpoint

Ritam Sharma July 16, 2021 at 11:27 AM

- Thank you, please add this to 7.0.1.

Jeelan Poola July 12, 2021 at 5:58 AM

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!

CB robot June 16, 2021 at 1:03 PM

Build couchbase-server-7.1.0-1024 contains eventing commit 2d01166 with commit message:
https://couchbasecloud.atlassian.net/browse/MB-46647#icft=MB-46647: Set appropriate language_compatibility on /function endpoint

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Is this a Regression?

Unknown

Triage

Untriaged

Story Points

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created May 31, 2021 at 3:30 PM
Updated August 18, 2021 at 11:10 AM
Resolved July 29, 2021 at 6:50 AM
Instabug