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

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.8.1-release-candidate
    • Fix Version/s: 1.8.1
    • Component/s: ns_server
    • Security Level: Public
    • Environment:
      181-884-rel

      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

        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.
        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.
        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
        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.
        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
        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.

          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