nickva opened a new pull request #3780:
URL: https://github.com/apache/couchdb/pull/3780


   In the previous attempt [1] we improved the logic by spawning workers on the 
matching target shards only. However, that wasn't enough as workers might still 
reject the passed in sequence from the old node when it asserts ownership
   locally on each shard.
   
   Re-use the already existing replacement clause, where after uuid is matched, 
we try harder to find the highest viable sequence. To use the unit test setup 
as an example, if the moved from `node1` to `node2`, and recorded epoch 
`{node2, 10}`
   on the new node, then a sequence generated on `node1` before the move, for 
example `12`, would rewind down to `10` only when calculated on new location on 
`node2`, instead of being rewound all the way down to `0`.
   
   [1] 
https://github.com/apache/couchdb/commit/e83935c7f8c3e47b47f07f22ece327f6529d4da0
   
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to