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
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