[BP 7.1.5] Fix case_clause issue in stats mapping

Description

There is an XDCR stat that when is requested causes stats_reader process to crash. If this problem continues, it can lead to the node to restart many processes. Refer to original CBSE for more info.

BP of https://couchbasecloud.atlassian.net/browse/MB-55446#icft=MB-55446

 

Issue

Resolution

When the REST API attempted to access unsupported stats, such as meta_latency_wt, "stats_reader" crashed on the ns_server side.

ns_server now returns a "not_found" status when the REST API is called with unsupported stats.

Components

Affects versions

Fix versions

Labels

Environment

None

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

None

Release Notes Description

None

is a backport of

Activity

Show:

CB robot July 27, 2023 at 7:15 PM

Build couchbase-server-8.0.0-1359 contains ns_server commit 1291fd7 with commit message:
[BP] https://couchbasecloud.atlassian.net/browse/MB-57614#icft=MB-57614 Fix case_clause issue in stats

CB robot July 27, 2023 at 7:15 PM

Build couchbase-server-8.0.0-1359 contains ns_server commit 0158e2e with commit message:
https://couchbasecloud.atlassian.net/browse/MB-57614#icft=MB-57614 Merge remote-tracking branch 'couchbase/7.1.x'

CB robot July 27, 2023 at 7:15 PM

Build couchbase-server-8.0.0-1359 contains ns_server commit 4eb03ac with commit message:
Merge "MB-57614 Merge remote-tracking branch 'couchbase/7.1.x'" into neo

CB robot July 26, 2023 at 9:16 PM

Build couchbase-server-7.5.0-4626 contains ns_server commit 1291fd7 with commit message:
[BP] https://couchbasecloud.atlassian.net/browse/MB-57614#icft=MB-57614 Fix case_clause issue in stats

CB robot July 26, 2023 at 9:16 PM

Build couchbase-server-7.5.0-4626 contains ns_server commit 0158e2e with commit message:
https://couchbasecloud.atlassian.net/browse/MB-57614#icft=MB-57614 Merge remote-tracking branch 'couchbase/7.1.x'

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

Details

Assignee

Reporter

Is this a Regression?

Yes

Triage

Triaged

Story Points

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created June 26, 2023 at 6:26 PM
Updated September 19, 2023 at 10:22 AM
Resolved June 26, 2023 at 10:19 PM
Instabug