Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 76 commits
  • 76 files changed
  • 0 comments
  • 3 contributors
Feb 01, 2012
Mike Wiederhold Changed spy jar configuration to default
We changed this in spymemcached during the release so that it would
be added as a normal compile time dependency for users who add the
spy dependency to their pom files. I changed it in the pom config but
not in the project config that we use for development.

Change-Id: I34175919faec283d993a57f9a2b5f15646ccce0b
Reviewed-on: http://review.couchbase.org/12841
Reviewed-by: Raghavan N. Srinivas <raghavan.srinivas@gmail.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
1a3c1cf
Feb 06, 2012
Rags Added unlock operation
Based on patch submitted by Brent Ryan.

Change-Id: I9a30f21108fcbbd43add4abd2f16af05a3fbe68b
Reviewed-on: http://review.couchbase.org/12907
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Raghavan N. Srinivas <raghavan.srinivas@gmail.com>
a606674
Feb 08, 2012
Rags Fixes for adding only hostname instead of both hostname and ip address
Change-Id: Ieae49545e1c08f2cb9155f926015046a787c0f5b
Reviewed-on: http://review.couchbase.org/13046
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
8ba2619
Feb 13, 2012
Mike Wiederhold Fixed checkstyle issues.
Change-Id: I767ed66a6c3b36016300448a2075ada7071dfbae
Reviewed-on: http://review.couchbase.org/13082
Reviewed-by: Raghavan N. Srinivas <raghavan.srinivas@gmail.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
b464e08
Feb 20, 2012
Matt Ingenthron Depend on spymemcached 2.8.1-SNAPSHOT.
I've pushed a tag to the first commit on spymemcached after
the last release, verified that it's building/installing
with the snapshot tag.  Then based this on it.  We need
to release them in order, obviously.

Seems like the best flexibility for now with how things are
changing.

Change-Id: I8edc64963b074fe558a8e4cd42b3ff9e0af26dc2
Reviewed-on: http://review.couchbase.org/13372
Tested-by: Matt Ingenthron <matt@couchbase.com>
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
4a38b26
Mike Wiederhold Use TapStream abstraction in spymemcached
This will allow our tap streams to be able to connect to
all node in the cluster.

Change-Id: I233a8fc96bb55cf12e73e40f46281dd3870004b5
Reviewed-on: http://review.couchbase.org/13083
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Reviewed-by: Raghavan N. Srinivas <raghavan.srinivas@gmail.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
7d9b64a
Mike Wiederhold Use TapAck from Spymemcached
This change removes duplicate code.

Change-Id: I7cf569e6c96f41af5bab51aabe402662f49282af
Reviewed-on: http://review.couchbase.org/13085
Reviewed-by: Raghavan N. Srinivas <raghavan.srinivas@gmail.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
b68dc17
Matt Ingenthron Added a note about TAP interface stability.
Change-Id: Ida28a8804777fddf0a8e47f7b3adecbdc7b0b633
Reviewed-on: http://review.couchbase.org/13373
Tested-by: Matt Ingenthron <matt@couchbase.com>
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
88bb58b
Matt Ingenthron Fixed a number of TAP test issues.
Change-Id: I1193262637596d0576838a67db7a61ff1447ad37
Reviewed-on: http://review.couchbase.org/13394
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
f1d750e
Mar 12, 2012
Rags Correctly shut down connection from TapClient. JCBC-16
Fix based on http://www.couchbase.com/issues/browse/JCBC-16

Change-Id: Iefa5d36a1263350a5e61f54d2f65796dec9b808f
Reviewed-on: http://review.couchbase.org/13848
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Raghavan N. Srinivas <raghavan.srinivas@gmail.com>
0d87dd2
Rags Fixed a javadoc issue
Change-Id: Ic6957078afdf56c16f2e44c3a269b3e31a8bb466
Reviewed-on: http://review.couchbase.org/13847
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Raghavan N. Srinivas <raghavan.srinivas@gmail.com>
97e6276
Mar 21, 2012
Mike Wiederhold Added support for views
Change-Id: I67a5912f2b329151c15cff7fc89ab7ef3700503e
Reviewed-on: http://review.couchbase.org/13688
Tested-by: Matt Ingenthron <matt@couchbase.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
beda277
Rags Add support for stale=false which is needed from 2.0 DP4 and later
Change-Id: Id1956b6467ae02c2fae69d7cf252e3c62507cc82
Reviewed-on: http://review.couchbase.org/13849
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
c7410b3
Mar 22, 2012
Matt Ingenthron Add httpcomponents to ivy file for makepom.
Change-Id: I04508e00b77b7b6e6936f43e3d130ad22e5cdf9d
Reviewed-on: http://review.couchbase.org/14157
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
b0cd3ab
Matt Ingenthron Update dependencies to spymemcached 2.8.1.
Change-Id: I86e4ee1c29f16eff16c3057db12f190158f5ee30
Reviewed-on: http://review.couchbase.org/14178
Tested-by: Matt Ingenthron <matt@couchbase.com>
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
cf95135
Apr 05, 2012
Rags Use the correct default Hashing Algorithm - JCBC-29
Change-Id: Ifb1a9ebcc7ae64a8590f1123ddde9138c17fe23e
Reviewed-on: http://review.couchbase.org/14485
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
ce7a084
Mike Wiederhold Fixed checkstyle errors
Change-Id: I1ae53a088077e098313231f2d044a0ca61c1fd46
Reviewed-on: http://review.couchbase.org/14562
Tested-by: Matt Ingenthron <matt@couchbase.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
4d34594
Matt Ingenthron Reconnect to configuration stream if disconnected. JCBC-19
With this change, a Bucket which is marked as disconnected will be
later reconnected when noticed by a calling thread.

The logic for this is a little convoluted at the moment, but tests
to be correct.  In the future, this whole section should be refactored
to be a better NodeLocator or something similar.  See JCBC-28.

Change-Id: I8541493fdf7e8c504c4cbd512ca43e3416b03829
Reviewed-on: http://review.couchbase.org/14574
Tested-by: Matt Ingenthron <matt@couchbase.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
7c049c5
Matt Ingenthron Change back to spymemcached 2.8.0 for this branch.
Change-Id: I38ef9d66544f30f8101ca04889b8042c1abfc177
Reviewed-on: http://review.couchbase.org/14586
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Marty Schoch <marty.schoch@gmail.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
02df7a7
Apr 30, 2012
Matt Ingenthron Missing space added to log message when node is down.
Change-Id: Ifad8da0b4e42f4f58945510de8513e6a7f1424e2
Reviewed-on: http://review.couchbase.org/15462
Tested-by: Michael Wiederhold <mike@couchbase.com>
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
b424ca4
May 22, 2012
Matt Ingenthron Added additional ctor to avoid username. JCBC-38.
Change-Id: If487df95e2974f0a4c60e3c57978a82596967de6
Reviewed-on: http://review.couchbase.org/15435
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Reviewed-by: Marty Schoch <marty.schoch@gmail.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
df18fb4
Matt Ingenthron Update dependencies to spymemcached 2.8.1. JCBC-39.
Change-Id: I9d4e1099edbe4d32d80af22b19cfd3dad6bde221
Reviewed-on: http://review.couchbase.org/15436
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Reviewed-by: Marty Schoch <marty.schoch@gmail.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
0e37394
Jun 02, 2012
Mike Wiederhold JCBC-47: Query now copies include_docs correctly
Change-Id: I9a894bb86530f36151c5075d2da814a66e3f4e9f
Reviewed-on: http://review.couchbase.org/15954
Tested-by: Matt Ingenthron <matt@couchbase.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
f660e19
Mike Wiederhold Removed redundent code in setStale() function in Query class
Change-Id: Ie46923fde6ff5bccbf92a9da6af17769b5e44efa
Reviewed-on: http://review.couchbase.org/15955
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
f109007
Mike Wiederhold JCBC-24: Create setGroupLevel() function in Query class
I removed the setGroup(boolean group, int group_level) function
since group overrides group_level making this function useless. I
turned this function into the setGroupLevel() function.

Change-Id: I98ea665c8bae73ae0940863ef84c426cfade01c1
Reviewed-on: http://review.couchbase.org/15956
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
ba75181
Jun 04, 2012
Mike Wiederhold Support error codes in OperationStatus class
Change-Id: If6bd4c86a28b892018385921b0f7c98172225410
Reviewed-on: http://review.couchbase.org/15953
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
9e72d86
Mike Wiederhold JCBC-44: Check if op is null before checking if it is cancelled
Change-Id: I960a31110484007b9ac6b3735c9cd2ce9ca79e60
Reviewed-on: http://review.couchbase.org/15957
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
a2dcbc0
Mike Wiederhold JCBC-42: Close properties file after using it
Change-Id: I1daa439afd2e88b55f04a63b7c42a9a7f18244e2
Reviewed-on: http://review.couchbase.org/15958
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
0af5374
Jun 05, 2012
Matt Ingenthron Do not override fetching of AuthDescriptor. JCBC-59
Change-Id: Iff02589db6e1a3c3f56108a647e37b821b6cc447
Reviewed-on: http://review.couchbase.org/16765
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
0c9d2d3
Jun 29, 2012
Mike Wiederhold JCBC-20: ViewConnection blocks when no ops pending
When getting the next op in the queue we were using the poll()
function which immediately returns null if the queue is empty. This
immediate return causes the IO thread to spin and consumes a lot of
cpu. What we really want is to block when getting an item from the
queue until one is available. In order to do this we should be using
the take() function.

Change-Id: I9a5bcb4c3852976b55b3162fad513156e94aaaf6
Reviewed-on: http://review.couchbase.org/14959
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
e39cd76
Mike Wiederhold JCBC-43: Make VBucketNodeLocator nested classes static final
Change-Id: I937829e51621d8ed6a0e54b1b079cc338ffab059
Reviewed-on: http://review.couchbase.org/16703
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
c66354d
Mike Wiederhold JCBC-68: Copy key correctly in query
Change-Id: I26a9470a7a39caf913338126dfb918c8774774cd
Reviewed-on: http://review.couchbase.org/17742
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
e565ba0
Jul 11, 2012
Mike Wiederhold Change spymemcached dependency to 2.8.2-SNAPSHOT
Change-Id: I0d3968baa57c3736af2c992eaf169ab6e3dabb37
Reviewed-on: http://review.couchbase.org/18194
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
a407211
Jul 12, 2012
Mike Wiederhold JCBC-72: Throw exception for non-200 http view responses
Change-Id: Iee0b1de24a9ea245b6554aea5a30462cf7b613ef
Reviewed-on: http://review.couchbase.org/18094
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
9a3e207
Mike Wiederhold Fixed incorrect error handling in view parsing
This should call setException because setException set errored
to true. If errored is not set then the Future won't properly
throw and exception.

Change-Id: I71288cda2f6fe27c9dc9ae83968efe81d6fe154d
Reviewed-on: http://review.couchbase.org/18197
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
2390ecc
Jul 20, 2012
Mike Wiederhold Fix checkstyle errors
Change-Id: I87007bd428da34badc0d5a10ef17aa50b8132804
Reviewed-on: http://review.couchbase.org/18655
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
98b9d82
Jul 24, 2012
Matt Ingenthron Update deps to spy 2.8.2-SNAPSHOT
This will be replaced before release with the non-snapshot.

Change-Id: Ia9800f9f63279c4716963066dc059e88aa009119
Reviewed-on: http://review.couchbase.org/18755
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
468a425
Matt Ingenthron Use the correct Connection type for the config. JCBC-53
In the refactoring of the client into two packages, we lost
the functionality that would handle reconfiguration from
MemcachedConnections.  This change introduces a
CouchbaseMemcachedConnection which extends the MemcachedConnection
and implements reconfiguration.  By doing so, we properly handle
add and remove node events from the cluster.

Change-Id: Ief068cab934542617a11e2f527d98b9c38affd07
Reviewed-on: http://review.couchbase.org/16337
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
5bd2319
Matt Ingenthron Ensure config update checks do not overwhelm the system. JCBC-54.
Change-Id: Id0514278608fa1476e21c0f52958860404240561
Reviewed-on: http://review.couchbase.org/16338
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
4c73aa8
Jul 25, 2012
Matt Ingenthron Honor TestConfig in syncGetTimeoutsInitClient().
Change-Id: I6b1d9cba8598799177f686016970ca254e9cec9e
Reviewed-on: http://review.couchbase.org/18758
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Reviewed-by: Raghavan N. Srinivas <raghavan.srinivas@gmail.com>
Tested-by: Raghavan N. Srinivas <raghavan.srinivas@gmail.com>
5c1d311
Matt Ingenthron Workaround NOT_MY_VBUCKET during optimization, and test.
On SPY-91, it was found that receiving a NOT_MY_VBUCKET
response in the middle of an optimized batch of requests
will upset things by causing the optimized operation itself
to be unqueued for reads, rather than retrying the contained
operation.

Since the severity level is high and the workaround is
straightforward (disable optimization) this commit both
disables optimization and introduces the test which helped
find the cause of the issue.

Recommended way of verifying this would be to remove the
two sections related to disabling optimization and then
verify the test fails.

Change-Id: I20aa2945bbbbe9f19a56a41224244fe368d5e34e
Reviewed-on: http://review.couchbase.org/18757
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
36f97dc
Jul 30, 2012
Matt Ingenthron JCBC-88: Fix resubscr by not waiting long and asynch subscribing.
It was found during autofailover testing that the client
did not recover well.  The problem was that we completed the
resubscription on one of the callers threads.  The subscription
can take upward of 700ms, but if the caller adjusts their timeout
for operations to be lower, we don't complete the resubscription.

This change does a couple of things:
1) doesn't allow the connection for any individual HTTP request
   (non-streaming) to take longer than 500ms to establish for
   purposes of faster failover
2) changes resubscription to occur in a thread temporarily
   spawned by the CouchbaseConnectionFactory, so it can complete
   even if the caller's request times out.

This has been tested to show autofailover working correctly.

Change-Id: I87582b99fa872530a62a336b3144fefc60b63f6e
Reviewed-on: http://review.couchbase.org/19008
Tested-by: Matt Ingenthron <matt@couchbase.com>
Reviewed-by: Raghavan N. Srinivas <raghavan.srinivas@gmail.com>
7e4339a
Matt Ingenthron Add a few minor override annotations.
Change-Id: I943c6253c55fa96f6a567dacd2598192f512f21b
Reviewed-on: http://review.couchbase.org/19012
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
9952e10
Matt Ingenthron Add default test type to ant build.
Change-Id: Ib0cc409a440ff5b485d6a188f77867abc79bc204
Reviewed-on: http://review.couchbase.org/19017
Tested-by: Matt Ingenthron <matt@couchbase.com>
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
d026763
Matt Ingenthron Added a simple README.
Change-Id: I71ee47b5f3c3260657ec70644f63d9a58eb73055
Reviewed-on: http://review.couchbase.org/19018
Tested-by: Michael Wiederhold <mike@couchbase.com>
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
f122ff2
Jul 31, 2012
Matt Ingenthron Update spymemcached depedency to 2.8.2 release.
Change-Id: I2f3099dc885de9e78ca67607174408ad5b075d0e
Reviewed-on: http://review.couchbase.org/19051
Tested-by: Matt Ingenthron <matt@couchbase.com>
Reviewed-by: Jasdeep Jaitla <jasdeep@couchbase.com>
5b3f66f
Aug 08, 2012
Matt Ingenthron Add HTTP Basic Authorization for View Requests. JCBC-95
Change-Id: I51dde71b94f99dc0a5db8e9877fa94db45b718f2
Reviewed-on: http://review.couchbase.org/19373
Tested-by: Matt Ingenthron <matt@couchbase.com>
Reviewed-by: Raghavan N. Srinivas <raghavan.srinivas@gmail.com>
3891452
Aug 11, 2012
Matt Ingenthron Make fields of HttpOperation volatile for concurrent access.
Change-Id: Ia55c4a4a3ef30affe9fea5d5f9623a79e4b91a4b
Reviewed-on: http://review.couchbase.org/18807
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
92a87ff
Aug 14, 2012
Mike Wiederhold Fix checkstyle errors
Change-Id: Id044e448f2ec1b9f83c06bacf21ccdc1f123110b
Reviewed-on: http://review.couchbase.org/19605
Tested-by: Matt Ingenthron <matt@couchbase.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
f8857d6
Aug 18, 2012
Mike Wiederhold JCBC-96: Remove the queue mechanism in ViewConnection
This change removes the queueing mechanism that hold operations
before being given to an individual ViewNode. The operations are
now passed directly to a ViewNode and if there are too many
operations then they are held as pending requests until the
ViewNode is ready to process them. On node shutdown the pending
ops are requeued through a callback function that redistributes
them equally to the rest of the ViewNodes.

Change-Id: Ieffbb45123cf47153cea662df1a01f5b2266c8d3
Reviewed-on: http://review.couchbase.org/19606
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
0443cd9
Matt Ingenthron Depend upon 2.8.3-SNAPSHOT
Change-Id: Idb97b900ec1856b75df631bfe620c73b11bedb1e
Reviewed-on: http://review.couchbase.org/19673
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
113ad2e
Matt Ingenthron Merge branch 'release10'
By Matt Ingenthron (16) and others

* gerrit/release10:
  Added a simple README.
  Add default test type to ant build.
  Add a few minor override annotations.
  JCBC-88: Fix resubscr by not waiting long and asynch subscribing.
  Workaround NOT_MY_VBUCKET during optimization, and test.
  Honor TestConfig in syncGetTimeoutsInitClient().
  Ensure config update checks do not overwhelm the system.  JCBC-54.
  Use the correct Connection type for the config.  JCBC-53
  Update deps to spy 2.8.2-SNAPSHOT
  Fix checkstyle errors
  Do not override fetching of AuthDescriptor.  JCBC-59
  Added additional ctor to avoid username. JCBC-38.
  Missing space added to log message when node is down.
  Reconnect to configuration stream if disconnected. JCBC-19
  Use the correct default Hashing Algorithm - JCBC-29

Conflicts:
	ivy/libraries.properties
	src/main/java/com/couchbase/client/CouchbaseClient.java
	src/main/java/com/couchbase/client/CouchbaseConnection.java
	src/main/java/com/couchbase/client/CouchbaseConnectionFactory.java

Change-Id: Idefa785503f0dae99624af7172ba38f54087a45e
924d301
Aug 19, 2012
Mike Wiederhold Remove dependency on ErrorCode, which was revereted in spymemcached.
Change-Id: Ife8c127ad3d0e9bfc7648f2f8e87e62a5ec4e0f9
Reviewed-on: http://review.couchbase.org/19674
Reviewed-by: Raghavan N. Srinivas <raghavan.srinivas@gmail.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
d6100b2
Matt Ingenthron Added better debug logging on ViewNode error handling.
Change-Id: Ic1ee33df0a95ce285143269b9cc1246cc8be0913
Reviewed-on: http://review.couchbase.org/18808
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
228b3cd
Matt Ingenthron Make diagnosis of HTTP connection startup better.
Change-Id: I49d9f44aca5adad8f070cca661c990c9de306853
Reviewed-on: http://review.couchbase.org/19675
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
5502ef8
Matt Ingenthron Added asserts to ensure expected view handling.
Change-Id: I191ff4bfdd61aec26afb146aa3aa9de4d315f9c0
Reviewed-on: http://review.couchbase.org/19676
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
d9ae5a9
Matt Ingenthron Change tests to use bucket delete/create instead of flush_all.
Recent changes of Couchbase Server 2.0 have flush_all disabled
by default. It's also not correct to re-enable flush_all
(though possible) as it won't really behave correctly.

This change shifts to a bucket delete followed by a bucket create.
It's not the best change in that it introduces a lot of sleep time
instead of checking for bucket availability with some other poll,
but does appear to be reliable.

After the integration of RESTful flush in MB-5170, we should be
able to trim some of the time of running tests again and remove
the sleeps in here.

Change-Id: I80ed8bb311afc8dde3970db0cbad6687f58c0048
Reviewed-on: http://review.couchbase.org/19677
Tested-by: Matt Ingenthron <matt@couchbase.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
b9aa7c1
Matt Ingenthron Disable tests related to flush after change to test fixtures.
Change-Id: I0225828c83cd70ee3ae9fdea66f226a22c183e32
Reviewed-on: http://review.couchbase.org/19691
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
d0dd7f9
Matt Ingenthron Better logging on testGetAvailableServers in failure case.
Change-Id: Id14c724e9a6ea40f10e4691f09f3bca4f4f8f821
Reviewed-on: http://review.couchbase.org/19692
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
b6df3e4
Matt Ingenthron Fixes for TapTest based on new flush.
Change-Id: Ib8be84252cc34eb3c5ec12b039abbcb410cd6a54
Reviewed-on: http://review.couchbase.org/19693
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
b0e561a
Matt Ingenthron Adapt OptimizedStoreVbucketTest to new test fixtures.
Change-Id: Id4a3268f42124ace70531f10674b817b7464c15c
Reviewed-on: http://review.couchbase.org/19694
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
7a6976c
Matt Ingenthron Fixes for view authentication when adding design docs.
Change-Id: I78fd48c5fb18a2622ed0a9f0aa80f317537e70a3
Reviewed-on: http://review.couchbase.org/19758
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
93e59f0
Rags Add support for synchronous set via Observe operation.
This change introduces a simple synchronous set which
uses the underlying observe command introduced in
spymemcached 2.8.3.  This command is a binary command only
and is in Couchbase Server 2.0 (approx. build 1495) only.

Conflicts:
	src/test/java/com/couchbase/client/CouchbaseClientTest.java

Change-Id: I6a1e8af54ef13d4a40a5dcc21bb7a939fb63499f
Reviewed-on: http://review.couchbase.org/19068
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
4460d26
Rags Add support for a synchronous delete, via observe operation.
This change adds support for a synchronous delete, including
detection of full delete versus logical delete.

The main use case behind this feature is that if using
Couchbase Server 2.0, and wanting to query views, one may
wish to ensure a delete has been persisted to know that
a subsequent query with .setStale(false) will take the
deletion into account when generating the index.

Change-Id: I99ad5b5089992a7df2c2ab12e487d043265df21f
Reviewed-on: http://review.couchbase.org/19778
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
47bc98a
Matt Ingenthron Rename README since ant clean kept removing it.
Change-Id: I2eada518c22bc345c113c0b786e200fd931e0567
Reviewed-on: http://review.couchbase.org/19838
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
bbbeb76
Matt Ingenthron Checkstyle fixes from merge commit.
Initially, I tried to rebase this to be the first commit after
the merge, but git would keep losing it even when using -p during
rebase.

Change-Id: If9c79e0139ab60261e67195037686de3a446a373
Reviewed-on: http://review.couchbase.org/19839
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
66115ce
Matt Ingenthron Checkstyle misc. fixes.
This fixes a number of checkstyle issues which have been
around for a while.  Some are still in code review, but a merge
commit is a bit in the way of putting things in the right order.

Change-Id: Icd79b614ef53840130abd8ec8adf1ebdb8fccdb4
Reviewed-on: http://review.couchbase.org/19840
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
4e05917
Aug 20, 2012
Matt Ingenthron Minor typo in test log message.
Change-Id: Id0713e7df30b0a828af3122ad9623c3e9240c245
Reviewed-on: http://review.couchbase.org/19860
Reviewed-by: Raghavan N. Srinivas <raghavan.srinivas@gmail.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
5bb4b36
Matt Ingenthron Update to depend on released spymemcached 2.8.3
Change-Id: I20765441809571c2660b661032ba3bc4a681165f
Reviewed-on: http://review.couchbase.org/19861
Reviewed-by: Raghavan N. Srinivas <raghavan.srinivas@gmail.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
e8ff311
Matt Ingenthron Updated README to map up to the 1.1 DP state.
Change-Id: Ia810d5b6f1418476fc2118e3501e0c69f2d6da79
Reviewed-on: http://review.couchbase.org/19862
Reviewed-by: Raghavan N. Srinivas <raghavan.srinivas@gmail.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
0b92ee2
Aug 21, 2012
Rags Observe/Delete related changes
Properly return OperationFuture from delete().
Ignore the cas values if set to zero.

Change-Id: I7f9b4a9149f1a952f5a2354f223223d02144da43
Reviewed-on: http://review.couchbase.org/19920
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Raghavan N. Srinivas <raghavan.srinivas@gmail.com>
7e5d17d
Aug 22, 2012
Matt Ingenthron Updated spy dependency to 2.8.4-SNAPSHOT.
Change-Id: I27be57d44302248d27059b213a3dcc2364131a34
Reviewed-on: http://review.couchbase.org/19997
Tested-by: Matt Ingenthron <matt@couchbase.com>
Reviewed-by: Raghavan N. Srinivas <raghavan.srinivas@gmail.com>
1840d0f
Matt Ingenthron Remove design docs without the _rev.
As of build 15xx, design documents no longer have a _rev and thus
there is no reason to retrieve them to remove them with _rev.

Technically speaking, we could probably get rid of this whole
section, but there's no harm in just making it work.

Change-Id: I6373dbab78ed7f3c02e57c2a4dcf734285b45ee8
Reviewed-on: http://review.couchbase.org/19998
Tested-by: Matt Ingenthron <matt@couchbase.com>
Reviewed-by: Raghavan N. Srinivas <raghavan.srinivas@gmail.com>
0967d51
Matt Ingenthron Update spymemcached dependency to 2.8.4.
Change-Id: I3a92bb4efde4cda95fd8bd0b63976f6a76fd3da1
Reviewed-on: http://review.couchbase.org/20008
Reviewed-by: Raghavan N. Srinivas <raghavan.srinivas@gmail.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
12dffd5
Matt Ingenthron Remove jettison import from ViewTest.
Change-Id: I72f49c842272ee06b39df38d6501aceaee7da7dc
Reviewed-on: http://review.couchbase.org/20010
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
4a5b5cb
Aug 31, 2012
Matt Ingenthron Update to spymemcached 2.8.5.
Change-Id: I754b08c9f1151bd739a89b8aeac3c0a4d102fa07
Reviewed-on: http://review.couchbase.org/20398
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
710f398