Retry failures in couch_mrview_compactor:recompact

Currently, if there's an error in the spawned couch_index_updater:update
process, the receive block will not match the message, and the calling
process will block forever.

This commit changes the receive pattern to match both successful updates
as well as errors, logging the errors, and retrying the recompact a
configurable number of times. If the configured retry count is exceeded,
it logs an error, and returns the original state.

COUCHDB-3184
1 file changed
tree: 3ad51e3c774ba1ef2ff9b3317dd2bcf9064c97e2
  1. include/
  2. priv/
  3. src/
  4. test/
  5. .travis.yml
  6. LICENSE