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

Allow users to set index_path post upgrade to 2.0

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta
    • Fix Version/s: 2.0
    • Component/s: ns_server
    • Security Level: Public
    • Labels:
    • Environment:
      1639

      Description

      Use case:-
      1) Users upgrade to 20 from 181
      2) They decide to separate out partition for indexes. Currently there is no way to configure just index_path without wiping out data_path or reconfiguring the cluster.
      Currently, issuing the data_path command will wipe out the database files.

      One can configure the data path
      curl -d path=/var/tmp/test http://localhost:8091/nodes/self/controller/settings

      This does not seem to work...
      curl -d index_path=/data2 http://localhost:8091/nodes/self/controller/settings

      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        kzeller kzeller added a comment -

        In RN: This enables users to change the disk location of an index without destroying
        persisted data. You can now set index_path and it will delete an existing index only
        and create a new disk location for use.

        Show
        kzeller kzeller added a comment - In RN: This enables users to change the disk location of an index without destroying persisted data. You can now set index_path and it will delete an existing index only and create a new disk location for use.
        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment -

        Andrei so ?

        BTW changing data path after the fact is a bad idea. We don't necessarily handle it well.

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - Andrei so ? BTW changing data path after the fact is a bad idea. We don't necessarily handle it well.
        Hide
        andreibaranouski Andrei Baranouski added a comment -

        build 1820

        verification steps:
        1. 1 node with default bucket and 1 item in it
        2. create 1 view
        3. change index path
        curl --user Administrator:password -d index_path=/tmp/bbbbb/ http://localhost:8091/nodes/self/controller/settings
        observation: view works after indexing, data index location was changed
        4. change index path in second time
        curl --user Administrator:password -d index_path=/tmp/aaaa/ http://localhost:8091/nodes/self/controller/settings
        observation: view works after indexing, data index location was changed on new
        5. change data path
        curl --user Administrator:password -d path=/tmp/data_folder/ http://localhost:8091/nodes/self/controller/settings

        result: view is left on UI for some time but with error on request

        {"error":"not_found","reason":"Design document _design/dev_a not found"}

        after a couple minutes ddoc/view is deleted from ui ( browser cash was expired)

        Show
        andreibaranouski Andrei Baranouski added a comment - build 1820 verification steps: 1. 1 node with default bucket and 1 item in it 2. create 1 view 3. change index path curl --user Administrator:password -d index_path=/tmp/bbbbb/ http://localhost:8091/nodes/self/controller/settings observation: view works after indexing, data index location was changed 4. change index path in second time curl --user Administrator:password -d index_path=/tmp/aaaa/ http://localhost:8091/nodes/self/controller/settings observation: view works after indexing, data index location was changed on new 5. change data path curl --user Administrator:password -d path=/tmp/data_folder/ http://localhost:8091/nodes/self/controller/settings result: view is left on UI for some time but with error on request {"error":"not_found","reason":"Design document _design/dev_a not found"} after a couple minutes ddoc/view is deleted from ui ( browser cash was expired)
        Show
        farshid Farshid Ghods (Inactive) added a comment - http://review.membase.org/#/c/21425/
        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment -

        Looks like simply implementing new API or extending old in some way is the way to go here.

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - Looks like simply implementing new API or extending old in some way is the way to go here.

          People

          • Assignee:
            Aliaksey Artamonau Aliaksey Artamonau
            Reporter:
            karan Karan Kumar (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes