Skip to content

IndexOutOfBoundsException from RenewalTask #6506

Closed

Description

@erlendnils1

Redis version

7.0 (Google cloud)

Redisson version

3.44.0

Redisson configuration

singleServer

subscriptionsPerConnection=10
ConnectTimeout=10000ms
PingConnectionInterval=10000ms

What is the Expected behavior?

No log warnings

What is the Actual behavior?

Since upgrading from Redisson 3.43.0 we get sporadic log warnings:

An exception was thrown by TimerTask. Index 0 out of bounds for length 0
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
    at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:100)
    at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:106)
    at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:302)
    at java.base/java.util.Objects.checkIndex(Objects.java:365)
    at java.base/java.util.ArrayList.get(ArrayList.java:428)
    at org.redisson.renewal.LockTask.renew(LockTask.java:71)
    at org.redisson.renewal.RenewalTask.execute(RenewalTask.java:83)
    at org.redisson.renewal.RenewalTask.run(RenewalTask.java:170)
    at org.redisson.renewal.LockTask.run(LockTask.java:32)
    at io.netty.util.HashedWheelTimer$HashedWheelTimeout.run(HashedWheelTimer.java:713)
    at io.netty.util.concurrent.ImmediateExecutor.execute(ImmediateExecutor.java:34)
    at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:701)
    at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:788)
    at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:501)
    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
    at java.base/java.lang.Thread.run(Thread.java:1575)

As far as I can tell it is only noise and does not cause any task to fail. Does not appear to correlated with start up or shutdown.

Guessing it is caused by 597d604

Additional information

No response

Activity

  1. added this to the 3.46.1 milestone on Mar 20, 2025
  2. mrniko commented on Mar 21, 2025

    @mrniko
    Member

    Fixed. Thanks for report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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