[MB-6804] Ignore effectless indexable/unindexable state transitions Created: 03/Oct/12  Updated: 26/Oct/12  Resolved: 03/Oct/12

Status: Resolved
Project: Couchbase Server
Component/s: view-engine
Affects Version/s: 2.0-beta
Fix Version/s: 2.0-beta-2
Security Level: Public

Type: Improvement Priority: Major
Reporter: Filipe Manana Assignee: Filipe Manana
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   
During rebalance ns_server keeps asking to mark a group of partitions as indexable when they're all already indexable (or when they're all unindexable already).
This causes updater, compactor and cleaner processes to be restarted, and an header to be built and written to the index file, as the view engine wasn't accounting for such useless calls.

Such effectless and useless calls, should just be a no-op with no side effects.

 Comments   
Comment by Thuan Nguyen [ 03/Oct/12 ]
Integrated in github-couchdb-preview #509 (See [http://qa.hq.northscale.net/job/github-couchdb-preview/509/])
    MB-6804 Ignore effectless indexable/unindexable calls (Revision c11c200c0a9863dc84e08a7a22faf6a16b6e00dc)

     Result = SUCCESS
pwansch :
Files :
* src/couch_set_view/src/couch_set_view_group.erl
Comment by kzeller [ 26/Oct/12 ]
RN: Couchbase Server kept requesting to mark a group of partitions
as indexable when they were already marked as indexable, or when
they are already correctly marked as unindexable. This triggered redundant effort
by processes. It is now fixed.
Generated at Sat Apr 19 18:42:15 CDT 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.