Is the option to explicitly set per call timeout always guaranteed or is it best efforts basis?
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
Research direction
Start with the per-call timeout API introduced in release 3.26.0 and compare it with the client-level timeout described in the report. Reproduce the behavior using the provided Kotlin getList/readAllAsync example with Redis and determine whether the differing timeout results are expected; done means the behavior is confirmed and clearly documented or an actionable defect is identified.
Written by the indexing model from the issue text.
Description
Hello there,
I've been trying out the feature added in release 3.26.0, where I can set the timeout explicitly per call instead of having it set for every call done through the same client (related issue #5316).
I'm running this experiment locally (using Kotlin), using version 3.32.0, where I spun up Redis and inserted a dummy key with a very large list value to see how much time would it take to fetch the full list.
...
val redisClient = Redisson.create()
val values = getValues(key)
...
private suspend fun getValues(key: String) {
return redisClient.getList<Value>(PlainOptions.name("$key").timeout(Duration.ofMillis(1)).retryAttempts(0).codec(Value.codec)).readAllAsync().await()
}
However I have noticed that even if I set the getList call timeout explicitly to 1 millisecond or 250 nanoseconds, it does not always timeout, but actually most of the time it runs fine. On the contrary when I set the timeout to 10 milliseconds on the client level it always times out.
Which makes me wonder if I'm using this feature incorrectly.
Looking forward to hearing back from you!
- Dominant language
- Java
- Stars
- 24.4k
- Forks
- 5.5k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 20
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from redisson/redisson
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 2 days
-
IndexOutOfBoundsException in ContainsDecoder.decode from lock watchdog renewal (mutable args list aliased)Possibly taken @ronitgupta138 claimed this 45 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
Maintainers usually reply within 2 days
-
Difficulty 5/5 Over a week Newbie friendliness 45/100
Maintainers usually reply within 2 days
-
skipResult() batch decoding can consume subsequent command replies and corrupt response alignmentMay be free again @Exar-lab claimed this 9 days ago, and no pull request is open. Openbug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
redisson/redisson#7446 · 2 comments ·
Maintainers usually reply within 2 days
-
RLock after a master switch: READONLY is retried, every retry runs the lock script on the new master, and tryLock() still throws the first READONLYPossibly taken @wozhenbang2004 claimed this 36 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Maintainers usually reply within 2 days
All issues in redisson/redisson
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
avaje/avaje-metrics#142 ·
-
As a developer using gamma, I would like a click-to-copy button for the client credentials, so it is easier to copy themPossibly taken @Portals claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Lincoln-cn/JAiRouter#1473 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
exercism/java-analyzer#379 ·