[N1QL UDF] : Implement defs.CheckMixedModeCallback for mixed mode checks

Description

For cases like https://couchbasecloud.atlassian.net/browse/MB-50350#icft=MB-50350 , there is a requirement in js-evaluator where create library / update library operations should not be allowed in a mixed mode cluster.

Hence, js-evaluator needs a callback to check for a mixedmode cluster.

We've exposed a callback defs.DefaultCheckMixedModeCallback (which by default always returns false). Query, being the embedder should implement this callback returning a boolean indicating whether the cluster is mixed mode or not.

Components

Affects versions

Fix versions

Labels

Environment

None

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

None

Release Notes Description

None

Activity

Show:

Marco Greco February 11, 2022 at 5:00 PM

This MB probably requires ns_server changes, so it's not a given that we code code in time for Neo.
There is currently alternative code.
Also not a given that a callback approach actually works, because N1QL() might have to poll ns_server to collect the required information.

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

Details

Assignee

Reporter

Is this a Regression?

No

Triage

Untriaged

Story Points

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created February 11, 2022 at 1:11 PM
Updated November 14, 2024 at 6:20 PM
Instabug