[MB-7339] need an API to control replica-index config per bucket ( disable or enable ) Created: 03/Dec/12  Updated: 27/Mar/13

Status: Open
Project: Couchbase Server
Component/s: ns_server
Affects Version/s: 2.0, 2.0.1, 2.0.2
Fix Version/s: 2.1
Security Level: Public

Type: Bug Priority: Major
Reporter: Thuan Nguyen Assignee: Aleksey Kondratenko
Resolution: Unresolved Votes: 0
Labels: 2.0-release-notes, system-test
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment: Windows 2008 R2 64bit

Attachments: PNG File ss_2012-12-03_at_3.13.49 PM.png    

 Description   
Online upgrade 5 nodes cluster from 1.8.1
Create default bucket with one replica
Load 20 million items to this default bucket. Data path is set to c:/data
10.3.2.11
10.3.2.12
10.3.2.16
10.3.2.10
10.3.2.75

Online upgrade to 2.0.0-1971
Final cluster upgraded to 2.0.0-1971

10.3.2.11
10.3.2.16
10.3.2.75
10.3.2.76
10.3.2.77

Replica index is automatically enable in default bucket as in picture.


 Comments   
Comment by Farshid Ghods [ 03/Dec/12 ]
not sure if this is something that has to be fixed , just filing it under expected behaviors.
Comment by Aleksey Kondratenko [ 03/Dec/12 ]
Indeed. There's no replica_index property at all but we treat any value (even undefined) other than false as "enabled". A bit unfortunate imho.

If we don't fix it before 2.0 we'll have to keep this behavior in all future versions.
Comment by Steve Yen [ 04/Dec/12 ]
per-bug scrub, moved to 2.0.1, looks like for 2.0.1 we need new API's to control replica-index config?
Comment by Karen Zeller [ 05/Dec/12 ]
Added to RN as: By default when you perform a new install of Couchbase Server 2.0,
        creating a replica index for a data bucket is disabled by default.
        This should be the standard default setting for all new installs of the
        server. However, when you upgrade from 1.8.1 to 2.0, be aware it is
        erroneously enabled by default.
Comment by Karen Zeller [ 05/Dec/12 ]
Added to RN as: By default when you perform a new install of Couchbase Server 2.0,
        creating a replica index for a data bucket is disabled by default.
        This should be the standard default setting for all new installs of the
        server. However, when you upgrade from 1.8.1 to 2.0, be aware it is
        erroneously enabled by default.
Comment by Farshid Ghods [ 28/Dec/12 ]
per bug scrub :

moving this to 2.0.2 unless this is a 2.0.1 blocker
Comment by Maria McDuff [ 27/Mar/13 ]
moving to 2.1 release.
Generated at Sun May 19 10:56:42 CDT 2013 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.