Details
Description
1. Install CB server on a single node with kv + index + n1ql services.
2. Create a bucket default
3. Create primary index on default bucket and populate it with documents.
Use command - ./cbworkloadgen
4. Create secondary index on the fields of documents in default bucket. - There are 4 indexes - 1 primary and 3 secondary
5. Verify that UI shows up the index and build % as 100%
6. Simply flush the bucket
– At this point of time there should not be any data for index.
Expected Result - Build % should come to 0
7. Now create documents in default bucket with same fields for which secondary index should be created.
– At this point of time the index should start building. You can use cbworkloadgen to add large set of data here.
Used following command for 7th step:
[root@centos-64-x64 bin]# ./cbworkloadgen -n localhost:8091 -i 500000 -r .2 -s 10 -j
Expected Result - UI should show actual Build % since the indexer would be building index.