Query timeout using read only when no results found

Description

The linked is marked as resolved however I can still reproduce the issue. The issue is in lcb. It retries the request when read only is true and 0 results are returned.

To reproduce with a real cluster
 

Expected equality of these values:

LCB_SUCCESS
Which is: 0
actual_code__181
Which is: 201
LCB_SUCCESS (0) != LCB_ERR_TIMEOUT (201)

 

Remove lcb_cmdquery_readonly(cmd, 1); and the test passes

Environment

None

Gerrit Reviews

None

Release Notes Description

None

Activity

Show:

CB robot October 8, 2021 at 8:26 AM

Build couchbase-server-7.1.0-1450 contains libcouchbase commit ca01550 with commit message:
: do not retry successful query with empty result

CB robot October 8, 2021 at 8:26 AM

Build couchbase-server-7.1.0-1450 contains libcouchbase commit 92edf6d with commit message:
: skip test for older servers

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

Details

Assignee

Fix versions

Sprint

Story Points

Components

Reporter

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created August 30, 2021 at 11:56 AM
Updated October 8, 2021 at 8:26 AM
Resolved August 31, 2021 at 7:47 PM
Instabug