Error while validating pooled Java object (java.util.ArrayList cannot be cast to [B) #3307
Replies: 3 comments
-
We could not pin-point the issue. Would you be willing to spend some time to investigate which is the first version of Jedis or spring-data-redis with this issue? It would be a great help. Asking you as incidentally now you have a reproducible test scenario. |
Beta Was this translation helpful? Give feedback.
-
Sure. Is there a compatibility list between Redis versions and jedis version? I'll start with whatever the earliest supported jedis version is, and work my way up from there. |
Beta Was this translation helpful? Give feedback.
-
There isn't any compatibility list. We take that any Jedis version is compatible with any Redis version. AFAICR, I didn't hear such issue before 3.8.0. My best guess, you won't need to test Jedis older than 3.6.0. |
Beta Was this translation helpful? Give feedback.
-
Dependencies
Configuration settings
spring.redis.jedis.pool.max-active
=60spring.redis.jedis.pool.max-idle
=60spring.redis.jedis.pool.min-idle
=10What my code does
This is how I set the
redisClusterNode
andredisClousterConnection
fields before I pass them to the function:How things fail
Shortly after I invoke this method, I will get the following:
The timing of this exception differs. Sometimes it shows up right away, sometimes it takes a few seconds (and iterations of the cursor).
Note that the size of the shard is big: ~90M keys.
Things I've tried successfully
Things I've tried without success
scanLimit
to1
.spring.redis.jedis.pool.enabled=false
I am running this on a Redis cluster that's on v6.2.5.
How do I go about debugging this? Thank you for your help in advance.
Beta Was this translation helpful? Give feedback.
All reactions