Warning error with no proper message #109

Open
taris opened this Issue Jun 13, 2012 · 3 comments

3 participants

@taris

I am currently struggling with a bulk insert error that is occuring with a small set of documents:

{"error":"case_clause","reason":"{24,43}","stack":["fabric_doc_update:handle_message/3","rexi_utils:process_mailbox/6","rexi_utils:recv/6","fabric_doc_update:go/3","fabric:update_docs/3","chttpd_db:db_req/2","chttpd:handle_request/1","mochiweb_http:headers/5"]},"stack":["fabric_doc_update:handle_message/3","rexi_utils:process_mailbox/6","rexi_utils:recv/6","fabric_doc_update:go/3","fabric:update_docs/3","chttpd_db:db_req/2","chttpd:handle_request/1","mochiweb_http:headers/5"]}

Is there a way to find out what the reason "{24,43}" means (sometimes "{24,499}"). Unfortunately i am not able to reproduce the error every time and all documents are in the database, but it would be very helpful to get a proper message.
The complete size of all documents in that bulk insert is about ~1MB.

Thx alot!

@davisp
Cloudant member

Yeah, that's a bad match. Do you perhaps have a docid repeated in a call to _bulk_docs?

@taris

Sorry, for the late reply!

No, all docids are unique in each call - and the database does respond with an error for a specific document if it already exits - this is, of course, valid.
The interesting part is, that all documents have been created successfully and there are no missing docs. That is why this warning is so disturbing and leaves a "bad taste" :)

@nikita-volkov

Experiencing a similar issue on cloudant. Here's server response:

{
  "stack":["fabric_doc_update:handle_message/3","rexi_utils:process_mailbox/6","fabric_doc_update:go/3","fabric:update_docs/3","chttpd_db:db_req/2","chttpd:handle_request/1","mochiweb_http:headers/5","proc_lib:init_p_do_apply/3"],
  "reason":"{12,18}",
  "error":"case_clause"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment