518 Commits

Author SHA1 Message Date
buildmaster
4e09da711e Bumping versions to 2.2.6.BUILD-SNAPSHOT after release 2021-04-21 17:49:19 +00:00
buildmaster
199445fe60 Going back to snapshots 2021-04-21 17:49:18 +00:00
buildmaster
7e10022f35 Update SNAPSHOT to 2.2.5.RELEASE 2021-04-21 17:46:46 +00:00
buildmaster
7c5bf559c2 Bumping versions 2021-04-20 22:00:20 +00:00
buildmaster
f1a1cf04fa Bumping versions 2021-04-20 13:41:10 +00:00
Olga Maciaszek-Sharma
3369032a87 Add a quickstart section (#285) 2021-03-04 10:55:55 +01:00
buildmaster
1fb62819db Bumping versions to 2.2.5.BUILD-SNAPSHOT after release 2020-11-09 11:09:54 +00:00
buildmaster
fb6ebd33c7 Going back to snapshots 2020-11-09 11:09:53 +00:00
buildmaster
397d50ef79 Update SNAPSHOT to 2.2.4.RELEASE 2020-11-09 11:06:45 +00:00
spencergibb
2703a24402 extracts prefix constant 2020-09-24 09:55:30 -04:00
spencergibb
094c309dbf Updates tests to use a consistent ZookeeperTestingServer
This speeds up testing.
2020-09-24 09:41:46 -04:00
spencergibb
df16943bcd Adds is*Enabled around log statements 2020-08-14 10:56:00 -04:00
spencergibb
d83e43c459 Bumps s-c-build to 2.3.2.BUILD-SNAPSHOT 2020-08-03 13:46:01 -04:00
buildmaster
89ea0728b9 Bumping versions to 2.2.4.BUILD-SNAPSHOT after release 2020-07-31 21:34:02 +00:00
buildmaster
1117b2122b Going back to snapshots 2020-07-31 21:34:02 +00:00
buildmaster
f09daf3e9b Update SNAPSHOT to 2.2.3.RELEASE 2020-07-31 21:31:40 +00:00
u-dogFF
4f92ff73d7 Fix Zookeeper link in documentation
Fixes gh-238
Fixes gh-246
2020-07-06 16:30:26 -04:00
Thomas Vitale
5b35a49281 Use initial status configured for Zookeeper discovery (#250)
Use value defined in "spring.cloud.zookeeper.discovery.initial-status"
when autoconfiguring a ZookeeperInstance.

Fixes gh-247
2020-07-06 16:28:03 -04:00
Marcin Grzejszczak
d4331b4717 Migrated to docs.spring.io & updated sc-build 2020-06-04 16:02:51 +02:00
spencergibb
17e31f5241 spring-cloud-starter-zookeeper now depends on spring-cloud-starter
This brings in spring-boot-starter and spring-cloud-context.

Fixes gh-248
2020-06-03 10:56:16 -04:00
buildmaster
b522a5ec14 Bumping versions to 2.2.3.BUILD-SNAPSHOT after release 2020-05-28 20:27:04 +00:00
buildmaster
b6d8a345c1 Going back to snapshots 2020-05-28 20:27:04 +00:00
buildmaster
0f64aed86a Update SNAPSHOT to 2.2.2.RELEASE 2020-05-28 20:22:50 +00:00
spencergibb
a580f12e27 ignores .sdkmanrc 2020-05-28 16:19:08 -04:00
spencergibb
c0b36de3cf Removes use of javax.validation 2020-05-28 16:16:36 -04:00
Spencer Gibb
f8a1764d05 Updates getIfAvailable() to ifAvailable() 2020-04-20 15:52:02 -04:00
Bernardo Gomez Palacio
163a0af006 Session & connection timeout properties; Adding CuratorFrameworkCustomizer
We currently don't have a simple mechanism to configure CuratorFramework's session and connection timeout.
Since Curator 3.x users can affect how Curator handles re-connection, since the meaning of LOST was changed.
In 3.x when the "Disconnected" is received Curator starts an internal timer.
When the timer passes the negotiated session timeout Curator calls `getTestable().injectSessionExpiration()`
and posts a LOST state change.

In Curator 4.x the session timeout defaults to 60 seconds and the connection timeout to 15 seconds.
Ref:
```
private static final int DEFAULT_SESSION_TIMEOUT_MS = Integer.getInteger("curator-default-session-timeout", 60 * 1000);
private static final int DEFAULT_CONNECTION_TIMEOUT_MS = Integer.getInteger("curator-default-connection-timeout", 15 * 1000);
```

Proposed Solution
=================

Offer a mechanism to configure the session and connection timeout and
establish a mechanism to be able to customize the `CuratorFramework` for
future-proving.

We could avoid having two more properties, the session and connection timeouts, as part of `ZookeeperProperties` and
let users define them on their `CuratorFrameworkCustomizer`. The current rational is that consolidating this two
configuration properties as part of the `spring.cloud.zookeeper` configuration namespace is valuable and simplifies
their usage.

Additional Context
==================

> Curator will set the LOST state when it believes that the ZooKeeper session has expired.
> ZooKeeper connections have a session. When the session expires, clients must take appropriate action.
> In Curator, this is complicated by the fact that Curator internally manages the ZooKeeper connection.
> Curator will set the LOST state when any of the following occurs:
> a) ZooKeeper returns a Watcher.Event.KeeperState.Expired or KeeperException.Code.SESSIONEXPIRED;
> b) Curator closes the internally managed ZooKeeper instance;
> c) The session timeout elapses during a network partition. It is possible to get a RECONNECTED state after
> this but you should still consider any locks, etc. as dirty/unstable.
Ref. [Curator Errors](https://curator.apache.org/errors.html)

Warning: Curator 4.0.1 is affected by [CURATOR-460: Timed tolerance for connection suspended leads to simultaneous leaders](https://issues.apache.org/jira/browse/CURATOR-460). This was addressed in `4.1.0`.

Additional references:
=====================
* [TN14: ZooKeeper's Session Handling](https://cwiki.apache.org/confluence/display/CURATOR/TN14)
* [CURATOR-460](https://issues.apache.org/jira/browse/CURATOR-460)
* [Curator Errors](https://curator.apache.org/errors.html)

fixes gh-244
2020-04-20 15:51:06 -04:00
Spencer Gibb
c3fea59650 updates build to 2.3.0.BUILD-SNAPSHOT 2020-03-19 12:08:14 -04:00
Spencer Gibb
6b6917fc80 updates build to 2.2.4.BUILD-SNAPSHOT 2020-03-18 18:49:17 -04:00
Bernardo Gomez Palacio
7b9463a6d5 Adds the option to define a TraceDriver for the CuratorFramework
This commits adds the option to define a Curator `TracerDriver`, which
if available, will be used in the CuratorZookeeperClient wrapped inside the
CuratorFramework.

Fixes gh-241
Fixes gh-242
2020-03-16 15:33:01 -04:00
Spencer Gibb
fbf5b54d07 Updates docs branches. 2020-03-06 12:59:33 -05:00
buildmaster
cad51b35f2 Bumping versions to 2.2.2.BUILD-SNAPSHOT after release 2020-03-04 17:05:50 +00:00
buildmaster
874282232a Going back to snapshots 2020-03-04 17:05:50 +00:00
buildmaster
8f23cebcdb Update SNAPSHOT to 2.2.1.RELEASE 2020-03-04 17:02:05 +00:00
Spencer Gibb
4debd04bd7 Replaces some deprecations 2020-01-22 11:15:13 -05:00
Spencer Gibb
d510ba8693 Ignores .flattened-pom.xml 2020-01-22 11:12:43 -05:00
Spencer Gibb
d7921eeda7 Deletes .flattened-pom.xml 2020-01-22 11:12:17 -05:00
buildmaster
d072989d5c Bumping versions 2020-01-07 18:32:13 +00:00
buildmaster
c2fe33ebe4 Bumping versions 2019-12-20 18:33:47 +00:00
buildmaster
c633d620bd Bumping versions 2019-12-18 18:33:22 +00:00
buildmaster
0ca3c38b04 Bumping versions 2019-11-26 18:32:16 +00:00
buildmaster
248f93a6bb Bumping versions to 2.2.1.BUILD-SNAPSHOT after release 2019-11-26 10:39:11 +00:00
buildmaster
d348af5438 Going back to snapshots 2019-11-26 10:39:11 +00:00
buildmaster
f3bc299806 Update SNAPSHOT to 2.2.0.RELEASE 2019-11-26 10:37:29 +00:00
buildmaster
aaef5f74de Bumping versions 2019-11-20 18:32:18 +00:00
Ryan Baxter
ae2c85827b Update issue templates 2019-11-19 17:05:17 -05:00
Ryan Baxter
155f95b360 Create SECURITY.md 2019-11-19 17:04:45 -05:00
Marcin Grzejszczak
a0822b4fae Merge branch '2.1.x' 2019-11-13 14:14:50 +01:00
Marcin Grzejszczak
d613510942 Removed resource large from circle setup 2019-11-13 14:14:43 +01:00
Marcin Grzejszczak
987a53a850 Update auto-configuration to use @Configuration(proxyBeanMethods=false); fixes gh-236 2019-11-13 14:08:46 +01:00