[MB-7339] index replica enabled by default on upgrade Created: 03/Dec/12  Updated: 06/Nov/13  Resolved: 11/Oct/13

Status: Closed
Project: Couchbase Server
Component/s: ns_server
Affects Version/s: 2.0, 2.0.1, 2.1.0
Fix Version/s: feature-backlog
Security Level: Public

Type: Bug Priority: Major
Reporter: Thuan Nguyen Assignee: Iryna Mironava
Resolution: Incomplete Votes: 0
Labels: ns_server-story, scrubbed
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 (Inactive) [ 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 kzeller [ 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 kzeller [ 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 (Inactive) [ 28/Dec/12 ]
per bug scrub :

moving this to 2.0.2 unless this is a 2.0.1 blocker
Comment by Maria McDuff (Inactive) [ 27/Mar/13 ]
moving to 2.1 release.
Comment by Wayne Siu [ 11/Sep/13 ]
Updated the fix version to 2.2.1 for review.
Comment by Maria McDuff (Inactive) [ 18/Sep/13 ]
iryna,

can you check pls if this issue is also happening in upgrade from 2.0 to 2.2?
Comment by Iryna Mironava [ 19/Sep/13 ]
happens only during upgrade 1.8.1 -> 2.x upgrade. Doesn't happen 2.x -> 2.x upgrade
Comment by Aleksey Kondratenko [ 11/Oct/13 ]
Now that upgrade from 1.8x is not supported anymore. This bug is automagically expired :)
Comment by Iryna Mironava [ 06/Nov/13 ]
per previous comment-closed
Generated at Fri Aug 22 03:07:11 CDT 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.