Commit Graph

592 Commits

Author SHA1 Message Date
Christoph Strobl
765a6d1cb0 DATAREDIS-744 - Polishing
Move binary lookup methods to ByteUtils, update license headers and restore altered tests by creating additional ones.

Original Pull Request: #298
2018-01-11 14:53:13 +01:00
Mark Paluch
c6ad238cea DATAREDIS-744 - Support Redis hashes with colon in their id.
We now support Redis hashes via Repository support that contain colon in their id. We're using colons to split a composite id string into keyspace and id parts. Previously, we partially rejected processing of id's that don't exactly match the number of parts delimited by colon. This caused leftovers in secondary indexes.

Original Pull Request: #298
2018-01-11 14:52:36 +01:00
Mark Paluch
8e481f484c DATAREDIS-738 - Align changelog layout with other modules.
Remove links to Jira Github branches. Fix letter casing.
2017-12-02 15:45:47 -08:00
Mark Paluch
dc98b3df34 DATAREDIS-723 - Updated changelog. 2017-11-27 16:43:45 +01:00
Mark Paluch
832a8ecd93 DATAREDIS-717 - Prepare 1.8.9 (Ingalls SR9). 2017-11-27 15:16:09 +01:00
Mark Paluch
0dfceb3c63 DATAREDIS-717 - Updated changelog. 2017-11-27 15:16:07 +01:00
Zhiwei Sun
f0b835ca2d DATAREDIS-733 - Fix typo in ValueOperations Javadoc link.
Original pull request: #269.
2017-11-16 14:48:52 +01:00
Oliver Gierke
583e47aad7 DATAREDIS-709 - Updated changelog. 2017-10-27 16:36:56 +02:00
Oliver Gierke
f34a9daa3c DATAREDIS-689 - Prepare 1.8.8 (Ingalls SR8). 2017-10-11 16:41:09 +02:00
Oliver Gierke
ff9a9438df DATAREDIS-689 - Updated changelog. 2017-10-11 16:41:04 +02:00
Mark Paluch
3c3d98d779 DATAREDIS-691 - Updated changelog. 2017-10-02 11:41:39 +02:00
Christoph Strobl
cbd9dad96f DATAREDIS-603 - Polishing.
Fix erroneous test setup.

Original Pull Request: #275
2017-09-30 10:42:47 +02:00
Mark Paluch
06c37880f7 DATAREDIS-603 - Fall back to RedisSystemException for non translateable exceptions during cluster execution.
We now use a fallback exception translation strategy in JedisClusterConnection to map all non-mapped exceptions to RedisSystemException. This change prevents null pointer exceptions caused by potentially throwing null.

Original Pull Request: #275
2017-09-30 10:42:10 +02:00
Oliver Gierke
2dd172e771 DATAREDIS-671 - Updated changelog. 2017-09-11 17:42:50 +02:00
Mark Paluch
749c1c673f DATAREDIS-672 - Prepare 1.8.7 (Ingalls SR7). 2017-09-11 11:44:21 +02:00
Mark Paluch
9721e511bd DATAREDIS-672 - Updated changelog. 2017-09-11 11:44:19 +02:00
Mark Paluch
9ac21cdafa DATAREDIS-687 - Polishing.
Parse Spring version for semantic version comparision. Remove redundant cast. Add issue tag to test, Visibility, formatting, imports.

Original pull request: #273.
2017-09-11 08:32:02 +02:00
Christoph Strobl
6e855f779e DATAREDIS-687 - Adapt Redis Cache tests to Spring 5.
Original pull request: #273.
2017-09-11 08:31:39 +02:00
Mark Paluch
fc07828b2f DATAREDIS-684 - Release Jedis cluster node connections with close().
We now release Jedis cluster node connections with Jedis.close() to the pool instead of Pool.returnResource(…). The close() method itself checks whether the connection was broken and if so, the connection gets destroyed. Destroying broken connections prevents the pool from supplying broken connections on borrow when testOnBorrow is disabled.

The only case where we return broken resources ourselves to the Pool is when we discover a broken connection ourselves: If we run into a NullPointerException or RedisConnectionFailureException, then we consider a connection is broken.

Original Pull Request: #271
2017-09-07 14:11:42 +02:00
Christoph Strobl
8b06c54246 DATAREDIS-679 - Polishing.
Use IllegalState- instead of IllegalArgumentException and utilize ExpectedException rule in tests.

Original Pull Request: #270
2017-09-07 11:06:01 +02:00
Mark Paluch
c855750535 DATAREDIS-679 - Reconfigure Jedis cluster connection pools for discovered cluster nodes.
We now request a cluster node connection directly from the driver's connection handler and initiate reconfiguration if a cluster node is known through the topology but has no connection pool yet. This can happen if a cluster node is added to the cluster after the connection was initialized.

The connection handler cannot be obtained directly although the field where it's held is protected which increases the amount of necessary test code and reflection access to the connection handler.

Jedis discovers nodes during startup, on demand (full scan) or when requested (e.g. by a cluster redirection).

Original Pull Request: #270
2017-09-07 11:05:51 +02:00
Mark Paluch
2ac028916b DATAREDIS-686 - Polishing.
Remove explicit boxing. Fix typo in ResultByReferenceKeyPositionComparator.

Original pull request: #272.
2017-09-05 16:25:40 +02:00
Christoph Strobl
1c52490fe0 DATAREDIS-686 - Use Java 6 compatible integer comparison in ClusterCommmandExecutor.
Original pull request: #272.
2017-09-05 16:15:34 +02:00
Mark Paluch
b07fe8d582 DATAREDIS-674 - Polishing.
Rename JedisConverters.zAddArgsConvertor(…) to toTupleMap(…) and reorder method to group with other tuple conversion methods. Add author tags.

Create tests for zadd with tuple using Redis Cluster. Enable pipelining and transactions for zadd using Jedis. Adopt tests.

Original pull request: #263.
2017-08-25 14:40:10 +02:00
Clement Ong
8c75fbd7ad DATAREDIS-674 - Support zAdd with a Set of Tuples using Jedis Cluster connections.
Original pull request: #263.
2017-08-25 14:40:05 +02:00
Mark Paluch
ff95162943 DATAREDIS-680 - Polishing.
Add author tag. Adopt javadoc fix in other affected operations and connection interfaces.

Original pull request: #265.
2017-08-25 12:19:42 +02:00
Rosty Kerei
4dba7bbdf0 DATAREDIS-680 - Fix Javadoc references on ZSet score methods.
Point to the correct method in the Redis documentation.

Original pull request: #265.
2017-08-25 12:19:42 +02:00
Mark Paluch
cdb2624f62 DATAREDIS-676 - Polishing.
Set disposal state in LettuceClusterConnection only once. Close resources after tests. Typos, formatting.

Original pull request: #266.
2017-08-21 11:03:06 +02:00
Christoph Strobl
4e903113c7 DATAREDIS-676 - Pass on configured command timeout to LettuceClusterConnection.
We now not only configure the underlying lettuce connection with the command timeout set via the connection factory, but also make sure to pass the option on to the LettuceClusterConnection.

Original pull request: #266.
2017-08-21 11:03:03 +02:00
Oliver Gierke
f376ab239b DATAREDIS-669 - Prepare 1.8.6 (Ingalls SR6). 2017-07-26 23:45:53 +02:00
Oliver Gierke
f664d51787 DATAREDIS-669 - Updated changelog. 2017-07-26 23:45:47 +02:00
Oliver Gierke
1714687701 DATAREDIS-670 - Updated changelog. 2017-07-25 16:15:50 +02:00
Oliver Gierke
d267e1e3ee DATAREDIS-655 - Updated changelog. 2017-07-25 10:04:05 +02:00
Oliver Gierke
9df4f77b92 DATAREDIS-653 - Prepare 1.8.5 (Ingalls SR5). 2017-07-24 18:43:24 +02:00
Oliver Gierke
95d98bae31 DATAREDIS-653 - Updated changelog. 2017-07-24 18:43:19 +02:00
Mark Paluch
6f406debb0 DATAREDIS-657 - RedisRepositoryConfigurationExtensionUnitTests now need to provide a BeanDefinitionRegistry. 2017-06-26 17:07:41 +02:00
Mark Paluch
c896c2e22c DATAREDIS-646 - Updated changelog. 2017-06-14 17:35:01 +02:00
Mark Paluch
81c7c8f058 DATAREDIS-647 - Include last key of SDIFF for set difference retrieval.
We now consider the last key in SDIFF command execution on Redis Cluster to correctly compute the set difference.

Original Pull Request: #250
2017-06-12 14:56:00 +02:00
Mark Paluch
0cf6be9649 DATAREDIS-631 - Prepare 1.8.4 (Ingalls SR4). 2017-06-08 10:56:03 +02:00
Mark Paluch
1662b1a384 DATAREDIS-631 - Updated changelog. 2017-06-08 10:56:01 +02:00
Mark Paluch
51809bb23b DATAREDIS-630 - Updated changelog. 2017-06-07 12:23:37 +02:00
Mark Paluch
ae7db3bf5c DATAREDIS-622 - Updated changelog. 2017-05-09 11:36:19 +02:00
Mark Paluch
ac562c440f DATAREDIS-637 - Shut down connection-exclusive ClusterCommandExecutor.
We now shut down ClusterCommandExecutor via LettuceClusterConnection and JedisClusterConnection if the ClusterCommandExecutor was created through the connection instance. In such case ClusterCommandExecutor is managed through Lettuce/JedisClusterConnection and disposed on connection close.

Previously ClusterCommandExecutor created through a ClusterConnection was not disposed.

Original pull request: #247.
2017-05-03 14:54:59 +02:00
Mark Paluch
a382fb4a42 DATAREDIS-633 - Adapt to renamed KeyValueQuery.getCriteria() method.
Original Pull Request: #246
2017-04-24 10:39:09 +02:00
Oliver Gierke
cba88f4573 DATAREDIS-628 - Updated changelog. 2017-04-19 21:04:22 +02:00
Oliver Gierke
a628e9fddd DATAREDIS-627 - Prepare 1.8.3 (Ingalls SR3). 2017-04-19 19:32:02 +02:00
Oliver Gierke
661704842c DATAREDIS-627 - Updated changelog. 2017-04-19 19:31:58 +02:00
Oliver Gierke
9cea9117ed DATAREDIS-608 - Updated changelog. 2017-04-19 13:04:12 +02:00
Oliver Gierke
cbf575fc87 DATAREDIS-607 - Prepare 1.8.2 (Ingalls SR2). 2017-04-19 10:10:48 +02:00
Oliver Gierke
f4243b380a DATAREDIS-607 - Updated changelog. 2017-04-19 10:10:43 +02:00