Commit Graph

882 Commits

Author SHA1 Message Date
Oliver Drotbohm
3a1d921e4a DATAREDIS-931 - Prepare 2.1.6 (Lovelace SR6). 2019-04-01 20:03:20 +02:00
Oliver Drotbohm
ae77623f43 DATAREDIS-931 - Updated changelog. 2019-04-01 20:03:18 +02:00
Oliver Drotbohm
e156a9cc6a DATAREDIS-922 - Updated changelog. 2019-04-01 19:37:07 +02:00
Oliver Drotbohm
a34633bc79 DATAREDIS-957 - Updated changelog. 2019-04-01 18:52:22 +02:00
Oliver Drotbohm
ab6bde4ab3 DATAREDIS-921 - Updated changelog. 2019-04-01 13:54:19 +02:00
Mark Paluch
4a46d40504 DATAREDIS-953 - Release connection after failed validation only once.
We now release a connection after a failed validation only once. Previously, a connection was released twice which caused a failure if the connection was obtained from a pool.

Original Pull Request: #445
2019-03-27 11:06:27 +01:00
Mark Paluch
d874aeb84f DATAREDIS-950 - Fix ClassCastException on shared Lettuce Cluster connection validation.
Original Pull Request: #445
2019-03-27 10:58:32 +01:00
Christoph Strobl
983bb8b868 DATAREDIS-925 - Add and register binary read/write converter for UUID.
Original pull request: #444.
2019-03-27 09:31:03 +01:00
Mark Paluch
ce5edb7203 DATAREDIS-951 - Upgrade to Lettuce 5.1.6.
Replace custom builder adapter with ClusterClientOptions.builder(ClientOptions).
2019-03-27 08:58:27 +01:00
Christoph Strobl
9ce10bb08f DATAREDIS-949 - Polishing.
Favor AssertJ over Hamcrest.

Original Pull Request: #417
2019-03-26 10:22:23 +01:00
Mark Paluch
2cb3e056b1 DATAREDIS-949 - Consider max-redirects using Lettuce.
LettuceConnectionFactory now considers the maximal redirection limit for Redis Cluster redirections.

Previously, the max-redirects limit was not configured in Lettuce.

Original Pull Request: #417
2019-03-26 10:01:20 +01:00
Spring Operator
d694b63503 DATAREDIS-948 - URL Cleanup.
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://www.apache.org/licenses/ with 1 occurrences migrated to:
  https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 696 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).

Original Pull Request: #422
2019-03-22 10:14:10 +01:00
Christoph Strobl
bda9f7ea76 DATAREDIS-910 - Updated changelog. 2019-03-07 10:30:17 +01:00
Mark Paluch
d7a60f8f30 DATAREDIS-936 - Upgrade to Jedis 2.9.3. 2019-03-06 15:32:21 +01:00
Christoph Strobl
570ed3dbcd DATAREDIS-888 - Polishing
Original Pull Request: #384
2019-02-28 12:49:09 +01:00
Mark Paluch
1145a92829 DATAREDIS-888 - Use Lettuce's read-only Partition view for node conversion.
We now use the read-only view of Lettuce's Partition object to convert Lettuce RedisClusterNode objects into Spring Data RedisClusterNode. The read-only view is atomic and does not require external synchronization.

Original Pull Request: #384
2019-02-28 12:48:41 +01:00
Mark Paluch
f2287c6ec5 DATAREDIS-932 - Fix typo in exception message. 2019-02-18 08:48:30 +01:00
Mark Paluch
933a0c5837 DATAREDIS-930 - Polishing.
Add since tags. Simplify test using Lombok annotations. Reformat code.

Original pull request: #385.
2019-02-15 11:20:32 +01:00
Luis De Bello
99508cb332 DATAREDIS-930 - Return port/host of WithHostAndPort configurations using LettuceConnectionFactory.getPort() and getHost().
We now correctly return host and port from configurations that implement WithHostAndPort instead of always using RedisStandaloneConfiguration.

Original pull request: #385.
2019-02-15 11:20:16 +01:00
Mark Paluch
086e8fa292 DATAREDIS-923 - Prepare 2.1.5 (Lovelace SR5). 2019-02-13 09:55:36 +01:00
Mark Paluch
06b8567a0a DATAREDIS-923 - Updated changelog. 2019-02-13 09:55:34 +01:00
NFM
0e5cc7d24a DATAREDIS-915 - Fix RedisCacheManager example in reference documentation.
Original pull request: #380.
2019-02-07 15:02:20 +01:00
Mark Paluch
efb798c619 DATAREDIS-901 - Prepare 2.1.4 (Lovelace SR4). 2019-01-10 12:34:54 +01:00
Mark Paluch
b525496c08 DATAREDIS-901 - Updated changelog. 2019-01-10 12:34:52 +01:00
Mark Paluch
dcda0ca6e5 DATAREDIS-900 - Updated changelog. 2019-01-10 12:26:40 +01:00
Mark Paluch
7285783b9c DATAREDIS-899 - Updated changelog. 2019-01-10 11:01:23 +01:00
Mark Paluch
b6dc8bf87e DATAREDIS-918 - Enable Lettuce's global timeouts by default.
LettuceClientConfiguration now enables Lettuce's global timeouts by default to enable timeouts using the reactive API. This change prevents hanging Redis commands due to a blocked connection or when Redis is down. Timeouts are enabled through defaulting so setting ClientOptions or ClusterClientOptions overrides this behavior.

Original Pull Request: #381
2019-01-09 14:05:47 +01:00
Mark Paluch
1710bd0d8e DATAREDIS-917 - Update copyright years to 2019. 2019-01-02 14:17:18 +01:00
Mark Paluch
58b8b490bc DATAREDIS-913 - Delete multiple keys through ReactiveRedisTemplate.delete(Publisher) and unlink(Publisher).
We now delete all keys that are emitted by the source publisher when invoking delete(Publisher) and unlink(Publisher). Both methods split incoming keys into chunks of 128 keys to keep a balance between latency and the issued command count.

Previously, delete(Publisher) and unlink(Publisher) only deleted the first key.

Original Pull Request: #379
2018-12-20 10:01:56 +01:00
Mark Paluch
e31b32eb5c DATAREDIS-909 - Fix constructor creation of entities with collection-typed properties.
We now consider the property type in value conversion for constructor arguments to provide the appropriate value type. Previously, we considered the component type which converted a Collection<T> to a single T that caused downstream ClassCastException.

Original Pull Request: #378
2018-12-20 10:01:39 +01:00
Christoph Strobl
6d43ddf6d0 DATAREDIS-906 - Updated changelog. 2018-12-11 11:43:21 +01:00
chao chang
8f835b18e1 DATAREDIS-903 - Remove Javadoc for unused RedisClusterConfiguration settings.
The following configuration keys which are not used in RedisClusterConfiguration, are removed from the Javadoc.
	 * spring.redis.cluster.timeout=5
	 * spring.redis.cluster.password=foobar

Original pull request: #375.
2018-12-06 08:47:52 +01:00
Mark Paluch
9470e2bc26 DATAREDIS-885 - Prepare 2.1.3 (Lovelace SR3). 2018-11-27 13:42:18 +01:00
Mark Paluch
1038a81f64 DATAREDIS-885 - Updated changelog. 2018-11-27 13:42:15 +01:00
Mark Paluch
387f0404f4 DATAREDIS-879 - Updated changelog. 2018-11-27 12:36:52 +01:00
Mark Paluch
86a81643b0 DATAREDIS-880 - Updated changelog. 2018-11-27 11:27:26 +01:00
Mark Paluch
b10cdf400c DATAREDIS-890 - Polishing.
Add author tags. Use try-with-resources to close Jedis.

Original pull request: #373.
2018-11-23 10:17:47 +01:00
ChenGuanqun
4a4a2d6f36 DATAREDIS-890 - Randomize Redis Cluster node order before topology retrieval.
We now shuffle the set of Redis Cluster nodes before retrieving the topology. This change reduces load on the first node in the known nodes set.

Original pull request: #373.
2018-11-23 10:17:47 +01:00
Mark Paluch
69e77bf790 DATAREDIS-878 - Prepare 2.1.2 (Lovelace SR2). 2018-10-29 12:52:55 +01:00
Mark Paluch
815141410a DATAREDIS-878 - Updated changelog. 2018-10-29 12:52:52 +01:00
Mark Paluch
7e5d458387 DATAREDIS-875 - Polishing.
Reformat code.

Original pull request: #368.
2018-10-25 15:09:59 +02:00
Christoph Strobl
a547188fc3 DATAREDIS-875 - Omit MappingRedisConverter type hint for primitive type properties.
We now additionally check if the target property is a primitive type and do no longer add the type hint if so.

Original pull request: #368.
2018-10-25 15:09:59 +02:00
Mark Paluch
598875df75 DATAREDIS-872 - Polishing.
Create unit tests for RedisAtomic counter initialization. Refactor setIfAbsent(…) method to initializeIfAbsent() to not expose additional API methods.

Original pull request: #367.
2018-10-19 12:31:13 +02:00
ningwei
e6c26ad93e DATAREDIS-872 - Fix race condition in RedisAtomic counters initialization.
We now use setIfAbsent to initialize RedisAtomic counters if no initial value was given. Using setIfAbsent turns the initialization into a single atomic step that prevents race conditions of the previously check and set method that required two Redis commands.

Previously, concurrent processes (threads, external changes to Redis) could set the initial value between the existence check and the value set operation that caused the last participant to win.

Original pull request: #367.
2018-10-19 12:31:11 +02:00
Mark Paluch
11aa290ae4 DATAREDIS-874 - Polishing.
Align Javadoc tonality across RedisAtomic… types.
2018-10-16 12:06:32 +02:00
Mark Paluch
16e890a85e DATAREDIS-866 - Updated changelog. 2018-10-15 14:19:07 +02:00
Mark Paluch
5aa02ce538 DATAREDIS-867 - Updated changelog. 2018-10-15 12:46:31 +02:00
Mark Paluch
d6dc161b7e DATAREDIS-871 - Prepare 2.1.1 (Lovelace SR1). 2018-10-15 10:40:57 +02:00
Mark Paluch
afff25eede DATAREDIS-871 - Updated changelog. 2018-10-15 10:40:55 +02:00
Mark Paluch
426bd11bef DATAREDIS-861 - Prepare 2.1 GA (Lovelace). 2018-09-21 07:07:51 -04:00