[JCBC-213] IllegalArgumentException when calling vBucket-related methods Created: 17/Jan/13  Updated: 18/Jan/13  Resolved: 18/Jan/13

Status: Resolved
Project: Couchbase Java Client
Component/s: Core
Affects Version/s: 1.1.0
Fix Version/s: 1.1.1
Security Level: Public

Type: Bug Priority: Minor
Reporter: Mark Nunberg Assignee: Michael Nitschinger
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   
Getting an "TODO: Implement this" when calling CouchbaseConnectionFactory.getVbucketConfig().getVbucketsCount() and the bucket is a memcached bucket.

While the failure is understandable, the exception thrown should be different.

I'm not sure if this has always been the behavior or it was introduced into the 1.1.x version.

the file from which the exception is thrown;

src/main/java/com/couchbase/client/vbucket/config/CacheConfig.java

Looking at the commit log on that file, it seems to be some older "configuration" class - and doesn't seem to have changed significantly since.

 Comments   
Comment by Michael Nitschinger [ 18/Jan/13 ]
I'll change it into a UnsupportedOperationException with an appropriate message.
Generated at Tue Sep 02 09:07:22 CDT 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.