You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/11/11 22:53:58 UTC

[jira] [Commented] (COUCHDB-3150) Update all shards with stale=update_after

    [ https://issues.apache.org/jira/browse/COUCHDB-3150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15658422#comment-15658422 ] 

ASF GitHub Bot commented on COUCHDB-3150:
-----------------------------------------

GitHub user iilyak opened a pull request:

    https://github.com/apache/couchdb-couch-mrview/pull/60

    Upgrade/downgrade mrargs record

    This is a fixup commit for COUCHDB-3150.
    The issue appear when we run a mixed cluster when some nodes has old
    version of record and others upgraded already.
    We upgrade mrargs record to include version field to be able to
    distinguish different versions of the record. Which would help us
    going forward.
    
    COUCHDB-3150

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cloudant/couchdb-couch-mrview 77984-upgrade-mrargs-record

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/couchdb-couch-mrview/pull/60.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #60
    
----
commit 6c6ac782e4b6c64d77fa86b3e4944df06e99c82e
Author: ILYA Khlopotov <ii...@apache.org>
Date:   2016-11-11T22:45:25Z

    Upgrade/downgrade mrargs record
    
    This is a fixup commit for COUCHDB-3150.
    The issue appear when we run a mixed cluster when some nodes has old
    version of record and others upgraded already.
    We upgrade mrargs record to include version field to be able to
    distinguish different versions of the record. Which would help us
    going forward.
    
    COUCHDB-3150

----


> Update all shards with stale=update_after
> -----------------------------------------
>
>                 Key: COUCHDB-3150
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-3150
>             Project: CouchDB
>          Issue Type: Story
>          Components: Database Core
>            Reporter: Bala Kolla
>
> Stale=update_after should update shards that won't participate in the response due to not being a ushard.
> Discussed with Paul Davis and he suggested the following approach.
> For this ticket we should just need to add a fabric_view:maybe_update_others/3 that we call just after [1,2] with fabric_view:maybe_update_others(DbName, Shards, Args). And then if stable=true and update=(true or lazy) we do mem3:shards(DbName) -- ShardsInvolved, and throw a message at them to trigger an update.
> [1] https://github.com/apache/couchdb-fabric/blob/master/src/fabric_view_map.erl#L27
> [2] https://github.com/apache/couchdb-fabric/blob/master/src/fabric_view_reduce.erl#L28



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)