Commit Graph

987 Commits

Author SHA1 Message Date
Spring Buildmaster
30f71997f1 DATAREDIS-255 - Prepare next development iteration. 2014-01-28 04:35:16 -08:00
Spring Buildmaster
47f9e48999 DATAREDIS-255 - Release version 1.1.1.RELEASE. 2014-01-28 04:35:10 -08:00
Thomas Darimont
f950dfa491 DATAREDIS-255 - Prepare 1.1.1.RELEASE.
Updated documentation, changelog, notice and readme.
2014-01-28 12:53:30 +01:00
Christoph Strobl
271d3d197d DATAREDIS-254 - Clean up codebase to match spring-data conventions
Format code with spring data formatter.
2014-01-28 10:56:31 +01:00
Andy Wilkinson
fb2db4ae6f DATAREDIS-257 - Shutdown the client when DefaultLettucePool is destroyed.
DefaultLettucePool manages a RedisClient instance that's created
when afterPropertiesSet is called. The client was not being shutdown
as part of the pool's destroy() processing leading to a resource leak.
On OS X this would manifest itself as a growing number of kqueue file
descriptors being consumed eventually leading to a failure when
something tries to get a file descriptor and is unable to do so.

This commit updates destroy() to call the client's shutdown() method.

Original pull request: #26
2014-01-23 10:12:59 +01:00
Thomas Darimont
df53bc2a84 DATAREDIS-242 - Listener Container start() Returns Before Container is Really Started.
We now wait for the subscription to be present in the connection in case of async connections by periodically checking whether the subscription is available in 100ms intervals. The max time to wait for the async subscription can be configured and is set to 2 seconds by default.

Moved SpinBarrier and TestCondition from test packages as static inner classes into RedisMessageListenerContainer. Included ConnectionUtils from tests into official API.
2014-01-20 14:43:40 +01:00
Thomas Darimont
1d6ee86fb1 DATAREDIS-251 - Fix tests to work against Redis 2.8.x.
Since Redis 2.8.x keyOps#getExpire() returns -2 for empty collections (RedisList/RedisSet/RedisMap).
We're now adding a dummy entry to keep the test version agnostic. Previously getExpire() returned -1.
We also have to set the RedisAtomic(Integer|Long) to a value other than 0 to get  the value stored appropriately.

For reference see the discussion in http://redis.io/commands/ttl
2014-01-16 15:11:38 +01:00
Thomas Darimont
f425925dd5 DATAREDIS-245 - Prevent Excessive Thread creation in tests.
Due to some missing cleanup procedures excessive thread creation lead to JVM crashes during a full test run on some machines.
Improved test harness in order to properly shutdown unused threads.
Rewritten testPubSubWithNamedChannels in order to make it pass reliably by keeping the original test semantics.
Rewritten testPubSubWithPatterns in order to make it pass reliably by keeping the original test semantics.
2014-01-16 15:11:11 +01:00
Thomas Darimont
bf8facfd51 DATAREDIS-249 - Improve logging for tests in Gradle build.
Changed exceptionFormat to full in order to get more detail StackTrace information for exceptions during test execution.
2014-01-16 15:11:11 +01:00
Thomas Darimont
da75b0745e DATAREDIS-243 - Ensure compatibility with Spring Framework 4.0.
Updated dependency of XStream since Spring framework 4.0 requires a newer version.
Spring 4 added another method to get cached object to the Cache interface. The method has been added to RedisCache in order to provide compatibility, while calling get internally and casting values to required type.
2014-01-16 15:11:11 +01:00
Thomas Darimont
34ba80be42 DATAREDIS-248 - Fix generics in DecoratingStringHashMapper to be Java 8 compatible.
Original pull request #13.
2014-01-15 10:01:51 +01:00
Thomas Darimont
9e0eb5cb6d DATAREDIS-247 - locale independent test execution.
Original pull request #17.
2014-01-15 10:00:17 +01:00
Thomas Darimont
97a746e1a6 Updated README.md
Updated dev team information.
Updated external site links (redis.io).
Updated project version information to latest GA (1.1.0.RELEASE) and latest BUILD-SNAPSHOT 1.2.0.BUILD-SNAPSHOT.
2014-01-15 09:59:31 +01:00
Jennifer Hickey
1fba5ea751 Merge remote-tracking branch 'origin/1.1.0.RELEASE'
Conflicts:
	gradle.properties
2013-09-09 10:26:50 -04:00
Spring Buildmaster
7e55dbe307 [artifactory-release] Next development version 2013-09-09 06:54:41 -07:00
Spring Buildmaster
5d3f913e51 [artifactory-release] Release version 1.1.0.RELEASE 2013-09-09 06:54:36 -07:00
Jennifer Hickey
02ea2a4702 Update changelog for 1.1.0 release 2013-09-09 09:40:59 -04:00
Jennifer Hickey
5c6d1c26bf Next development iteration 2013-08-22 15:46:46 -07:00
Spring Buildmaster
e860aa47cc [artifactory-release] Release version 1.1.0.RC1 2013-08-22 15:03:22 -07:00
Jennifer Hickey
07432bd2c0 Modify changelog for 1.1.0.RC1 2013-08-22 14:45:07 -07:00
Jennifer Hickey
4550bd43d7 Minor enhancements to listener resubscribe
DATAREDIS-231

- Do not stop the container on Exception, as it
will attempt unnecessary unsubscribe

- Retry connect indefinitely until container is 
stopped

- Ensure connection is closed after subscription
failure

- Set listening to false if SubscriptionTask errors
out for any reason

- Change default recovery interval to 5 seconds
2013-08-22 14:16:12 -07:00
Jokeway
70322f78fb Resubscribe message listener on connection failure
DATAREDIS-231
2013-08-22 14:09:16 -07:00
Jennifer Hickey
5d00542741 Revert "Temp revert "Lazily instantiate shared Lettuce connection""
This reverts commit c6a2a4f7da.
2013-08-21 12:38:02 -07:00
Jennifer Hickey
b106f03bd7 Do not return Jedis conns to pool after NPE
DATAREDIS-153

- Return conn to pool as broken resource if NPE
occurs (for example if a null key or value is given),
preventing later flush of OutputStream with incomplete
data

- Workaround Jedis issue in pub/sub tests that prevents
subscribing with a pooled connection

- Continue not using pool in conn tests, as they
are too brittle with potentially unclosed pipelines,
unexecuted txs, etc
2013-08-21 12:30:42 -07:00
Jennifer Hickey
e1f54d6c68 Implement RedisMap concurrent remove and replace
DATAREDIS-37
2013-08-20 16:57:49 -07:00
Jennifer Hickey
c6a2a4f7da Temp revert "Lazily instantiate shared Lettuce connection"
This reverts commit f9cdad751c.
2013-08-19 12:34:49 -07:00
Jennifer Hickey
e94fa9a35a Throw translated Exception on SRP conn failure
DATAREDIS-234
2013-08-16 15:21:25 -07:00
Jennifer Hickey
6290cbad06 Add password to SrpConnectionFactory
DATAREDIS-203
2013-08-16 15:15:33 -07:00
Jennifer Hickey
f9cdad751c Lazily instantiate shared Lettuce connection
Allow app context to start if Redis is down

DATAREDIS-209
2013-08-16 14:20:30 -07:00
Jennifer Hickey
500a94d83d Reduce test execution time when runLongTests not set 2013-08-16 13:37:29 -07:00
Jennifer Hickey
aa46fdf0a6 Make RedisTemplate use millisecond precision
DATAREDIS-195

- Make expire and expireAt use pExpire and pExpireAt,
falling back to expire and expireAt if not available
(driver does not support or using Redis 2.4)

- Add new getExpire method that will return mills
if requested, using pTTL if supported
2013-08-16 13:14:08 -07:00
Jennifer Hickey
ac851c816b Fix MessageListenerAdapter sending msg instead of body
when no Serializer is specified

DATAREDIS-233
2013-08-15 13:13:41 -07:00
Jennifer Hickey
6c9f9588ac Next development iteration 2013-08-06 10:39:24 -07:00
Spring Buildmaster
2ef84b6c8b [artifactory-release] Release version 1.1.0.M2 2013-08-06 09:16:35 -07:00
Jennifer Hickey
a1276ab455 Update changelog for version 1.1.0.M2 2013-08-05 16:52:40 -07:00
Jennifer Hickey
4630de10d1 Update scripting doc 2013-08-05 16:07:14 -07:00
Jennifer Hickey
113c215554 Update doc on usage of StringRedisConn in RedisCallbacks 2013-08-05 14:07:29 -07:00
Jennifer Hickey
5e98b25fdd Update doc on usage of RedisTemplate without serializers 2013-08-05 14:06:49 -07:00
Jennifer Hickey
5d12e20c6d Update pipeline and tx documentation 2013-08-05 13:53:52 -07:00
Jennifer Hickey
4b3ff6582c Fix ambiguous constructors in DefaultRedisScript
Can't specify a resource location for script as a
String in Spring app context, as it would get
injected as script text instead. Switched to property
injection for clarity.
2013-08-05 10:54:36 -07:00
Jennifer Hickey
a28a4f1412 Add RedisAtomicDouble
DATAREDIS-198
2013-08-04 18:27:27 -07:00
Jennifer Hickey
7d387ab529 Add RedisTemplate methods for executing Redis scripts
DATAREDIS-199
2013-08-04 16:43:00 -07:00
Jennifer Hickey
faa78cdfaa Fix Lettuce eval suppressing Exceptions in List return
DATAREDIS-232
2013-08-04 16:37:26 -07:00
Jennifer Hickey
e1d2a7952a Add doc on minimally supported Redis version 2.4 2013-08-01 18:44:16 -07:00
Jennifer Hickey
c318f24c13 Support zRem with multiple values
DATAREDIS-99
2013-08-01 18:32:15 -07:00
Jennifer Hickey
44460dfdee Support zAdd with multiple values
DATAREDIS-99
2013-08-01 18:32:15 -07:00
Jennifer Hickey
628cc175bc Verify order of elements in LinkedHashSets 2013-08-01 18:32:14 -07:00
Jennifer Hickey
4020f9d97d Support sRem with multiple values
DATAREDIS-99
2013-08-01 18:32:14 -07:00
Jennifer Hickey
d4377b4d17 Support sAdd with multiple values
DATAREDIS-99
2013-08-01 18:32:14 -07:00
Jennifer Hickey
6ad3bcf688 Ignore intermittently failing test until fixed
Should be fixed in DATAREDIS-108
2013-08-01 18:32:13 -07:00