Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-5499

data path is reset when node is rebalanced out so 1.8.1behavior will be different when node is added back to the cluster

    Details

      Description

      To reproduce this:-
      1) Set data_path of 2 nodes as /mnt
      storage path after fresh installation of nodes:-
      storage":{"ssd":[],"hdd":[

      {"path":"/mnt","quotaMb":"none","state":"ok"}

      ]}

      2) Rebalance in a node
      after rebalancing in:-
      "storage":{"ssd":[],"hdd":[

      {"path":"/mnt","quotaMb":"none","state":"ok"}

      ]}

      3) Rebalance out a node
      after rebalancing the node out
      "storage":{"ssd":[],"hdd":[

      {"path":"/opt/couchbase/var/lib/couchbase/data"}

      ]]

      4) Rebalance in the same node that is removed
      after rebalancing the node out
      "storage":{"ssd":[],"hdd":[

      {"path":"/opt/couchbase/var/lib/couchbase/data"}

      ]]

      The storage path should get updated to /mnt instead of the default path.

      This is a regression from 180, cross checked this with 180 build.

      1. 10.1.3.114-8091-diag.txt.gz
        62 kB
        Karan Kumar
      2. 10.1.3.115-8091-diag.txt.gz
        81 kB
        Karan Kumar
      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        karan Karan Kumar (Inactive) created issue -
        Hide
        karan Karan Kumar (Inactive) added a comment -

        Conflicting configuration changes to field

        {node,'ns_1@10.1.3.115',memcached}

        :
        [{'_vclock',[{'ns_1@10.1.3.115',{2,63506323521}}]},

        {dedicated_port,11209}, {bucket_engine,"/opt/couchbase/lib/memcached/bucket_engine.so"},
        {engines,
        [{membase,
        [{engine,"/opt/couchbase/lib/memcached/ep.so"}, {initfile,"/opt/couchbase/etc/couchbase/init.sql"}, {static_config_string, "vb0=false;waitforwarmup=false;failpartialwarmup=false;shardpattern=%d/%b-%i.mb;db_strategy=multiMTVBDB"}]},
        {memcached,
        [{engine,"/opt/couchbase/lib/memcached/default_engine.so"}, {static_config_string,"vb0=true"}]}]}, {port,11210},{dedicated_port,11209}

        ,

        {dbdir,"/opt/couchbase/var/lib/couchbase/data"}

        ,

        {admin_user,"_admin"}, {admin_pass,"_admin"}, {verbosity,[]}] and
        [{'_vclock',
        [{'ns_1@10.1.3.115',{1,63506323509}},{'ns_1@127.0.0.1',{3,63506323463}}]}, {dbdir,"/mnt"}, {dedicated_port,11209}, {bucket_engine,"/opt/couchbase/lib/memcached/bucket_engine.so"},
        {engines,
        [{membase,
        [{engine,"/opt/couchbase/lib/memcached/ep.so"}, {initfile,"/opt/couchbase/etc/couchbase/init.sql"}, {static_config_string, "vb0=false;waitforwarmup=false;failpartialwarmup=false;shardpattern=%d/%b-%i.mb;db_strategy=multiMTVBDB"}]},
        {memcached,
        [{engine,"/opt/couchbase/lib/memcached/default_engine.so"}, {static_config_string,"vb0=true"}]}]}, {port,11210},{dedicated_port,11209},{admin_user,"_admin"}

        ,

        {admin_pass,"_admin"}

        ,

        {verbosity,[]}

        ], choosing the former, which looks newer.

        Show
        karan Karan Kumar (Inactive) added a comment - Conflicting configuration changes to field {node,'ns_1@10.1.3.115',memcached} : [{'_vclock', [{'ns_1@10.1.3.115',{2,63506323521}}] }, {dedicated_port,11209}, {bucket_engine,"/opt/couchbase/lib/memcached/bucket_engine.so"}, {engines, [{membase, [{engine,"/opt/couchbase/lib/memcached/ep.so"}, {initfile,"/opt/couchbase/etc/couchbase/init.sql"}, {static_config_string, "vb0=false;waitforwarmup=false;failpartialwarmup=false;shardpattern=%d/%b-%i.mb;db_strategy=multiMTVBDB"}]}, {memcached, [{engine,"/opt/couchbase/lib/memcached/default_engine.so"}, {static_config_string,"vb0=true"}]}]}, {port,11210},{dedicated_port,11209} , {dbdir,"/opt/couchbase/var/lib/couchbase/data"} , {admin_user,"_admin"}, {admin_pass,"_admin"}, {verbosity,[]}] and [{'_vclock', [{'ns_1@10.1.3.115',{1,63506323509}},{'ns_1@127.0.0.1',{3,63506323463}}] }, {dbdir,"/mnt"}, {dedicated_port,11209}, {bucket_engine,"/opt/couchbase/lib/memcached/bucket_engine.so"}, {engines, [{membase, [{engine,"/opt/couchbase/lib/memcached/ep.so"}, {initfile,"/opt/couchbase/etc/couchbase/init.sql"}, {static_config_string, "vb0=false;waitforwarmup=false;failpartialwarmup=false;shardpattern=%d/%b-%i.mb;db_strategy=multiMTVBDB"}]}, {memcached, [{engine,"/opt/couchbase/lib/memcached/default_engine.so"}, {static_config_string,"vb0=true"}]}]}, {port,11210},{dedicated_port,11209},{admin_user,"_admin"} , {admin_pass,"_admin"} , {verbosity,[]} ], choosing the former, which looks newer.
        karan Karan Kumar (Inactive) made changes -
        Field Original Value New Value
        Summary Data path does not get updated on rebalance in a node Data path does not get updated on rebalance in a node (Conflicting configuration changes to field)
        Sprint Status Current Sprint
        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        Aliaksey,

        if this is the new expected behavior we need to document this and notify our users that every time the is rebalanced in/out they have to re-initialze the node otherwise things like data_path or other setting will get reset

        Show
        farshid Farshid Ghods (Inactive) added a comment - Aliaksey, if this is the new expected behavior we need to document this and notify our users that every time the is rebalanced in/out they have to re-initialze the node otherwise things like data_path or other setting will get reset
        farshid Farshid Ghods (Inactive) made changes -
        Summary Data path does not get updated on rebalance in a node (Conflicting configuration changes to field) data path is reset when node is rebalanced out so 1.8.1behavior will be different when node is added back to the cluster
        Hide
        karan Karan Kumar (Inactive) added a comment -

        Not a bug on 181.

        We will have to update all the test in testrunner to do the same.

        Show
        karan Karan Kumar (Inactive) added a comment - Not a bug on 181. We will have to update all the test in testrunner to do the same.
        karan Karan Kumar (Inactive) made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Won't Fix [ 2 ]
        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment -

        This is old expected behavior. But 1.8.0 (and some releases before that) got it wrong

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - This is old expected behavior. But 1.8.0 (and some releases before that) got it wrong
        karan Karan Kumar (Inactive) made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Aleksey Kondratenko [ alkondratenko ] Karan Kumar [ karan ]
        karan Karan Kumar (Inactive) made changes -
        Resolution Won't Fix [ 2 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Assignee Karan Kumar [ karan ] MC Brown [ mccouch ]
        karan Karan Kumar (Inactive) made changes -
        Labels 1.8.1-release-notes
        Component/s documentation [ 10012 ]
        Hide
        karan Karan Kumar (Inactive) added a comment -

        Assigning this to MC to add this to the release notes.

        When nodes are rebalanced out from 181 cluster, their are going to reset to default data path, users have to reinitialize it, before adding it back.

        Show
        karan Karan Kumar (Inactive) added a comment - Assigning this to MC to add this to the release notes. When nodes are rebalanced out from 181 cluster, their are going to reset to default data path, users have to reinitialize it, before adding it back.
        peter peter made changes -
        Sprint Status Current Sprint
        Hide
        mccouch MC Brown (Inactive) added a comment -

        Documentation updated and the release notes written.

        Show
        mccouch MC Brown (Inactive) added a comment - Documentation updated and the release notes written.
        mccouch MC Brown (Inactive) made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        farshid Farshid Ghods (Inactive) made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            mccouch MC Brown (Inactive)
            Reporter:
            karan Karan Kumar (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes