Commit Graph

1129 Commits

Author SHA1 Message Date
Thomas Darimont
d696a2feff DATAREDIS-332 - @Transactional operation should use the same connection.
We only unbind the current redisConnectionFactory from the current thread if the transaction is not active anymore.
Previously we performed the unbinding in RedisTemplate.execute(RedisCallback, boolean, boolean) overtime which lead to the fact that the next redis operation within the same transaction used a different redis connection, which could lead to exhaustion of the connection pool.
We also ensure that we correctly unbind the RedisConnectionFactory resource from the TransactionSynchronizationManager on transaction completion in RedisTransactionSynchronizer.afterCompletion(int).
Added test case supplied from issue.

Original pull request: #134.
2015-04-13 13:00:00 +02:00
Thomas Darimont
6dfaca5121 DATAREDIS-384 - Remove Java6 build for Travis-CI.
The only reason why the travis-ci build for SD Redis fails is because it still tries to build with java 6 which isn't supported by the asciidoctor gradle plugin.
2015-03-18 13:29:45 +01:00
Stephane Nicoll
61389e6ef2 DATAREDIS-383 - Improve JavaDoc of RedisCacheManager.
Extended description on setCacheNames(..).

Original pull request: #132.
2015-03-18 13:14:41 +01:00
Oliver Gierke
e31b5f2164 DATAREDIS-377 - Updated changelog. 2015-03-06 08:21:29 +01:00
Thomas Darimont
3c7d0eb582 DATAREDIS-375 - Avoid repeatedly decorating a cache.
Previously a transactional RedisCacheManager decorated a cache with the TransactionAwareCacheDecorator twice. We now make sure that a particular cache is only decorated once with a TransactionAwareCacheDecorator.

Original Pull Request: #128
2015-03-05 06:30:33 +01:00
Christoph Strobl
a401881aca DATAREDIS-372 - Allow easier RedisSentinelConfiguration setup.
We now allow to initialize a RedisSentinelConfiguration based on a given String collection of host:ports.
  sentinelHostAndPorts[0] = 127.0.0.1:23679
  sentinelHostAndPorts[1] = 127.0.0.1:23680

Further on it’s possible to pass in a PropertySource containing master name and sentinel nodes.
  spring.redis.sentinel.master=myMaster
  spring.redis.sentinel.nodes=127.0.0.1:23679,127.0.0.1:23680

Original pull request: #126.
2015-02-16 15:17:07 +01:00
Christoph Strobl
70f5d854cf DATAREDIS-369 - Avoid resource leak in RedisCache.
We now check the presence of a prefix which allows to identify the keys associated with the cache to either keep track of keys or use the prefix to remove them on clear.

This is a small fix intended to be back ported to the Evans (1.4.x) release train. Additional refactoring will be done for the Fowler release.

Original Pull Request: #122
2015-02-05 09:29:27 +01:00
Thomas Darimont
76c07f5832 DATAREDIS-328 - RedisCacheManager should not instantiate caches in setCacheNames().
We now construct the caches for the configured cache-names in afterPropertiesSet(). Previously the caches were created in the setter which lead to unwanted property-set order dependencies.

Original pull request: #123.
2015-02-02 15:06:33 +01:00
Oliver Gierke
018db5cedf DATAREDIS-366 - After release cleanups. 2015-01-28 17:47:03 +01:00
Spring Buildmaster
c6790c8d80 DATAREDIS-366 - Prepare next development iteration. 2015-01-28 08:25:38 -08:00
Spring Buildmaster
80101d1d5e DATAREDIS-366 - Release version 1.4.2.RELEASE (Evans SR2). 2015-01-28 08:25:30 -08:00
Oliver Gierke
a3217a6e7e DATAREDIS-366 - Prepare 1.4.2.RELEASE (Evans SR2). 2015-01-28 12:06:11 +01:00
Oliver Gierke
f3a7f862e9 DATAREDIS-366 - Updated changelog. 2015-01-28 11:24:06 +01:00
Oliver Gierke
2d9d7feab3 DATAREDIS-365 - Updated changelog. 2015-01-28 10:14:53 +01:00
Christoph Strobl
2df4fdd52f DATAREDIS-366 - Upgrade Dependencies.
org.springframework: 4.0.6 > 4.0.9
com.fasterxml.jackson: 2.2.0 > 2.2.4
2015-01-22 07:39:05 +01:00
Oliver Gierke
a7ba8974a5 DATAREDIS-360 - Updated changelog. 2015-01-20 08:04:30 +01:00
Thomas Darimont
298f0a80cf DATAREDIS-364 - Open-up API in RedisCacheManager for easier extensibility.
We now allow users to build custom CacheManagers based on RedisCacheManager more easily by making a broader API accessible to sub-classes.
In that sense we also allowing RedisCache to be used in custom implementations by making it public.

Original pull request: #120.
2015-01-19 14:19:17 +01:00
Christoph Strobl
7c9476e985 DATAREDIS-361 - Read html resources for docs zip from asciidoctor output dir.
We now read generated html resources along with required css files from the asciidoctor output directory.
2014-12-03 08:20:09 +01:00
Thomas Darimont
479c6767fd DATAREDIS-356 - Check NonTransientDataAccessException for NOSCRIPT error.
We now check for a NonTransientDataAccessException instead of just an UncategorizedDataAccessException to conver all relevant exception types.
Corrected typo in method name. Added infrastructure for driver specific DefaultScriptExecutorTests.
Removed usage of RelaxedJunit4ClassRuner and using MinimumRedisRule
instead.
Removed obsolete test context configuration for ScriptExecutorTests.

Original pull request: #115.

Conflicts:
	src/test/java/org/springframework/data/redis/RedisTestProfileValueSource.java
2014-11-28 10:11:40 +01:00
Thomas Darimont
1880bb3604 DATAREDIS-354 - Made JavaType lookup configurable for Jackson RedisSerializers.
We now allow to customise the JavaType to use for a given Class<> by using the getJavaType method. Added constructor variants to JacksonJsonRedisSerializer and Jackson2JsonRedisSerializer.

Original pull request: #113.
2014-11-27 14:44:46 +01:00
Oliver Gierke
73d71347a2 DATAREDIS-353 - After release cleanups. 2014-10-31 21:47:20 +01:00
Spring Buildmaster
bbe9704ea0 DATAREDIS-353 - Prepare next development iteration. 2014-10-30 06:47:19 -07:00
Spring Buildmaster
92d921e145 DATAREDIS-353 - Release version 1.4.1.RELEASE (Evans SR1). 2014-10-30 06:47:14 -07:00
Oliver Gierke
5750620dc0 DATAREDIS-353 - Prepare 1.4.1.RELEASE (Evans SR1). 2014-10-30 12:39:10 +01:00
Oliver Gierke
c988ab26bf DATAREDIS-353 - Updated changelog. 2014-10-30 11:57:43 +01:00
Christoph Strobl
05fb2097aa DATAREDIS-347 - Fix unintended duplicate script execution.
We now inspect the message of the exception thrown to determine whether the error resulted from a script not being present or an other error. In case the script is not present we simply invoke eval.

Original pull request: #108
2014-10-24 19:26:25 +02:00
Oliver Gierke
90c95b63d1 DATAREDIS-345 - After release cleanups. 2014-09-05 14:37:59 +02:00
Spring Buildmaster
2e80d14310 DATAREDIS-345 - Prepare next development iteration. 2014-09-05 14:35:59 +02:00
Spring Buildmaster
9d634e9789 DATAREDIS-345 - Release version 1.4.0.RELEASE (Evans GA). 2014-09-05 03:24:14 -07:00
Oliver Gierke
4a134e16a5 DATAREDIS-345 - Prepare 1.4.0.RELEASE (Evans GA). 2014-09-05 11:35:34 +02:00
Oliver Gierke
57f773198a DATAREDIS-345 - Updated changelog. 2014-09-05 09:23:50 +02:00
Oliver Gierke
820c435b48 DATAREDIS-339 - Updated changelog. 2014-09-05 08:16:46 +02:00
Thomas Darimont
edcf79e67f DATAREDIS-346 - Update Spring Version to 4.0.7. 2014-09-04 15:04:08 +02:00
Christoph Strobl
4c7e405f7b DATAREDIS-344 - Assert RedisCache works with Spring 4.1.
Added `putIfAbsent` to `RedisCache` to satisfy compatibility with newly introduced method.

Original pull request: #102.
2014-09-04 15:02:19 +02:00
Christoph Strobl
f94df9f535 DATAREDIS-340 - Polish performance improvement of zAdd using jedis.
It turned out that the version check throttled performance so we moved things around to avoid iterating multiple times and still perform the check in a non intrusive way.
2014-09-04 14:02:36 +02:00
Konstantin Shchepanovskyi
b26c56b101 DATAREDIS-340 - Improve performance of zAdd elements when using jedis.
Optimize initial size of HashSet and use a Set implementation to check for score duplicates.
Move jedis version check outside loop.

Original PR: #101
CLA: 90520140903040912 (Konstantin Shchepanovskyi)
2014-09-04 14:00:21 +02:00
Oliver Gierke
5df8c3bc80 DATAREDIS-336 - Polished Asciidoctor setup.
Simplified tasks into single asciidoctor task. Wipe out expandPlaceholders to avoid needing the hack to in turn avoid the issue with file expansion.

Removed obsolete baseDir prefix from index.adoc.

Original pull request: #94.
2014-09-04 08:44:47 +02:00
Oliver Gierke
ef7f8221b0 DATAREDIS-336 - Use Spring Data Build CSS and fix resources zip content.
We now depend on the Spring Data Build resources zip to refer to the centrally managed stylesheet. Fixed the Asciidoctor setup to copy the CSS from the shared resources into the target folder. Tweaked docsZip task to trigger docbook generation as well as PDF generation before zipping and corrected the includes directives to create the proper zip file structure.

Original pull request: #94.
2014-09-04 08:44:47 +02:00
Oliver Gierke
4d2fd187ab DATAREDIS-336 - Improvements to reference documentation build.
Fixed Asciidoctor source files to avoid as many warnings as possible. Switched to matching AsciidoctorJ version. Fixed doctype definition by making it an option and not an attribute. Switched from backend to backends (as recommended for Asciidoctor 1.5).

Original pull request: #94.
2014-09-04 08:44:47 +02:00
Christoph Strobl
c6b2ba75af DATAREDIS-336 - Copy styles to output dir.
Upgraded to Asciidoctor 1.5.0. We now cheat on Gradle docbook-reference-plugin by directly copying files to reference work dir to bypass expanding files. Create an empty source folder so that the plugin does not fail.

Original pull request: #94.
2014-09-04 08:44:47 +02:00
Greg Turnquist
fe6b75ee2a DATAREDIS-336 - Fine tune build process and formatting.
Original pull request: #94.
2014-09-04 08:44:47 +02:00
Christoph Strobl
5f638fdda3 DATAREDIS-336 - Move to Asciidoctor for reference documentation.
Add Asciidoctor plugin to Gradle. Reformat and extract some content of files that could not be parsed. Added already converted files.

Original pull request: #94.
2014-09-04 08:44:47 +02:00
Oliver Gierke
81a14b6c02 DATAREDIS-336 - Removed old docbook reference documentation.
Original pull request: #94.
2014-09-04 08:44:47 +02:00
Oliver Gierke
fdfd7fe6e7 DATAREDIS-338 - After release cleanups. 2014-08-13 16:29:32 +02:00
Spring Buildmaster
fc303bd878 DATAREDIS-338 - Prepare next development iteration. 2014-08-13 07:26:45 -07:00
Spring Buildmaster
6ff22117b1 DATAREDIS-338 - Release version 1.4.0.RC1 (Evans RC1) 2014-08-13 07:26:41 -07:00
Oliver Gierke
0b272103bc DATAREDIS-338 - Prepare 1.4.0.RC1 (Evans RC1). 2014-08-13 15:05:22 +02:00
Oliver Gierke
20455758de DATAREDIS-338 - Updated changelog. 2014-08-13 15:05:17 +02:00
Oliver Gierke
c442a785ff DATAREDIS-331 - Updated changelog. 2014-08-13 11:04:24 +02:00
Thomas Darimont
5abfa8716e DATAREDIS-337 - Improve handling of overridden methods in MessageListenerAdapter.
Previously overriding message handler methods of the delegate passed to MessageListenerAdapter resulted in the message handler method called multiple times. We now make sure that a message handler method is only found and invoked  once.

Original pull request: #95.
2014-08-13 08:53:49 +02:00