Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0.1
-
None
-
None
Description
Currently, the replicator might crash when trying to read a doc from a remote DB. This is due unmatched clauses in a function. Example:
-
- Last message in was {'DOWN',#Ref<0.0.0.687>,process,<0.216.0>,
{function_clause,
[{couch_rep_reader,'open_doc_revs/3-fun-1',
[Unknown macro: {[{<<"error">>,<<"unauthorized">>}, {<<"reason">>,<<"Authentication required.">>}]},
- Last message in was {'DOWN',#Ref<0.0.0.687>,process,<0.216.0>,
The following patch avoids that the replicator crashes in this case and adds a useful error log message as well.
Is anyone against applying this to trunk and 1.0.x? Adam?