Commit Graph

1617 Commits

Author SHA1 Message Date
Mark Paluch
d8719b9338 Prepare 3.1.9 (2023.0.9).
See #2829
2024-02-16 08:55:31 +01:00
Mark Paluch
de1bfd3202 Fix method name in Caching reference documentation.
Closes #2837
2024-01-25 09:14:10 +01:00
Mark Paluch
7c8b4a9675 Remove redundant assertion from RedisTemplate.afterPropertiesSet(…).
Closes #2832
2024-01-19 09:35:40 +01:00
Mark Paluch
6a1d7f8a06 Update deprecation description of JedisConnectionFactory.setDatabase(…).
Mention database index instead of client name.

Closes #2831
2024-01-18 11:01:14 +01:00
Mark Paluch
a341f110b0 Prepare 3.1.8 (2023.0.8).
See #2809
2024-01-12 10:00:04 +01:00
Mark Paluch
c7aa065b18 Update Jedis documentation to reflect supporting Redis Streams.
Closes #2824
2024-01-09 09:19:33 +01:00
Mark Paluch
61be87a407 Extend license header copyright years to 2024.
See #2819
2024-01-02 10:58:59 +01:00
Mark Paluch
be086318a2 Prepare 3.1.7 (2023.0.7).
See #2776
2023-12-15 13:14:52 +01:00
Mark Paluch
3d9e3c3860 Differentiate between initial exception handling, recovery and recovery after subscription.
We now differentiate exception handling regarding the recovery state. Initial listen fails if the connection is unavailable. Upon recovery after a preceeding subscription we now log the success to create a counterpart to our error logging.

Closes: #2782
Original Pull Request: #2808

# Conflicts:
#	src/main/java/org/springframework/data/redis/listener/RedisMessageListenerContainer.java
#	src/test/java/org/springframework/data/redis/listener/RedisMessageListenerContainerUnitTests.java
2023-12-15 11:12:41 +01:00
Christoph Strobl
f68e8d4073 Add tests to verify symmetric usage of scan cursor id.
See: #2796
2023-12-13 14:56:09 +01:00
Mark Paluch
d58cca49c7 Use Long.parseUnsignedLong/toUnsignedString for SCAN cursor id parsing.
Redis uses an unsigned 64bit value for its cursor id which is now captured via parseUnsignedLong.

Closes: #2796
2023-12-13 14:55:53 +01:00
Mark Paluch
439cc3609f Polishing.
Fix Javadoc reference.

See #2776
2023-12-13 09:11:06 +01:00
Mark Paluch
5d07415dd5 Remove duplicate keys from RedisQueryEngine.
We now avoid duplicate keys if a key is found in two indices.

Closes #2799
2023-12-11 10:28:13 +01:00
Junghoon Ban
844d2365d6 Refine getRequiredAdapter()usage in RedisQueryEngine.
We now use getRequiredAdapter() instead of getAdapter() to enforce either an object or a proper exception.

Closes #2800
Original pull request: #2801
2023-12-11 10:13:13 +01:00
Mark Paluch
8c33759f3a Accept empty config values in the Lettuce connection wrapper.
Closes #2798
2023-12-08 14:57:06 +01:00
John Blum
8b577951a6 Polishing.
Rename asString(:Object) to toString(:Object) for consistency with toBytes(..).

Original pull request: #2774
2023-11-17 15:11:56 -08:00
Junghoon Ban
e151e70fdc Remove unnecessary method call in RedisKeyValueAdapter.
Closes #2774
2023-11-17 15:11:50 -08:00
Mark Paluch
d778dbd380 Prepare 3.1.6 (2023.0.6).
See #2736
2023-11-17 13:37:51 +01:00
Mark Paluch
a68f704a67 Polishing.
Use module name defaulting to determine module prefix.

Closes #2762
2023-11-06 11:05:49 +01:00
Junghoon Ban
532a011596 Polishing.
Use module identifier instead of constant.

Closes #2762
2023-11-06 10:55:38 +01:00
Mark Paluch
409d2a8b58 Polishing.
Tweak naming. Simplify converters by removing unused methods.

See #2754
2023-10-27 15:00:53 +02:00
Junghoon Ban
5dd43c1f59 Use pattern matching instead of type casting.
Closes #2754
2023-10-27 15:00:52 +02:00
John Blum
8fefea7dce Fix compilation failure in LettuceConnection.
Compilation failure was caused by a missing local variable declaration ('command', which was declared as 'redisCommand') on line 1036.

Closes #2756
2023-10-23 12:59:00 -07:00
John Blum
a0ddc0ec0f Safely add and register the MessageListener to Topic mapping.
Given addListener(:MessageListener, :Collection<Topic>) could be called concurrently from the addMessageListener(:MessageListener, Collection<Topic>) method by multiple Threads, and the RedisMessageListenerContainer Javadoc specifically states that it is safe to call the addMessageListener(..) method conurrently without any external synchronization, and the registeration (or mapping) of listener to Topics is a componund action, then a race condition is possible.

Closes #2755
2023-10-23 12:44:36 -07:00
John Blum
5778dec7b5 Apply consistent Exception variable names to all catch blocks.
We now consistently align with the core Spring Framework's use of 'ex' as the variable name for Exceptions handled in catch blocks, and 'ignore' for all Exceptions thrown, but ignored by framework code. Both 'ex' and 'ignore' were appropriately used based on the context and nautre of the Exception handler in the catch block.

Additionally, we use the 'expected' variable name for Exception thrown in tests where the thrown Exception is the expected outcome of the test case.

Only 1 exception exists to these name conventions, and that is 'nested', which was necessarily used in ScanCursor due to the nested try-catch blocks.

Applied consistent use of String.format(..) to Exception messages requiring formatting.

Formatted catch block according to source code formatting style.

Closes #2748
Original pull request: #2749
2023-10-19 09:38:19 +02:00
Mark Paluch
89229afe54 Polishing.
Add since tag. Reformat code.

See #2601
2023-10-19 09:32:36 +02:00
John Blum
4328325b0b Prepare 3.1.5 (2023.0.5).
See #2711
2023-10-13 08:00:48 -07:00
Christoph Strobl
bb5b30fe00 Update native-image runtime hints.
Closes: #2729
2023-10-13 07:54:26 +02:00
Mark Paluch
3684484e61 Correctly apply Reactive zadd NX/XX command flags.
We now correctly apply if exists/if not exists constraints on the reactive zadd command.

Previously, we only considered upsert which wasn't sufficient to apply xx/nx.

Closes #2731
2023-10-12 10:03:25 +02:00
Mark Paluch
f86edd5bbc Fix broken unit tests.
Closes #2720
2023-09-28 14:41:33 +02:00
Mark Paluch
6a51b3da24 Refine RedisSerializer implementations.
This commit polishes up method ordering, introduces Javadoc where missing and updates nullability annotations and argument names.

Closes #1097
2023-09-21 14:59:19 +02:00
Mark Paluch
7cef80e340 Prepare 3.1.4 (2023.0.4).
See #2686
2023-09-15 10:52:12 +02:00
Mark Paluch
d36dbdcd68 Remove changelog shipped with the binaries.
Closes #2131
2023-09-14 11:19:06 +02:00
John Blum
711832440f Polish enhanced switch statements.
See #2705
Original pull request: #2706
2023-09-11 16:52:31 -07:00
Junghoon Ban
e34872db50 Change switch statements to switch expressions.
Remove unused default branches.

Closes #2705
Original pull request: #2706
2023-09-11 16:50:51 -07:00
John Blum
c64b22b9d2 Polish for #2696.
Closes #2701
Original pull request: #2696
2023-09-06 17:15:10 -07:00
Mingyuan Wu
cf940ce639 Fix wrong asserted code in ConvertingCursor.
Pull Request: #2696
2023-09-06 16:53:07 -07:00
Junghoon Ban
518a07c328 Add missing anchor to reference docs.
Closes #2700
2023-09-06 14:15:21 +02:00
Mark Paluch
d689fcee53 Prepare 3.1.3 (2023.0.3).
See #2642
2023-08-18 14:03:49 +02:00
Mark Paluch
98707a8318 Polishing.
Replace qualified class name access of inner classes with simple names and imports.

Remove Java 8 guards. Extend supported temporal types in Jsr310Converters. Remove superfluous converter annotations.

Simplify tests.

See #2677
Original pull request: #2681
2023-08-17 09:15:02 +02:00
John Blum
d89641e3a0 Register Converters for Offset java.time types in JSR310Converters.
We now appropriately handle OffsetDateTime and OffsetTime the same as all other java.time types, supported as simple types on Spring application (persistent) entity classes.

Closes #2677
2023-08-17 09:00:09 +02:00
Mark Paluch
2b9b8c2c9b Polishing.
Use Regex to capture the various styles of CLUSTER NODES endpoint representations.

See #2678
Original pull request: #2679
2023-08-16 11:54:23 +02:00
Sorokin Evgeniy
0e0f34a4a4 Add support for bracket-less IPv6 addresses to CLUSTER NODES Converter.
Closes #2678
Original pull request: #2679
2023-08-16 11:54:22 +02:00
Mark Paluch
05ae96f88d Polishing.
Tweak wording around thread-safety. Include notices in connection factories.

Reformat asciidoc.

See #2653
Original pull request: #2667
2023-08-10 11:10:08 +02:00
John Blum
91affcb77a Edit ref docs and Javadoc for connection classes to clearly state the Thread-safety guarantees.
Closes #2653
Original pull request: #2667
2023-08-10 11:09:50 +02:00
Mark Paluch
49abd4efd6 Polishing.
Replace topic label with assertion message. Reorder methods to align with Spring style.

See #2662
Original pull request: #2663
2023-08-08 10:28:08 +02:00
John Blum
1ddfd4d69b Simplify logic in RedisMessageListenerContainer and supporting classes.
Closes #2662
Original pull request: #2663
2023-08-08 10:28:08 +02:00
John Blum
e05df75c01 Fix spelling in SynchronizingMessageListener.SubscriptionSynchronizion.
Additionally, cleanup compiler warnings.

Closes #2656
Original pull request: #2657
2023-08-08 09:43:33 +02:00
Mark Paluch
b939613edb Polishing.
Use createMono/createFlux syntax instead of using the template for wrapper creation.

See #2658
Original pull request: #2659
2023-08-07 15:52:18 +02:00
John Blum
c7ded601ef Rename Function Lambda parameter to match command interface in (Default) ReactiveXxxOperations.
Cleanup compiler warning.

Fix unnatural line breaks.

Closes #2658
Original pull request: #2659
2023-08-07 15:52:18 +02:00