Skip to content

Conversation

thomasdarimont
Copy link

Previously we didn’t support Jedis 2.7 since the {{getTimeout}} / {{setTimeout}} Methods on {{JedisShardInfo}} to configure the {{SoTimeout}} were replaced by {{getSoTimeout}} and {{setSoTimeout}} respectively.

We now detect the appropriate Methods via Reflection in JedisConnectionFactory.

Tested against Jedis 2.7 branch with Redis 3.0.0.RC4.

@thomasdarimont thomasdarimont mentioned this pull request Feb 13, 2015
@christophstrobl
Copy link
Member

Am I wrong or is jedis 2.7 still under development... Besides that the change redis/jedis@3032c94 involved more than just JedisShardInfo but also Connection where the timeout methods have been renamed as well. Did you check for potential invocations of those?

@HeartSaVioR
Copy link
Contributor

We're forcusing our plan to 3.0.0 and we don't discuss about releasing 2.7 yet.
We can maintain 2.x so 2.7 could be released sometimes, but seems like not several weeks.

@christophstrobl
Copy link
Member

thanks @HeartSaVioR !

Thomas Darimont added 2 commits March 18, 2015 11:58
Previously we didn’t support Jedis 2.7 since the {{getTimeout}} / {{setTimeout}} Methods on {{JedisShardInfo}} to configure the {{SoTimeout}} were replaced by {{getSoTimeout}} and {{setSoTimeout}} respectively. We now detect the appropriate Methods via Reflection in JedisConnectionFactory. Tested against Jedis 2.7 branch with Redis 3.0.0.RC4.
thomasdarimont pushed a commit that referenced this pull request Mar 19, 2015
We now support both Jedis 2.6.2 (current release) as well as the upcoming 2.7 version. Therefore we call the in 2.7 renamed `getTimeout` / `setTimeout` Methods on `JedisShardInfo` via reflection to read/set `soTimeout`. Since there’s no change in r.c.j.JedisFactory that would allow to individually configure connection and socket timeout, we use the socketTimeout of `JedisShardInfo`. This will cause `r.c.j.JedisFactory` to use the socket timeout for the connection as well, which is the same behavior as in 2.6.2. Tested against Jedis 2.7 branch with Redis 3.0.0.RC4. Original Pull Request: #127
@christophstrobl christophstrobl deleted the issue/DATAREDIS-374 branch March 19, 2015 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants