Commit Graph

2554 Commits

Author SHA1 Message Date
Mark Paluch
e7abb9a516 Correctly release connection after switching to Pub/Sub mode.
LettuceConnection.switchToPubSub now correctly releases its underlying connection when switching to Pub/Sub. Also, we improved safeguards to avoid using closed connections.

Closes #2331
2022-06-03 09:14:18 +02:00
Mark Paluch
14eebce19c Capture subscriber initialization exceptions in init future.
We now capture exceptions during the connection initialization and subscription to avoid getting the container into an invalid state.

Closes #2335
2022-06-02 09:07:17 +02:00
Mark Paluch
3c1e8579b0 Fix resource disposal ordering in LettuceConnectionFactory.
We now close the cluster command executor before cleaning up the connection pools so that we first release all held connections before pruning the connection pools.
Previously, the pools were pruned first leading to an attempt to return the connection held by the cluster command executor causing a PoolException.

Closes #2330
2022-05-24 15:18:11 +02:00
John Blum
1408991fc5 Remove Docker Registry login.
Closes #2327.
2022-05-16 13:15:43 -07:00
Christoph Strobl
81c55af056 After release cleanups.
See #2303
2022-05-13 10:15:13 +02:00
Christoph Strobl
d64a29178e Prepare next development iteration.
See #2303
2022-05-13 10:15:10 +02:00
Christoph Strobl
28efb91bcd Release version 2.7 GA (2021.2.0).
See #2303
2022-05-13 10:05:08 +02:00
Christoph Strobl
4e74c7ede8 Prepare 2.7 GA (2021.2.0).
See #2303
2022-05-13 10:04:21 +02:00
Christoph Strobl
d35ed93321 Update spring.io project urls.
This commit updates outdated projects.spring.io links to spring.io/projects.

Closes: #2319
2022-05-10 12:52:56 +02:00
Christoph Strobl
d34e96295d Provide additional meta information via pom.xml
Add description, url, scm and issueManagement.

Closes: #2318
2022-05-10 12:52:11 +02:00
Christoph Strobl
4a584a058c Update build triggers.
See: #2284
2022-05-09 13:37:07 +02:00
Mark Paluch
f30e93e8d0 Polishing.
Update Spring Framework documentation links.

See #2297
2022-04-21 11:49:29 +02:00
Dveamer
f9d85ebaab Fix broken link in the redis-transaction ref docs.
The link to "declarative transaction management" was broken.

Closes #2297
2022-04-21 11:35:54 +02:00
Mark Paluch
f66384a4ba Attempt early usage of custom converters.
We now try to eagerly apply a custom converter when reading Redis properties in the MappingRedisConverter before considering type hints from the hash.

We require type hints to properly restore the target type for a hash entry as Redis data is all byte arrays, so a simple String needs a type hint before we can load it back into an e.g. Object-typed property. Subtypes of properties (such as ZoneRegion for ZoneId) are sometimes not associated with a converter as only the parent type (ZoneId) is associated with a converter. Trying to convert the value into the subtype directly through our ConversionService would fail in that case.

Closes #2307
2022-04-20 15:16:56 +02:00
Christoph Strobl
98cb7ed477 After release cleanups.
See #2284
2022-04-19 11:21:18 +02:00
Christoph Strobl
16246f8336 Prepare next development iteration.
See #2284
2022-04-19 11:21:15 +02:00
Christoph Strobl
12674b52da Release version 2.7 RC1 (2021.2.0).
See #2284
2022-04-19 11:10:55 +02:00
Christoph Strobl
509c02f0bd Prepare 2.7 RC1 (2021.2.0).
See #2284
2022-04-19 11:10:15 +02:00
Mark Paluch
ccb4fe4df2 Correctly return connection future from StaticMasterReplicaConnectionProvider.
We now pass on the connection future when connecting through StaticMasterReplicaConnectionProvider.getConnectionAsync(…).

Closes #2296
2022-04-06 14:26:50 +02:00
Mark Paluch
6cd9d2b3c3 Polishing.
Add nullable annotations. Add tests.

See #2279
Original pull request: #2280.
2022-03-31 10:07:40 +02:00
helei01_gza
71549a4605 Eagerly return null values in AbstractOperations.deserializeGeoResults(…) to avoid null dereference.
Closes #2279
Original pull request: #2280.
2022-03-31 10:07:27 +02:00
Mark Paluch
0310f17c59 Upgrade to Apache Commons Pool2 2.11.1.
Closes #2295
2022-03-31 09:40:06 +02:00
Greg L. Turnquist
587600a35e After release cleanups.
See #2267
2022-03-21 10:20:33 -05:00
Greg L. Turnquist
c9061467c0 Prepare next development iteration.
See #2267
2022-03-21 10:20:31 -05:00
Greg L. Turnquist
86ed496cb2 Release version 2.7 M4 (2021.2.0).
See #2267
2022-03-21 10:09:34 -05:00
Greg L. Turnquist
16ffbbf6a9 Prepare 2.7 M4 (2021.2.0).
See #2267
2022-03-21 10:07:09 -05:00
Mark Paluch
cd5a76bb3e Upgrade to Lettuce 6.1.8.RELEASE.
Closes #2281
2022-03-18 11:48:50 +01:00
Mark Paluch
48c99d48b5 Use Java 8 for Artifactory snapshot deployments.
Closes #2268
2022-03-15 14:08:21 +01:00
Mark Paluch
8ab8a4a829 Polishing.
Update Bound operations parameter documentation order. Tweak wording.

See #2214
2022-03-10 13:52:15 +01:00
zhenqiangyi
70378b1183 Fix parameter documentation order of ZSetOperations methods.
Closes #2214
2022-03-10 13:51:52 +01:00
Mark Paluch
86d0b4f61d Polishing.
Update since tags. Move FlushOption converters to client-specific converters. Use method-references where possible.

See #2187
Original pull request: #2190.
2022-03-10 10:44:09 +01:00
Napster
3879a5a80d Add support for flush modes using FLUSHDB and FLUSHALL commands.
Closes #2187
Original pull request: #2190.
2022-03-10 10:43:37 +01:00
Mark Paluch
a0b70a346c Polishing.
Avoid races in command unsubscribe fetching.

See #2226
2022-03-09 13:53:01 +01:00
dengliming
39d7c37909 Simplify CLUSTER MYID command for Jedis.
Closes #2226
2022-03-09 13:43:15 +01:00
Mark Paluch
b87ef55eb4 Polishing.
Add support for MINID trimming. Add tests. Extract Jedis XAddParams conversion to StreamConverters.

Reorder methods. Simplify StreamRecord creation.

See #2247
2022-03-09 11:06:02 +01:00
dengliming
a3271f61f9 Support for approximate trimming in XAddOptions and AddStreamRecord.
Closes #2247
2022-03-09 09:46:13 +01:00
Mark Paluch
e63d5df8a7 Polishing.
Make tests less strict for random values test.

See #2267
2022-02-23 15:34:53 +01:00
Mark Paluch
47f2254089 Polishing.
Add since tags. Consistently document scan command with try-with-resources guidance. Use try-with-resources in tests.

See #2260
Original pull request: #2263.
2022-02-23 15:29:32 +01:00
Chen Li
14a1419feb Support scan in RedisTemplate.
Closes #2260
Original pull request: #2263.
2022-02-23 15:29:07 +01:00
Mark Paluch
2a1be5d6fe Upgrade to Redis 6.2.6.
Closes #2272
2022-02-22 14:15:08 +01:00
Mark Paluch
bb249934c7 Update CI properties.
See #2267
2022-02-22 14:09:32 +01:00
Mark Paluch
979a478e13 Upgrade to Maven Wrapper 3.8.4.
See #2271
2022-02-22 13:59:06 +01:00
Mark Paluch
f4f8e366bb Polishing.
See #2268
2022-02-22 09:14:03 +01:00
Mark Paluch
b53302cb05 Use Java 17 to build snapshots for Artifactory.
Closes #2268
2022-02-21 16:02:03 +01:00
Mark Paluch
8ffd736244 After release cleanups.
See #2243
2022-02-18 11:15:41 +01:00
Mark Paluch
ffe3cfbaf8 Prepare next development iteration.
See #2243
2022-02-18 11:15:39 +01:00
Mark Paluch
44ead34558 Release version 2.7 M3 (2021.2.0).
See #2243
2022-02-18 11:09:11 +01:00
Mark Paluch
c0d4d48c2c Prepare 2.7 M3 (2021.2.0).
See #2243
2022-02-18 11:08:48 +01:00
Mark Paluch
c93ddaba77 Polishing.
Allow Jedis to exist pub/sub loop gracefully. Await unsubscribe. Reduce retry backoff to allow from broken connection recovery. Do not use pooling to avoid using broken connections.

See #2256
2022-02-17 16:24:39 +01:00
Christoph Strobl
9e28039399 Update copyright year to 2022.
See: #2264
2022-02-17 11:22:47 +01:00