Skip to content

Tags: AWS-BugBust-84/jedis-84

Tags

v4.0.0-beta3

Toggle v4.0.0-beta3's commit message
RediSearch commands implementation (continued) and tests

v4.0.0-beta2

Toggle v4.0.0-beta2's commit message
JedisCluster, JedisPool, etc

v4.0.0-beta1

Toggle v4.0.0-beta1's commit message
Refactor class and interface names

v3.7.0

Toggle v3.7.0's commit message
Redis: updated company name and logo (redis#2618)

* Redis: updated company name and logo

v3.7.0-RC1

Toggle v3.7.0-RC1's commit message
Redis: updated company name and logo (redis#2618)

* Redis: updated company name and logo

v3.6.3

Toggle v3.6.3's commit message
Support WAIT in Pipeline (redis#2600)

* Support WAIT in Pipeline

* test wait in pipeline

v3.6.2

Toggle v3.6.2's commit message
autorelease workflow (redis#2584)

jedis-3.6.1

Toggle jedis-3.6.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
JavaDoc link in README (redis#2563)

jedis-3.6.0

Toggle jedis-3.6.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Deprecate Remove ShardedJedisPipeline class redis#2500 (redis#2508)

* Deprecate Remove ShardedJedisPipeline class redis#2500

* putting back the tests

jedis-3.6.0-rc1

Toggle jedis-3.6.0-rc1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Retry with backoff on cluster connection failures (redis#2358)

* Split JedisClusterCommand into multiple methods

No behavior changes, just a refactoring.

Changes:
* Replaces recursion with a for loop
* Extract redirection handling into its own method
* Extract connection-failed handling into its own method

Note that `tryWithRandomNode` is gone, it was never `true` so it and its
code didn't survive the refactoring.

* Drop redundant null check

* Bump JDK version to 1.8

Inspired by redis#1334 where this went real easy :).

Would have made redis#2355 shorter.

Free public updates for JDK 7 ended in 2015:
<https://en.wikipedia.org/wiki/Java_version_history>

For JDK 8, free public support is available from non-Orace vendors until
at least 2026 according to the same table.

And JDK 8 is what Jedis is being tested on anyway:
<https://github.com/redis/jedis/blob/ac0969315655180c09b8139c16bded09c068d498/.circleci/config.yml#L67-L74>

* Replace ConnectionGetters with lambdas

* Retrigger CI

* Add backoff to Redis connections

* Add unit tests for backoff logic

* Add retries logging

* Always use the user requested timeout

* Remedy review feedback

* Consider connection exceptions and disregard random nodes

* consider connection exceptions and disregard random nodes

* reset redirection

* Revert "Consider connection exceptions and disregard random nodes"

This reverts commit 67a062a.

Lots of tests in JedisClusterCommandTests started failing, need to be
fixed before trying again.

* Add another backoff test case

1. We try to contact master => JedisConnectionException
2. We try to contact replica => It refers us to master, hasn't failed over yet
3. We try to contact master => JedisConnectionException
4. We try to contact replica => Success, because it has now failed over

* consider connection exceptions and disregard random nodes

* reset redirection

* Fix test failure

* Apply suggestions from code review

Co-authored-by: Jens Green Olander <[email protected]>

* update documentation

* Improve a comment

* Update src/main/java/redis/clients/jedis/DefaultJedisSocketFactory.java

* Add change from another branch

Source (all of these point to the same place):
* walles/retries-split
* 4f80d73
* redis#2355

* Move JedisClusterCommandTest out of commands package

* Use JedisClusterOperationException

* Reduce sleep time, especially when few attempts left

* Update src/main/java/redis/clients/jedis/JedisClusterCommand.java

* merge fix

* merge fix

* Use maxAttempts

* format import

* Re-add missing codes due to merge

* avoid NPE while zero max attempts

* Remove zero attempts test

* More cluster constructors and customizability

* Use maxTotalRetriesDuration everywhere

* more missing maxTotalRetriesDuration after merge

Co-authored-by: M Sazzadul Hoque <[email protected]>
Co-authored-by: Jens Green Olander <[email protected]>
Co-authored-by: Jens Green Olander <[email protected]>