couchbase / CouchbaseMock

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

"Partition size is not equal after conversion, this is a bug" #29

Open rafaelrocha opened 7 years ago

rafaelrocha commented 7 years ago

Hi there,

I've been trying to setup couchbaseMock on my local machine and I have an issue when the client tries to connect with the bucket which is the "Partition size is not equal after conversion, this is a bug".

I've noticed that the bucket I've created on the mock cluster is of the type "membase" even though I've created with the type "couchbase". Could it be related to the issue above?

Is there anything I'm missing here?

More details below:

The error

Caused by: com.couchbase.client.core.config.ConfigurationException: Could not open bucket.
..
Caused by: com.couchbase.client.core.CouchbaseException: Could not parse configuration
..
Caused by: com.couchbase.client.deps.com.fasterxml.jackson.databind.JsonMappingException: Instantiation of [simple type, class com.couchbase.client.core.config.DefaultCouchbaseBucketConfig] value failed: Partition size is not equal after conversion, this is a bug.

Command used to setup the bucket

curl -XPOST -u Administrator:password     localhost:8091/pools/default/buckets     -d bucketType=couchbase     -d name=api-booking     -d authType=sasl     -d ramQuotaMB=200 

Command to get details of the bucket created

url -u Administrator:password     localhost:8091/pools/default/buckets/api-booking
{"bucketType":"membase", }

Regards,

ohassidi commented 6 years ago

Did you try to run ClientTest class that comes with the project as is?