You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2020/06/23 18:10:46 UTC
[GitHub] [couchdb] teebu opened a new issue #2962: ["error","list_error","not a row 'reset'"]
teebu opened a new issue #2962:
URL: https://github.com/apache/couchdb/issues/2962
[NOTE]: # ( ^^ Provide a general summary of the issue in the title above. ^^ )
## Description
Calling a list function, throws errors. I initially started noticing these error logs. The unusual thing is after refreshing the endpoints the results come back. I talked to someone from couchdb and he thinks the issue sounds like a list function runs but leaves the view server (a couchjs process) in "list" mode, then the next reset (for a map/reduce or something) blows up, as we don't expect it them.
```
[debug] 2020-06-23T03:12:00.194889Z couchdb@127.0.0.1 <0.23278.930> -------- OS Process #Port<0.1239277> Input :: ["reset",{"reduce_limit":true,"timeout":5000}]
[debug] 2020-06-23T03:12:00.196258Z couchdb@127.0.0.1 <0.23278.930> -------- OS Process #Port<0.1239277> Output :: ["error","list_error","not a row 'reset'"]
[error] 2020-06-23T03:12:00.196567Z couchdb@127.0.0.1 <0.10822.931> 6baa7e28d2 OS Process Error <0.23278.930> :: {<<"list_error">>,<<"not a row 'reset'">>}
[info] 2020-06-23T03:12:00.196771Z couchdb@127.0.0.1 <0.27104.924> -------- couch_proc_manager <0.23278.930> died normal
[debug] 2020-06-23T03:56:01.381814Z couchdb@127.0.0.1 <0.10570.941> -------- OS Process #Port<0.1263125> Output :: ["error","list_error","not a row 'ddoc'"]
[error] 2020-06-23T03:56:01.382309Z couchdb@127.0.0.1 <0.20004.938> -------- OS Process Error <0.10570.941> :: {<<"list_error">>,<<"not a row 'ddoc'">>}
[error] 2020-06-23T03:56:01.385312Z couchdb@127.0.0.1 <0.20004.938> -------- gen_server couch_proc_manager terminated with reason: bad return value {<<"list_error">>,<<"not a row 'ddoc'">>}
--
[debug] 2020-06-23T03:56:16.519341Z couchdb@127.0.0.1 <0.1703.942> -------- OS Process #Port<0.1255745> Input :: ["reset",{"reduce_limit":true,"timeout":25000}]
[debug] 2020-06-23T03:56:16.519741Z couchdb@127.0.0.1 <0.1703.942> -------- OS Process #Port<0.1255745> Output :: ["error","list_error","not a row 'reset'"]
[error] 2020-06-23T03:56:16.519924Z couchdb@127.0.0.1 <0.11889.942> 598892c5fa OS Process Error <0.1703.942> :: {<<"list_error">>,<<"not a row 'reset'">>}
```
[NOTE]: # ( Describe the problem you're encountering. )
[TIP]: # ( Do NOT give us access or passwords to your actual CouchDB! )
## Steps to Reproduce
[NOTE]: # ( Include commands to reproduce, if possible. curl is preferred. )
## Expected Behaviour
[NOTE]: # ( Tell us what you expected to happen. )
## Your Environment
[TIP]: # ( Include as many relevant details about your environment as possible. )
[TIP]: # ( You can paste the output of curl http://YOUR-COUCHDB:5984/ here. )
* CouchDB version used:
2.30
* Operating system and version:
Linux running on google cloud.
## Additional Context
Erlang:
20
[TIP]: # ( Add any other context about the problem here. )
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] wohali commented on issue #2962: ["error","list_error","not a row 'reset'"]
Posted by GitBox <gi...@apache.org>.
wohali commented on issue #2962:
URL: https://github.com/apache/couchdb/issues/2962#issuecomment-705590293
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] janl commented on issue #2962: ["error","list_error","not a row 'reset'"]
Posted by GitBox <gi...@apache.org>.
janl commented on issue #2962:
URL: https://github.com/apache/couchdb/issues/2962#issuecomment-660024367
please reopen with sample ddocs if this happens on the systems @wohali mentioned.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] teebu commented on issue #2962: ["error","list_error","not a row 'reset'"]
Posted by GitBox <gi...@apache.org>.
teebu commented on issue #2962:
URL: https://github.com/apache/couchdb/issues/2962#issuecomment-649158145
What does `waiting on user` mean? Is there something more I can provide?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] sinm commented on issue #2962: ["error","list_error","not a row 'reset'"]
Posted by GitBox <gi...@apache.org>.
sinm commented on issue #2962:
URL: https://github.com/apache/couchdb/issues/2962#issuecomment-705554096
... confirmed in v. 3.1.0, `bad_return_value` in `[<<"gen_server:call/3 L223">>,<<"couch_query_servers:ret_os_process/1 L645">>,<<"couch_query_servers:with_ddoc_proc/2 L514">>,<<"chttpd_show:send_doc_update_response/6 L127">>,<<"chttpd:handle_req_after_auth/2 L322">>,<<"chttpd:process_request/1 L305">>,<<"chttpd:handle_request_int/1 L243">>,<<"mochiweb_http:headers/6 L150">>]`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] sinm edited a comment on issue #2962: ["error","list_error","not a row 'reset'"]
Posted by GitBox <gi...@apache.org>.
sinm edited a comment on issue #2962:
URL: https://github.com/apache/couchdb/issues/2962#issuecomment-705626248
@wohali I see, sounds reasonable.
Anyway my test case scenario:
1. make list that responds in chunks relatively slow
2. query list and cancel request silently just after first chunk received
3. request a lot of updates in parallel so all view servers will be busy
4. sometimes single update fails with code 500 returned
EDITED:
2. Or one may query and cancel a list `os_process_limit` times to be sure some updates will fail :)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] janl commented on issue #2962: ["error","list_error","not a row 'reset'"]
Posted by GitBox <gi...@apache.org>.
janl commented on issue #2962:
URL: https://github.com/apache/couchdb/issues/2962#issuecomment-659238520
Ah yes, we’d need all your design docs in the affected db.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] nickva commented on issue #2962: ["error","list_error","not a row 'reset'"]
Posted by GitBox <gi...@apache.org>.
nickva commented on issue #2962:
URL: https://github.com/apache/couchdb/issues/2962#issuecomment-961130167
This was fixed. Closed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] janl commented on issue #2962: ["error","list_error","not a row 'reset'"]
Posted by GitBox <gi...@apache.org>.
janl commented on issue #2962:
URL: https://github.com/apache/couchdb/issues/2962#issuecomment-659238198
hm, I swear I had asked for more info here, but now I’m completely blanking. Sorry for the confusing tag.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] sinm commented on issue #2962: ["error","list_error","not a row 'reset'"]
Posted by GitBox <gi...@apache.org>.
sinm commented on issue #2962:
URL: https://github.com/apache/couchdb/issues/2962#issuecomment-705626248
@wohali I see, sounds reasonable.
Anyway my test case scenario:
1. make list that responds in chunks relatively slow
2. query list and cancel request silently just after first chunk received
3. request a lot of updates in parallel so all view servers will be busy
4. sometimes single update fails with code 500 returned
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] wohali commented on issue #2962: ["error","list_error","not a row 'reset'"]
Posted by GitBox <gi...@apache.org>.
wohali commented on issue #2962:
URL: https://github.com/apache/couchdb/issues/2962#issuecomment-659787923
Can you try a newer version of CouchDB, specifically CouchDB 3.1.0 running on either Ubuntu 20.04 or Debian 10 (or our Docker container)? These have a newer version of CouchJS in them that may affect the results.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] nickva commented on issue #2962: ["error","list_error","not a row 'reset'"]
Posted by GitBox <gi...@apache.org>.
nickva commented on issue #2962:
URL: https://github.com/apache/couchdb/issues/2962#issuecomment-760526610
I was able to reproduce this issue artificially by raising an error the list_cb (list processing callback, called for each row from the view). The the couch_js process stuck in the `getRow` was returned to the process pool. That would be enough to trigger this bug.
The fix is rather simple and it's to only return the process to the pool there were no errors thrown here:
https://github.com/apache/couchdb/blob/main/src/couch/src/couch_query_servers.erl#L532-L534
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] janl closed issue #2962: ["error","list_error","not a row 'reset'"]
Posted by GitBox <gi...@apache.org>.
janl closed issue #2962:
URL: https://github.com/apache/couchdb/issues/2962
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] sinm commented on issue #2962: ["error","list_error","not a row 'reset'"]
Posted by GitBox <gi...@apache.org>.
sinm commented on issue #2962:
URL: https://github.com/apache/couchdb/issues/2962#issuecomment-705510108
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] teebu commented on issue #2962: ["error","list_error","not a row 'reset'"]
Posted by GitBox <gi...@apache.org>.
teebu commented on issue #2962:
URL: https://github.com/apache/couchdb/issues/2962#issuecomment-659777028
I am unable to provide that.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] nickva closed issue #2962: ["error","list_error","not a row 'reset'"]
Posted by GitBox <gi...@apache.org>.
nickva closed issue #2962:
URL: https://github.com/apache/couchdb/issues/2962
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] wohali commented on issue #2962: ["error","list_error","not a row 'reset'"]
Posted by GitBox <gi...@apache.org>.
wohali commented on issue #2962:
URL: https://github.com/apache/couchdb/issues/2962#issuecomment-705590293
We need a full test case before we can consider re-opening this, especially because a] this seems to be a bug back to 1.6.0, which means changing longstanding functionality (even if wrong) and b] list functions are deprecated and slated to be removed in 4.0.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] wohali commented on issue #2962: ["error","list_error","not a row 'reset'"]
Posted by GitBox <gi...@apache.org>.
wohali commented on issue #2962:
URL: https://github.com/apache/couchdb/issues/2962#issuecomment-705755817
Can you give us actual data and a list that reproduces this? Sorry to be a stickler, but we don't have time to create these kinds of synthetic test cases.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] nickva edited a comment on issue #2962: ["error","list_error","not a row 'reset'"]
Posted by GitBox <gi...@apache.org>.
nickva edited a comment on issue #2962:
URL: https://github.com/apache/couchdb/issues/2962#issuecomment-760526610
I was able to reproduce this issue artificially by raising an error the list_cb (list processing callback, called for each row from the view). The the couch_js process stuck in the `getRow` was returned to the process pool. That would be enough to trigger this bug.
The fix is rather simple and it's to only return the process to the pool there were no errors thrown here:
https://github.com/apache/couchdb/blob/main/src/couch/src/couch_query_servers.erl#L532-L534
Thanks for @davisp who helped debug the issue and suggested a fix
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] sinm commented on issue #2962: ["error","list_error","not a row 'reset'"]
Posted by GitBox <gi...@apache.org>.
sinm commented on issue #2962:
URL: https://github.com/apache/couchdb/issues/2962#issuecomment-705510108
@wohali, @janl I may confirm it happens in v. 1.6 too. For me somehow view server stays in list-state waiting for `list_end` or `list_row`, but client asking for `ddoc, new`. I suppose this may be in case of http client that is requesting list suddenly disconnects. Nginx in front of CouchDB logged http code 499 a minute earlier.
Actually a workaround in a view server would be to drop list processing and "redirect" `ddoc, new` command to main loop but this behaviour is against test case "should exit if it gets a non-row in the middle".
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] sinm edited a comment on issue #2962: ["error","list_error","not a row 'reset'"]
Posted by GitBox <gi...@apache.org>.
sinm edited a comment on issue #2962:
URL: https://github.com/apache/couchdb/issues/2962#issuecomment-705626248
@wohali I see, sounds reasonable.
Anyway my test case scenario:
1. make list that responds in chunks relatively slow
2. query list and cancel request silently just after first chunk received
3. request a lot of updates in parallel so all view servers will be busy
4. sometimes single update fails with code 500 returned
EDITED:
2. Or one may query and cancel a list `os_process_limit` times to be sure some updates will fail :)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org