Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Duplicate
-
Affects Version/s: 2.0-developer-preview-3
-
Fix Version/s: 2.0-developer-preview-4
-
Component/s: view-engine
-
Security Level: Public
-
Labels:
-
Environment:centos 5.4 64 bit
3 nodes
r-378
Description
1) cluster 2 nodes together
2) add 100 json items
3) create a simple view with _count reduce
4) verify that all items are returned in the view
5) start to rebalance in a 3rd node, while at the same time start deleting all the keys
6) wait till both rebalance and deletes are done
7) verify that all items are deleted from memcached
8) verify that all items are gone from the view
at this point in my test I had 7 items left
2) add 100 json items
3) create a simple view with _count reduce
4) verify that all items are returned in the view
5) start to rebalance in a 3rd node, while at the same time start deleting all the keys
6) wait till both rebalance and deletes are done
7) verify that all items are deleted from memcached
8) verify that all items are gone from the view
at this point in my test I had 7 items left
-
- logs_deletion.tar.bz2
- 19/Jan/12 7:44 PM
- 316 kB
- Aliaksey Artamonau
-
Hide
- logs.zip
- 18/Jan/12 1:23 PM
- 8.51 MB
- Mike Wiederhold
-
- logs/n_0/errors.1 10.00 MB
- logs/n_0/errors.2 8.79 MB
- logs/n_0/errors.idx 0.0 kB
- logs/n_0/errors.siz 0.0 kB
- logs/n_0/log.1 9.99 MB
- logs/n_0/log.2 9.99 MB
- logs/n_0/log.3 10.00 MB
- logs/n_0/log.4 10.00 MB
- logs/n_0/log.5 10.00 MB
- logs/n_0/log.6 10.00 MB
- logs/n_0/log.7 9.90 MB
- logs/n_0/log.idx 0.1 kB
- logs/n_0/log.siz 0.0 kB
- logs/n_1/errors.1 10.00 MB
- logs/n_1/errors.2 8.48 MB
- logs/n_1/errors.idx 0.0 kB
- logs/n_1/errors.siz 0.0 kB
- logs/n_1/log.1 9.99 MB
- logs/n_1/log.2 10.00 MB
- logs/n_1/log.3 10.00 MB
- logs/n_1/log.4 10.00 MB
- logs/n_1/log.5 6.18 MB
- logs/n_1/log.idx 0.0 kB
- logs/n_1/log.siz 0.0 kB
- logs/n_2/errors.1 1.90 MB
- logs/n_2/errors.idx 0.0 kB
- logs/n_2/errors.siz 0.0 kB
- logs/n_2/log.1 10.00 MB
- logs/n_2/log.2 5.77 MB
- logs/n_2/log.idx 0.0 kB
Activity
- All
- Comments
- Work Log
- History
- Activity
- Gerrit Reviews
Hide
Permalink
Aliaksey Artamonau
added a comment -
It seems like an ep-engine issue. Was able to reproduce it with 2 and 3 node clusters. Just created 10k items and then deleted them while rebalancing in a new node. Waited till rebalance was complete. After this from time to time cbstats reported non-zero number of active items on the old node. Sometimes it reported zero active items but non-zero replica items. Although all the items were not accessible via memcached. But the items were present in couchdb and thus visible to views. Mike, sync up with Chiyoung on this issue please.
Show
Aliaksey Artamonau
added a comment - It seems like an ep-engine issue. Was able to reproduce it with 2 and 3 node clusters. Just created 10k items and then deleted them while rebalancing in a new node. Waited till rebalance was complete. After this from time to time cbstats reported non-zero number of active items on the old node. Sometimes it reported zero active items but non-zero replica items. Although all the items were not accessible via memcached. But the items were present in couchdb and thus visible to views. Mike, sync up with Chiyoung on this issue please.
Hide
Karan Kumar
added a comment -
Thanks Aliaksey. This is definitely an issue currently.
I was able to easily reproduce this. After rebalance, the active_items != replica_items.
Will open another bug.
I was able to easily reproduce this. After rebalance, the active_items != replica_items.
Will open another bug.
Show
Karan Kumar
added a comment - Thanks Aliaksey. This is definitely an issue currently.
I was able to easily reproduce this. After rebalance, the active_items != replica_items.
Will open another bug.
Hide
Karan Kumar
added a comment -
For reproducing this:-
1) Keep delete workload going in parallel
2) Issue rebalance of nodes in.
1) Keep delete workload going in parallel
2) Issue rebalance of nodes in.
Show
Karan Kumar
added a comment - For reproducing this:-
1) Keep delete workload going in parallel
2) Issue rebalance of nodes in.
Hide
Mike Wiederhold
added a comment -
This issue is caused by an error in views. I was able to verify that there were no items in couchdb after my deleting everything, but my view still reported having items. Alaiksey was able to produce a scenario however where active/replica item counts were not 0 so I will look into that issue. It is filed as MB-4661.
Show
Mike Wiederhold
added a comment - This issue is caused by an error in views. I was able to verify that there were no items in couchdb after my deleting everything, but my view still reported having items. Alaiksey was able to produce a scenario however where active/replica item counts were not 0 so I will look into that issue. It is filed as MB-4661 .
Hide
Aliaksey Artamonau
added a comment -
Attaching more log files. From ns_server perspective everything looks fine. On all the nodes correct vbucket are indexed. I also verified that update_seqs reported by couch_set_view:get_group_info and by couch_db:get_update_seq are the same.
Show
Aliaksey Artamonau
added a comment - Attaching more log files. From ns_server perspective everything looks fine. On all the nodes correct vbucket are indexed. I also verified that update_seqs reported by couch_set_view:get_group_info and by couch_db:get_update_seq are the same.
Show
Aliaksey Artamonau
added a comment - Assigning to Filipe for further investigation.
Hide
Damien Katz
added a comment -
Was able to reproduce, but haven't been able to spend a lot of time on it yet. Filipe is also looking at it.
Show
Damien Katz
added a comment - Was able to reproduce, but haven't been able to spend a lot of time on it yet. Filipe is also looking at it.
Hide
Damien Katz
added a comment -
This appears to be a duplicate of MB-4692. It appears that some vbuckets aren't properly cleaned/omitted from view indexes.
Show
Damien Katz
added a comment - This appears to be a duplicate of MB-4692 . It appears that some vbuckets aren't properly cleaned/omitted from view indexes.
Show
Filipe Manana
added a comment - http://review.couchbase.org/#change,12767 fixes it
Hide
Farshid Ghods
added a comment -
viewtests.ViewRebalanceTests.test_delete_x_docs_rebalance_in 1 min 43 sec Fixed
viewtests.ViewRebalanceTests.test_delete_x_docs_rebalance_out 1 min 53 sec Fixed
viewtests.ViewRebalanceTests.test_load_x_during_rebalance 6 min 17 sec Fixed
viewtests.ViewRebalanceTests.test_view_stop_start_incremental_rebalance
build : 2.0.0r-643-g4e529d3
viewtests.ViewRebalanceTests.test_delete_x_docs_rebalance_out 1 min 53 sec Fixed
viewtests.ViewRebalanceTests.test_load_x_during_rebalance 6 min 17 sec Fixed
viewtests.ViewRebalanceTests.test_view_stop_start_incremental_rebalance
build : 2.0.0r-643-g4e529d3
Show
Farshid Ghods
added a comment - viewtests.ViewRebalanceTests.test_delete_x_docs_rebalance_in 1 min 43 sec Fixed
viewtests.ViewRebalanceTests.test_delete_x_docs_rebalance_out 1 min 53 sec Fixed
viewtests.ViewRebalanceTests.test_load_x_during_rebalance 6 min 17 sec Fixed
viewtests.ViewRebalanceTests.test_view_stop_start_incremental_rebalance
build : 2.0.0r-643-g4e529d3