curator.git
2 years agoMerge branch 'master' into CURATOR-287
randgalt [Tue, 19 Jan 2016 00:10:14 +0000 (19:10 -0500)] 
Merge branch 'master' into CURATOR-287

Conflicts:
curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/PersistentEphemeralNode.java

2 years agofixed docs/comments that refer to ephemeral CURATOR-287
randgalt [Mon, 18 Jan 2016 23:11:45 +0000 (18:11 -0500)] 
fixed docs/comments that refer to ephemeral

2 years agoMerge branch 'master' into CURATOR-244
randgalt [Mon, 18 Jan 2016 23:04:07 +0000 (18:04 -0500)] 
Merge branch 'master' into CURATOR-244

2 years agoMerge branch 'master' of https://git-wip-us.apache.org/repos/asf/curator
randgalt [Mon, 18 Jan 2016 02:34:50 +0000 (21:34 -0500)] 
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/curator

2 years agoMerge branch 'master' into CURATOR-288
randgalt [Mon, 18 Jan 2016 02:34:27 +0000 (21:34 -0500)] 
Merge branch 'master' into CURATOR-288

2 years agoMerge branch 'CURATOR-278' of https://github.com/granthenke/curator into CURATOR-278 CURATOR-278
Cam McKenzie [Sun, 17 Jan 2016 22:28:49 +0000 (09:28 +1100)] 
Merge branch 'CURATOR-278' of https://github.com/granthenke/curator into CURATOR-278

2 years agoremoved unneeded import CURATOR-288
randgalt [Fri, 15 Jan 2016 17:54:13 +0000 (12:54 -0500)] 
removed unneeded import

2 years agoupdated tests for new values in NODE_REMOVED
randgalt [Fri, 15 Jan 2016 17:47:33 +0000 (12:47 -0500)] 
updated tests for new values in NODE_REMOVED

2 years agoReturn old data for NODE_REMOVED
randgalt [Fri, 15 Jan 2016 17:23:34 +0000 (12:23 -0500)] 
Return old data for NODE_REMOVED

2 years agoDon't let thread interrupt status get reset. The only proper reason for these loops... CURATOR-208
randgalt [Fri, 15 Jan 2016 03:42:24 +0000 (22:42 -0500)] 
Don't let thread interrupt status get reset. The only proper reason for these loops to exit if the instance is closed

2 years agorewrote for better stability
randgalt [Fri, 15 Jan 2016 03:41:59 +0000 (22:41 -0500)] 
rewrote for better stability

2 years agoDon't let thread interrupt status get reset. The only proper reason for these loops...
randgalt [Fri, 15 Jan 2016 03:41:44 +0000 (22:41 -0500)] 
Don't let thread interrupt status get reset. The only proper reason for these loops to exit if the instance is closed

2 years agoTurns out FindAndDeleteProtectedNodeInBackground was causing a stack overflow. Reset...
randgalt [Fri, 15 Jan 2016 03:40:24 +0000 (22:40 -0500)] 
Turns out FindAndDeleteProtectedNodeInBackground was causing a stack overflow. Reset the retry count before requeueing

2 years agoremoved extra blank line
randgalt [Fri, 15 Jan 2016 03:39:33 +0000 (22:39 -0500)] 
removed extra blank line

2 years agoZK calls InetAddress.getLocalHost().getCanonicalHostName internally. On some systems...
randgalt [Fri, 15 Jan 2016 03:38:28 +0000 (22:38 -0500)] 
ZK calls InetAddress.getLocalHost().getCanonicalHostName internally. On some systems this takes seconds. Pre-call it and use the elapsed time to set MAX_WAIT_MS so that tests don't fail in setup

2 years agoAdded an unhandled exception error handler
randgalt [Fri, 15 Jan 2016 03:37:24 +0000 (22:37 -0500)] 
Added an unhandled exception error handler

2 years agoGeneral fix for catch-alls throughout the code. This is overkill but it strikes me...
randgalt [Wed, 13 Jan 2016 20:20:54 +0000 (15:20 -0500)] 
General fix for catch-alls throughout the code. This is overkill but it strikes me as the safest way to address the problem. Everywhere there is a catch-all add a check for InterruptedException and reset the thread's interrupted state

2 years agoAdded TreeCacheSelector to allow for controling which nodes a TreeCache processes
randgalt [Tue, 12 Jan 2016 19:13:54 +0000 (14:13 -0500)] 
Added TreeCacheSelector to allow for controling which nodes a TreeCache processes

2 years agofixed doc
randgalt [Tue, 12 Jan 2016 17:13:58 +0000 (12:13 -0500)] 
fixed doc

2 years agoDeprecated PersistentEphemeralNode in favor of PersistentNode which is the same code...
randgalt [Tue, 12 Jan 2016 16:45:38 +0000 (11:45 -0500)] 
Deprecated PersistentEphemeralNode in favor of PersistentNode which is the same code but now accepts any createmode

2 years agoZKPaths.mkdirs() was always passing the full path to the aclProvider instead of the... CURATOR-244
randgalt [Tue, 12 Jan 2016 15:13:12 +0000 (10:13 -0500)] 
ZKPaths.mkdirs() was always passing the full path to the aclProvider instead of the subpath being created

2 years agooops - bad commit for this file CURATOR-209
randgalt [Mon, 28 Dec 2015 15:23:14 +0000 (10:23 -0500)] 
oops - bad commit for this file

2 years agoDon't queue background operation if the client is closed
randgalt [Mon, 28 Dec 2015 15:11:55 +0000 (10:11 -0500)] 
Don't queue background operation if the client is closed

2 years agoMoved findAndDeleteProtectedNodeInBackground code into separate operation that is...
randgalt [Mon, 28 Dec 2015 15:08:51 +0000 (10:08 -0500)] 
Moved findAndDeleteProtectedNodeInBackground code into separate operation that is processed through the standard Curator background
code. This way, retries are applied (with sleep), etc. In the previous implementation, errors caused the background check to be run immediately and infinitely.

3 years agoCURATOR-278: In transactions compressed option does not work with some fluent api...
Grant Henke [Sat, 7 Nov 2015 19:39:54 +0000 (13:39 -0600)] 
CURATOR-278: In transactions compressed option does not work with some fluent api combinations

3 years agoBack to 2.9.1-SNAPSHOT
Cam McKenzie [Mon, 26 Oct 2015 01:54:02 +0000 (12:54 +1100)] 
Back to 2.9.1-SNAPSHOT

3 years ago[maven-release-plugin] prepare for next development iteration
Cam McKenzie [Mon, 26 Oct 2015 00:05:40 +0000 (11:05 +1100)] 
[maven-release-plugin] prepare for next development iteration

3 years ago[maven-release-plugin] prepare release apache-curator-2.9.1
Cam McKenzie [Mon, 26 Oct 2015 00:05:30 +0000 (11:05 +1100)] 
[maven-release-plugin] prepare release apache-curator-2.9.1

3 years agoMerge branch 'master' of https://git-wip-us.apache.org/repos/asf/curator
Cam McKenzie [Sun, 25 Oct 2015 20:46:57 +0000 (07:46 +1100)] 
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/curator

3 years agomade the doc FQN so the import isn't needed CURATOR-274
randgalt [Thu, 22 Oct 2015 21:52:28 +0000 (16:52 -0500)] 
made the doc FQN so the import isn't needed

3 years agooops - the import is used in the doc
randgalt [Thu, 22 Oct 2015 21:51:44 +0000 (16:51 -0500)] 
oops - the import is used in the doc

3 years agoremoved unused import
randgalt [Thu, 22 Oct 2015 21:51:19 +0000 (16:51 -0500)] 
removed unused import

3 years agoTests for EnsureContainers
randgalt [Thu, 22 Oct 2015 13:37:51 +0000 (08:37 -0500)] 
Tests for EnsureContainers

3 years agoPrevious change to create containers broke some old behavior. Old EnsurePath class...
randgalt [Thu, 22 Oct 2015 00:05:02 +0000 (19:05 -0500)] 
Previous change to create containers broke some old behavior. Old EnsurePath class only created parents once. So, introduce new EnsureContainers class to do similar but for containers. Also, make usage in a protected method so that it can be turned off by users

3 years ago[maven-release-plugin] prepare for next development iteration
Cam McKenzie [Tue, 20 Oct 2015 23:59:50 +0000 (10:59 +1100)] 
[maven-release-plugin] prepare for next development iteration

3 years ago[maven-release-plugin] prepare release apache-curator-2.9.1-SNAPSHOT
Cam McKenzie [Tue, 20 Oct 2015 23:59:40 +0000 (10:59 +1100)] 
[maven-release-plugin] prepare release apache-curator-2.9.1-SNAPSHOT

3 years agoMerge branch 'master' into CURATOR-267 CURATOR-267
randgalt [Fri, 16 Oct 2015 18:39:51 +0000 (13:39 -0500)] 
Merge branch 'master' into CURATOR-267

Conflicts:
curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/PersistentEphemeralNode.java

3 years agoUse supplied executor CURATOR-271
Glen Wallace [Tue, 13 Oct 2015 22:00:04 +0000 (11:00 +1300)] 
Use supplied executor

3 years agoreformatting - also use CuratorWatcher
randgalt [Sun, 11 Oct 2015 20:50:40 +0000 (15:50 -0500)] 
reformatting - also use CuratorWatcher

3 years agoMerge branch 'CURATOR-258' of github.com:nkvoll/curator into CURATOR-258
randgalt [Sun, 11 Oct 2015 20:46:13 +0000 (15:46 -0500)] 
Merge branch 'CURATOR-258' of github.com:nkvoll/curator into CURATOR-258

3 years agoNamespaceFacade should not overload createContainers(). It was losing the namespace
randgalt [Tue, 6 Oct 2015 13:21:05 +0000 (08:21 -0500)] 
NamespaceFacade should not overload createContainers(). It was losing the namespace

3 years agoCURATOR-270 createContainers does not work correctly with usingNamespace
Alexey Serba [Mon, 5 Oct 2015 21:11:35 +0000 (00:11 +0300)] 
CURATOR-270 createContainers does not work correctly with usingNamespace

3 years agoupdated doc
randgalt [Sun, 27 Sep 2015 22:22:15 +0000 (17:22 -0500)] 
updated doc

3 years agoapi for setting data
randgalt [Sun, 27 Sep 2015 22:06:46 +0000 (17:06 -0500)] 
api for setting data

3 years agoFirst pass implementation of group membership
randgalt [Sun, 27 Sep 2015 21:59:48 +0000 (16:59 -0500)] 
First pass implementation of group membership

3 years agoCURATOR-45 added findAndDeleteProtectedNodeInBackground to handle cases where a prote... CURATOR-264
randgalt [Tue, 22 Sep 2015 19:59:41 +0000 (14:59 -0500)] 
CURATOR-45 added findAndDeleteProtectedNodeInBackground to handle cases where a protected node can get lost. However, the code wasn't correctly handling namespaces

3 years agocontinue watching the node until it is deleted or the recipe is stopped
Njal Karevoll [Wed, 2 Sep 2015 18:03:28 +0000 (20:03 +0200)] 
continue watching the node until it is deleted or the recipe is stopped

3 years ago[maven-release-plugin] prepare for next development iteration
Mike Drob [Wed, 2 Sep 2015 17:56:24 +0000 (12:56 -0500)] 
[maven-release-plugin] prepare for next development iteration

3 years ago[maven-release-plugin] prepare release apache-curator-2.9.0-rc1 apache-curator-2.9.0 apache-curator-2.9.0-rc1
Mike Drob [Wed, 2 Sep 2015 17:56:14 +0000 (12:56 -0500)] 
[maven-release-plugin] prepare release apache-curator-2.9.0-rc1

3 years agoCURATOR-254 - Modified the test assertions so that they ensure that the theoretical... CURATOR-254
Cam McKenzie [Mon, 31 Aug 2015 23:13:06 +0000 (09:13 +1000)] 
CURATOR-254 - Modified the test assertions so that they ensure that the theoretical maximum queue size is not exceeded. The previous limit was exceedable depending on how quick consumers were pulling data off the queue.

3 years agoMerge branch 'CURATOR-228'
Cam McKenzie [Mon, 31 Aug 2015 21:37:39 +0000 (07:37 +1000)] 
Merge branch 'CURATOR-228'

3 years agoreturn false if interrupted
randgalt [Mon, 31 Aug 2015 14:19:21 +0000 (07:19 -0700)] 
return false if interrupted

3 years agoMerge branch 'CURATOR-239' of github.com:leandronunes85/curator into CURATOR-239
randgalt [Mon, 31 Aug 2015 14:17:23 +0000 (07:17 -0700)] 
Merge branch 'CURATOR-239' of github.com:leandronunes85/curator into CURATOR-239

3 years agoCURATOR-167 - Partial fix to clean up Curator managed watch objects when CURATOR-167
Cameron McKenzie [Wed, 19 Nov 2014 03:23:24 +0000 (14:23 +1100)] 
CURATOR-167 - Partial fix to clean up Curator managed watch objects when
the cache closes. A full fix requires the ability to cancel watches in
ZK which is not available until ZK 3.5

3 years agoMerge branch 'CURATOR-234'
Mike Drob [Mon, 24 Aug 2015 15:41:39 +0000 (10:41 -0500)] 
Merge branch 'CURATOR-234'

3 years agoCURATOR-234 Add remaining slf4j-log4j12 test deps CURATOR-234
Mike Drob [Mon, 24 Aug 2015 15:40:12 +0000 (10:40 -0500)] 
CURATOR-234 Add remaining slf4j-log4j12 test deps

3 years agoCURATOR-218 Reorder ConnectionState process event CURATOR-218
Mike Drob [Wed, 8 Jul 2015 16:04:30 +0000 (11:04 -0500)] 
CURATOR-218 Reorder ConnectionState process event

Address a race condition in ConnectionState.process where it will
trigger watchers first before updating its own state. This can lead to
inconsistencies when blocking until connected.

3 years agoCURATOR-224 broke the fix for CURATOR-56. Introduced a new method, makeRequeueItemPat... CURATOR-231
randgalt [Fri, 21 Aug 2015 18:30:48 +0000 (13:30 -0500)] 
CURATOR-224 broke the fix for CURATOR-56. Introduced a new method, makeRequeueItemPath(), so that items can be requeued in a way that's compatible with all the queue types

3 years agoAdded some better logging to testRetryAfterFailure_Curator56()
randgalt [Fri, 21 Aug 2015 18:07:12 +0000 (13:07 -0500)] 
Added some better logging to testRetryAfterFailure_Curator56()

3 years agotestRequeuingWithLock was too dependent on timing. Created a better way to test the... CURATOR-243
randgalt [Fri, 21 Aug 2015 17:33:59 +0000 (12:33 -0500)] 
testRequeuingWithLock was too dependent on timing. Created a better way to test the condition

3 years agoMerge branch 'CURATOR-231'
Mike Drob [Fri, 14 Aug 2015 19:27:10 +0000 (14:27 -0500)] 
Merge branch 'CURATOR-231'

3 years agoCURATOR-234 Add slf4j-log4j12 test dependency
Mike Drob [Mon, 13 Jul 2015 13:02:48 +0000 (08:02 -0500)] 
CURATOR-234 Add slf4j-log4j12 test dependency

3 years agoMerge branch 'CURATOR-241'
Cameron McKenzie [Mon, 10 Aug 2015 21:49:32 +0000 (07:49 +1000)] 
Merge branch 'CURATOR-241'

3 years agoCURATOR-129 Add docs to PCC constructors
Mike Drob [Wed, 24 Jun 2015 19:13:41 +0000 (14:13 -0500)] 
CURATOR-129 Add docs to PCC constructors

Add javadocs cautioning users that ExecutorServices provided should be single-threaded

This closes #86

3 years agoAccess data the same way CURATOR-241
Alex Brasetvik [Mon, 3 Aug 2015 00:00:44 +0000 (02:00 +0200)] 
Access data the same way

3 years agoMake getData private and access data directly in setData
Alex Brasetvik [Sun, 2 Aug 2015 23:52:51 +0000 (01:52 +0200)] 
Make getData private and access data directly in setData

3 years agoCURATOR-241: Write updated data on reconnect
Alex Brasetvik [Sun, 2 Aug 2015 22:57:51 +0000 (00:57 +0200)] 
CURATOR-241: Write updated data on reconnect

PersistentEphemeralNode can be initialised with certain data, then
later updated. If the client reconnects, the replacing ephemeral
should write the updated data.

3 years agoCURATOR-240: fix pathological "root doesn't exist" infinite refresh cycle
Scott Blum [Fri, 31 Jul 2015 21:19:14 +0000 (17:19 -0400)] 
CURATOR-240: fix pathological "root doesn't exist" infinite refresh cycle

3 years agoCURATOR-239 - Interrupting current thread after catching InterruptedException
Leandro Nunes [Thu, 23 Jul 2015 23:18:18 +0000 (00:18 +0100)] 
CURATOR-239 - Interrupting current thread after catching InterruptedException

3 years agoCURATOR-239 - Adding RetryForever retry policy
Leandro Nunes [Thu, 23 Jul 2015 23:06:26 +0000 (00:06 +0100)] 
CURATOR-239 - Adding RetryForever retry policy

3 years agoAdd Mike Drob as developer
Mike Drob [Thu, 23 Jul 2015 20:56:26 +0000 (15:56 -0500)] 
Add Mike Drob as developer

3 years agoCURATOR-228 - Remove public access from the isAuthFailure method. CURATOR-228
Cam McKenzie [Thu, 23 Jul 2015 05:59:13 +0000 (15:59 +1000)] 
CURATOR-228 - Remove public access from the isAuthFailure method.

3 years agoCURATOR-228 - Modified the background callback to explicitly handle the NOAUTH case...
Cam McKenzie [Thu, 23 Jul 2015 03:38:37 +0000 (13:38 +1000)] 
CURATOR-228 - Modified the background callback to explicitly handle the NOAUTH case. This will now log a warning and set a flag indicating that an auth failure has occured.

3 years agoMerge branch 'CURATOR-235' of github.com:oza/curator into CURATOR-235 CURATOR-235
randgalt [Sat, 18 Jul 2015 17:40:58 +0000 (12:40 -0500)] 
Merge branch 'CURATOR-235' of github.com:oza/curator into CURATOR-235

3 years agoCURATOR-236: TreeCache throws IllegalArgumentException when node is a substring of...
Scott Blum [Thu, 16 Jul 2015 21:50:32 +0000 (17:50 -0400)] 
CURATOR-236: TreeCache throws IllegalArgumentException when node is a substring of the requested path

Better path walking algorithm.

3 years agoCURATOR-235 LeaderSelector.internalRequeue should be private
Tsuyoshi Ozawa [Wed, 15 Jul 2015 04:18:40 +0000 (13:18 +0900)] 
CURATOR-235 LeaderSelector.internalRequeue should be private

3 years agoMerge branch 'CURATOR-222'
randgalt [Wed, 1 Jul 2015 23:35:46 +0000 (18:35 -0500)] 
Merge branch 'CURATOR-222'

3 years agoPrevious change had a potential infinite loop - stack overflow CURATOR-222
randgalt [Wed, 1 Jul 2015 23:35:05 +0000 (18:35 -0500)] 
Previous change had a potential infinite loop - stack overflow

3 years agoMerge branch 'CURATOR-222'
randgalt [Wed, 1 Jul 2015 23:01:04 +0000 (18:01 -0500)] 
Merge branch 'CURATOR-222'

3 years agoUse new APIs to ensure path
randgalt [Wed, 1 Jul 2015 22:50:00 +0000 (17:50 -0500)] 
Use new APIs to ensure path

3 years agoremoved testClientClosedDuringRefreshErrorMessage() I didn't write this test and...
randgalt [Wed, 1 Jul 2015 21:17:58 +0000 (16:17 -0500)] 
removed testClientClosedDuringRefreshErrorMessage() I didn't write this test and it's not working. I'm not even sure what it tests. Check into it later -JZ

3 years agoAdded createContainers() to the main API as it's used too often. Applied it where...
randgalt [Wed, 24 Jun 2015 22:23:07 +0000 (17:23 -0500)] 
Added createContainers() to the main API as it's used too often. Applied it where needed (fixing some issues created when removing ensurePath)

3 years agoleft some debug code in
randgalt [Wed, 24 Jun 2015 21:50:26 +0000 (16:50 -0500)] 
left some debug code in

3 years agoadded more usages of exists().creatingParents some more tests and added this behavior...
randgalt [Wed, 24 Jun 2015 21:25:33 +0000 (16:25 -0500)] 
added more usages of exists().creatingParents some more tests and added this behavior optionally to TreeCache

3 years agocreatingParentContainersIfNeeded for checkExists() was broken. Fixed and added a...
randgalt [Tue, 23 Jun 2015 22:58:28 +0000 (17:58 -0500)] 
creatingParentContainersIfNeeded for checkExists() was broken. Fixed and added a test

3 years agoMerge branch 'master' of https://github.com/zzcoder/curator into CURATOR-224 CURATOR-224
Cameron McKenzie [Mon, 22 Jun 2015 23:58:00 +0000 (09:58 +1000)] 
Merge branch 'master' of https://github.com/zzcoder/curator into CURATOR-224

3 years agoCurator-224: Fixed the requeuing problem with DistributedIdQueue.
Zhihong Zhang [Mon, 22 Jun 2015 18:59:02 +0000 (14:59 -0400)] 
Curator-224: Fixed the requeuing problem with DistributedIdQueue.

3 years agoupdated deprecated tags
randgalt [Mon, 22 Jun 2015 01:48:42 +0000 (20:48 -0500)] 
updated deprecated tags

3 years agoDoc misnamed CuratorEvent
randgalt [Sun, 21 Jun 2015 16:04:35 +0000 (11:04 -0500)] 
Doc misnamed CuratorEvent

3 years agoremove doc for EnsurePath as it is now deprecated
randgalt [Sun, 21 Jun 2015 15:45:00 +0000 (10:45 -0500)] 
remove doc for EnsurePath as it is now deprecated

3 years agominor reformat
randgalt [Sat, 20 Jun 2015 13:07:48 +0000 (08:07 -0500)] 
minor reformat

3 years agofinalized usage and APIs. Made sure is backward compatible to 3.4.6
randgalt [Thu, 18 Jun 2015 01:40:15 +0000 (20:40 -0500)] 
finalized usage and APIs. Made sure is backward compatible to 3.4.6

3 years ago[CURATOR-223] Add executorService methods to ServiceCacheBuilder CURATOR-223
Tom Dyas [Tue, 16 Jun 2015 21:38:18 +0000 (17:38 -0400)] 
[CURATOR-223] Add executorService methods to ServiceCacheBuilder

Add executorService methods to ServiceCacheBuilder to allow the caller to specify
an ExecutorService or a CloseableExecutorService to be used by the PathChildrenCache
embedded in ServiceCacheImpl.

Extracts ExecuteCalledWatchingExecutorService (and DelegatingExecutorService) into
the curator-test module for use by TestServiceCache.

3 years agoMerge branch 'fix-deps' into CURATOR-222
randgalt [Sun, 7 Jun 2015 04:37:27 +0000 (23:37 -0500)] 
Merge branch 'fix-deps' into CURATOR-222

3 years agomoved the hard coded deps out of the parent pom. It created problems for curator-rpc
randgalt [Sun, 7 Jun 2015 04:35:36 +0000 (23:35 -0500)] 
moved the hard coded deps out of the parent pom. It created problems for curator-rpc

3 years agocloses #81 - created by mistake*
randgalt [Tue, 19 May 2015 23:21:11 +0000 (16:21 -0700)] 
closes #81 - created by mistake*

3 years agocloses #80 - created by mistake*
randgalt [Tue, 19 May 2015 23:20:26 +0000 (16:20 -0700)] 
closes #80 - created by mistake*

3 years agoGot rid of EnsurePathContainers. It's not needed and confusing
randgalt [Tue, 19 May 2015 23:08:53 +0000 (16:08 -0700)] 
Got rid of EnsurePathContainers. It's not needed and confusing

3 years agoRefactoring and more tests
randgalt [Tue, 19 May 2015 22:26:06 +0000 (15:26 -0700)] 
Refactoring and more tests

3 years agoProvide a way to override creating containers
randgalt [Tue, 19 May 2015 22:10:25 +0000 (15:10 -0700)] 
Provide a way to override creating containers