Details
Description
Version
-------
cbft v0.3.1
Steps
1. Created a bucket default and loaded 10 wiki docs.
2. Created index named wiki-index, all 10 docs got indexed.
3. Deleted bucket and recreated another default bucket and loaded 100K wiki docs.
4. Accessing wiki-index threw "Index is closed" for which I filed MB-16542.
5. So I then tried to "update" wiki-index pointing to the new bucket, cbft threw an error saying-
2015/10/13 15:33:21 rest: error code: 400, msg: rest_create_index: error creating index: wiki-index, err: manager_api: perhaps there was concurrent index definition update - mismatched index UUID, indexName: wiki-index, prevIndex.UUID: bac9491eaaf589f5, prevIndexUUID: 2b7402db9599333d
Q. Should updation of source bucket not be allowed?
6. I then tried to delete wiki-index. It took a while but eventually got deleted(atleast went missing from UI) although I cannot find a log stmt stating that.
7. I then tried to recreate the same index again when I hit this error -
2015/10/13 15:38:00 rest: error code: 400, msg: rest_create_index: error creating index: wiki_index, err: manager_api: index exists, indexName: wiki_index
8. I gave it a few secs thinking the deletion was not complete yet. I then saw an entry appear on UI. Clicking on it, threw an error "not an index".
2015/10/13 15:38:23 rest: error code: 400, msg: rest_index: Count, no pindexImplType, indexName: wiki_index, err: pindex_impl: no indexDef, indexName: wiki_index
2015/10/13 15:38:23 rest: error code: 400, msg: not an index
2015/10/13 15:39:07 rest: error code: 400, msg: rest_create_index: error creating index: wiki-index, err: manager_api: index exists, indexName: wiki-index
9. At this point, I thought the index wasn't ready yet. After a few secs, I started seeing another error stating queries are disabled on the index, although the manage tab shows "enabled".
2015/10/13 15:39:14 rest: error code: 500, msg: rest_index: Count, indexName: wiki-index, err: bleve: CountBlevePIndexImpl indexAlias error, indexName: wiki-index, indexUUID: , err: bleve: bleveIndexAlias, err: pindex: queries may have been disabled; no nodes are enabled/allocated to serve queries for the index partition(s)
:
:
2015/10/13 15:55:10 rest: error code: 500, msg: rest_index: Count, indexName: wiki-index, err: bleve: CountBlevePIndexImpl indexAlias error, indexName: wiki-index, indexUUID: , err: bleve: bleveIndexAlias, err: pindex: queries may have been disabled; no nodes are enabled/allocated to serve queries for the index partition(s)
The index was not in a usable state even after 15 mins.
The last event logged is -
Event Name Time
stopFeed wiki-index_2b7402db9599333d 2015-10-13T15:19:47.54352624-07:00