Skip to content

Wrong default values for maxTotalRetriesDuration #2559

@akurth

Description

@akurth

Expected behavior

Default maxTotalRetriesDuration should be soTimeout * maxAttempts.

Actual behavior

Default maxTotalRetriesDuration is soTimeout.

After updating from 3.5.2 to 3.6.0 in our production environment (which is under heavy load; timeout is 300) we almost immediately encountered lots of "JedisClusterOperationException: Cluster retry deadline exceeded." errors.

Looking at the code I found that some of the BinaryJedisCluster constructors set maxTotalRetriesDuration to soTimeout. This should be at least soTimeout * maxAttempts, unless I'm missing something here.

Jedis version:

3.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions