Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: recent-builds-2.0
-
Fix Version/s: 2.0-beta-2
-
Component/s: view-engine
-
Security Level: Public
-
Labels:None
-
Environment:build 1762 or repo sync + latest couchdb master
Description
This is reproducible on both build 1762 or repo sync + latest couchdb master
Steps to reproduce:
1. Create default bucket(1 replica) and 1024 vbuckets.
2. Do no load any data
3. Create a view
curl -v -X PUT -H 'Content-Type: application/json' 'http://Administrator:asdasd@127.0.0.1:9500/default/_design/dev_d1' \
-d '{"views":{"v3":{"map":"function(doc){\nemit(doc._id,doc.n2);\n}"}}}'
bash> curl -v -X PUT -H 'Content-Type: application/json' 'http://Administrator:asdasd@127.0.0.1:9500/default/_design/dev_d1' \
> -d '{"views":{"v3":{"map":"function(doc){\nemit(doc._id,doc.n2);\n}"}}}'
* About to connect() to 127.0.0.1 port 9500 (#0)
* Trying 127.0.0.1... connected
* Connected to 127.0.0.1 (127.0.0.1) port 9500 (#0)
* Server auth using Basic with user 'Administrator'
> PUT /default/_design/dev_d1 HTTP/1.1
> Authorization: Basic QWRtaW5pc3RyYXRvcjphc2Rhc2Q=
> User-Agent: curl/7.21.4 (x86_64-unknown-linux-gnu) libcurl/7.21.4 OpenSSL/1.0.1 zlib/1.2.3.4
> Host: 127.0.0.1:9500
> Accept: */*
> Content-Type: application/json
> Content-Length: 67
>
< HTTP/1.1 201 Created
< Server: MochiWeb/1.0 (Any of you quaids got a smint?)
< Location: http://127.0.0.1:9500/default/_design/dev_d1
< Date: Wed, 26 Sep 2012 10:22:40 GMT
< Content-Type: text/plain;charset=utf-8
< Content-Length: 34
< Cache-Control: must-revalidate
<
{"ok":true,"id":"_design/dev_d1"}
* Connection #0 to host 127.0.0.1 left intact
* Closing connection #0
4. Query the view
curl -X GET 'http://Administrator:asdasd@127.0.0.1:9500/default/_design/dev_d1/_view/v3?stale=ok'
* About to connect() to 127.0.0.1 port 9500 (#0)
* Trying 127.0.0.1... connected
* Connected to 127.0.0.1 (127.0.0.1) port 9500 (#0)
* Server auth using Basic with user 'Administrator'
> GET /default/_design/dev_d1/_view/v3?stale=ok HTTP/1.1
> Authorization: Basic QWRtaW5pc3RyYXRvcjphc2Rhc2Q=
> User-Agent: curl/7.21.4 (x86_64-unknown-linux-gnu) libcurl/7.21.4 OpenSSL/1.0.1 zlib/1.2.3.4
> Host: 127.0.0.1:9500
> Accept: */*
>
< HTTP/1.1 500 Internal Server Error
< Server: MochiWeb/1.0 (Any of you quaids got a smint?)
< Date: Wed, 26 Sep 2012 10:29:32 GMT
< Content-Type: text/plain;charset=utf-8
< Content-Length: 48
< Cache-Control: must-revalidate
<
{"error":"error","reason":"inconsistent_state"}
* Connection #0 to host 127.0.0.1 left intact
* Closing connection #0
Following error can be seen in the logs:
[views:debug,2012-09-26T15:54:34.340,n_0@127.0.0.1:<0.12439.0>:capi_view:design_doc_view_loop:56]Got `set_view_outdated` error. Retrying.
[views:debug,2012-09-26T15:54:39.348,n_0@127.0.0.1:<0.12439.0>:capi_view:design_doc_view_loop:56]Got `set_view_outdated` error. Retrying.
[views:debug,2012-09-26T15:54:44.356,n_0@127.0.0.1:<0.12439.0>:capi_view:design_doc_view_loop:56]Got `set_view_outdated` error. Retrying.
[views:debug,2012-09-26T15:54:49.364,n_0@127.0.0.1:<0.12439.0>:capi_view:design_doc_view_loop:56]Got `set_view_outdated` error. Retrying.
[views:debug,2012-09-26T15:54:54.373,n_0@127.0.0.1:<0.12439.0>:capi_view:design_doc_view_loop:56]Got `set_view_outdated` error. Retrying.
[views:debug,2012-09-26T15:54:59.380,n_0@127.0.0.1:<0.12439.0>:capi_view:design_doc_view_loop:56]Got `set_view_outdated` error. Retrying.
[views:debug,2012-09-26T15:55:04.389,n_0@127.0.0.1:<0.12439.0>:capi_view:design_doc_view_loop:56]Got `set_view_outdated` error. Retrying.
[views:debug,2012-09-26T15:55:09.399,n_0@127.0.0.1:<0.12439.0>:capi_view:design_doc_view_loop:56]Got `set_view_outdated` error. Retrying.
[views:debug,2012-09-26T15:55:14.408,n_0@127.0.0.1:<0.12439.0>:capi_view:design_doc_view_loop:56]Got `set_view_outdated` error. Retrying.
Diagnostics are attached.
Activity
- All
- Comments
- Work Log
- History
- Activity
- Gerrit Reviews
Filipe Manana
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Filipe Manana [ FilipeManana ] | Deepkaran Salooja [ deepkaran.salooja ] |
Aleksey Kondratenko
made changes -
| Assignee | Deepkaran Salooja [ deepkaran.salooja ] | Aleksey Kondratenko [ alkondratenko ] |
Aleksey Kondratenko
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
Deepkaran Salooja
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |