lettuce icon indicating copy to clipboard operation
lettuce copied to clipboard

Seeing ArrayIndexOutOfBoundsException

Open himanshu0791 opened this issue 1 year ago • 1 comments

Bug Report

java.lang.ArrayIndexOutOfBoundsException: Index 5 out of bounds for length 5 at io.lettuce.core.internal.Futures.allOf(Futures.java:54) at io.lettuce.core.internal.AsyncConnectionProvider.close(AsyncConnectionProvider.java:166) at io.lettuce.core.cluster.PooledClusterConnectionProvider.closeAsync(PooledClusterConnectionProvider.java:513) at io.lettuce.core.cluster.ClusterDistributionChannelWriter.closeAsync(ClusterDistributionChannelWriter.java:422) at io.lettuce.core.RedisChannelHandler.closeAsync(RedisChannelHandler.java:179) at io.lettuce.core.RedisChannelHandler.close(RedisChannelHandler.java:157)

There is no specific config for when it shows up. I have seen it for default settings on v6.2.2. Its not frequent but trickles up in logs from time to time. Please let me know if I can provide any more information related to this.

himanshu0791 avatar Jul 31 '24 20:07 himanshu0791

Seems to me like a problem related to concurrent code execution. The stages provided to the method could change during the method execution.

We should rewrite this code to be more resilient.

Thanks for the report!

tishun avatar Aug 01 '24 06:08 tishun