-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullPointerException while caching collection - Rset #5604
Comments
Unable to reproduce. Below is the test RSet<String> cacheRSet = redisson.getSet("key", new TypedJsonJacksonCodec(String.class, new ObjectMapper()));
cacheRSet.addAll(Arrays.asList("1", "2", "3"));
cacheRSet.expire(Duration.ofSeconds(1)); |
Is there any update? |
@mrniko the error occurs Inconsistently. Would be difficult to reproduce. |
Fixed in #5641 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
No errors or Null pointer exception when Caching RSet. Collection of class-objects are saved to cache.
Actual behavior
Inconsistently throws NullPointer exception.
java.lang.NullPointerException: null at o.redisson.command.RedisExecutor.handleError(RedisExecutor.java:602) at o.redisson.command.RedisExecutor.execute(RedisExecutor.java:202) at o.r.command.CommandAsyncService.async(CommandAsyncService.java:564) at o.r.command.CommandAsyncService.writeAsync(CommandAsyncService.java:522) at org.redisson.RedissonSet.addAllAsync(RedissonSet.java:317) at org.redisson.RedissonSet.addAll(RedissonSet.java:305)
Steps to reproduce or test case
val cacheRSet = redissonClient.getSet(key, TypedJsonJacksonCodec(CacheRecord::class.java, objectMapper))
cacheRSet.addAll(listOf(Object))
cacheRSet.expire(cacheTtl)
Redis version
ElastiCache engine version 7.1.0
Redisson version
3.26.0
Redisson configuration
useClusterServers() timeout = 30000 isCheckLockSyncedSlaves = false
The text was updated successfully, but these errors were encountered: