Details
-
Bug
-
Resolution: Fixed
-
Critical
-
5.0.0
-
Untriaged
-
Centos 64-bit
-
-
Yes
Description
Query throughput has dramatically decreased after infamous changes from ns_server changes that got merged on Saturday.
Although all queries succeed, I noticed that HTTP access logs are spammed with records like this:
127.0.0.1 - - [27/Feb/2017:15:19:48 -0800] "POST /_cbauth HTTP/1.1" 401 0 - Go-http-client/1.1
|
Then I noticed that each query triggers two cbauth requests:
POST /_cbauth HTTP/1.1
|
Host: 127.0.0.1:8091
|
User-Agent: Go-http-client/1.1
|
Content-Length: 0
|
Authorization: Basic YnVja2V0LTE6cGFzc3dvcmQ=
|
Accept-Encoding: gzip
|
|
HTTP/1.1 200 OK
|
Server: Couchbase Server
|
Pragma: no-cache
|
Date: Mon, 27 Feb 2017 22:57:08 GMT
|
Content-Type: application/json
|
Content-Length: 37
|
Cache-Control: no-cache
|
{"user":"bucket-1","source":"bucket"}
|
and
POST /_cbauth HTTP/1.1
|
Host: 127.0.0.1:8091
|
User-Agent: Go-http-client/1.1
|
Content-Length: 0
|
Authorization: Basic Og==
|
Accept-Encoding: gzip
|
|
HTTP/1.1 401 Unauthorized
|
WWW-Authenticate: Basic realm="Couchbase Server Admin / REST"
|
Server: Couchbase Server
|
Pragma: no-cache
|
Date: Mon, 27 Feb 2017 22:57:08 GMT
|
Content-Length: 0
|
Cache-Control: no-cache
|
The first request corresponds to "bucket-1:password" credentials (base64 encoded), the second requests correspond to empty ":" credentials (again, base64 encoded).
Here is my query:
curl -XPOST -H "Content-type: application/json" http://bucket-1:password@172.23.132.16:8093/query -d '{"args": ["80e1ef-000000000001"], "prepared": "feb60501-1f6c-4767-b161-57d74814cf9a"}'
|
I have no idea where those empty creds come from.