UpsertDesignDocument requests routed to wrong bucket

Description

Was getting errors(design document not found) when running design document upsert to programmable add view indexes. Started going through the code and found out the path request was including the bucket name at the beginning of the path. Worked after testing adding the bucket name

bucket_viewindexes.go line 342
Path: fmt.Sprintf("/_design/%s", ddocName),
should be Path: fmt.Sprintf("/%s/_design/%s", bucketName, ddocName),

Environment

None

Gerrit Reviews

None

Release Notes Description

None

Activity

Show:

CB robot November 23, 2021 at 11:21 AM

Build couchbase-server-7.1.0-1767 contains gocb commit 625accf with commit message:
: Route bucket level http requests to agents not agent group

CB robot March 17, 2021 at 11:20 AM

Build couchbase-server-7.0.0-4715 contains gocb commit 625accf with commit message:
: Route bucket level http requests to agents not agent group

CB robot January 4, 2021 at 10:01 PM

Build sync_gateway-3.0.0-96 contains gocb commit 625accf with commit message:
: Route bucket level http requests to agents not agent group

Charles Dixon December 3, 2020 at 5:55 PM
Edited

Actually, I believe this to be an issue in its own right. Exhbiting the same problem as the other issue but via a different avenue - requests get sent to the agent group which mean they are not routed via the agent and therefore can go to incorrect endpoints.

Charles Dixon December 3, 2020 at 5:27 PM

OK thanks I believe that I understand what the issue is now. I'm going to resolve this issue as not a bug because the behaviour on the view manager side is correct. I will add more detail in the other ticket about what is happening.

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

Details

Assignee

Reporter

Story Points

Fix versions

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created December 2, 2020 at 4:13 PM
Updated November 23, 2021 at 11:21 AM
Resolved December 7, 2020 at 9:07 AM
Instabug