couchbase / CouchbaseMock

A Java mock for Couchbase
Apache License 2.0
64 stars 42 forks source link

Cannot create the primary index on the bucket, failed with timeoutexception #36

Closed yinan-liu closed 6 years ago

yinan-liu commented 6 years ago

Hello, I am encountering an issue while creating the primary index on the bucket.
Below are two ways that i tried to create the index, none of them work, all failed with TimeoutException.

  1. SimpleN1qlQuery simple = N1qlQuery.simple("CREATE PRIMARY INDEX ON bucket"); N1qlQueryResult query = bucket.query(simple);

  2. boolean primaryIndex = bucket.bucketManager().createN1qlPrimaryIndex(true, false);

without index, we cannot test the n1ql queries.

Any suggestions please ? thank you in advance