Security objects for some databases fail to sync properly in a new node after 
all shards are moved from an old node.

## Expected Behavior

Security objects for all databases should sync when shards are moved to a new 
node

## Current Behavior

Security objects for some databases fail to sync properly in a new node after 
all shards are moved from an old node. The log says things like: 

" [error] 2018-09-19T17:24:05.388202Z [email protected] 
<0.19944.2> -------- Bad security object in <<"db-name">>: 
[{{[{<<"_id">>,<<"_security">>},{<<"admins">>,{[{<<"names">>,[]},{<<"roles">>,[]}]}},{<<"members">>,{[{<<"names">>,[<<"user-name">>]},{<<"roles">>,[]}]}}]},13},{{[]},7}]
 "


## Steps to Reproduce (for bugs)
1. Add a new node to the cluster
2. Move All Shards from an old node to this new one
3. Shut down and delete the old node
4. Verify Security Objects on all databases

## Context

We are trying to replace couch cluster instances with new instances as part of 
preparing for a scenario where one instance can go away abruptly

## Your Environment

* Version used: Couch 2.1.2, 3 node cluster



[ Full content available at: https://github.com/apache/couchdb/issues/1611 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to