Skip to content
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

fix #5896

Closed
KYV365 opened this issue May 22, 2024 · 0 comments
Closed

fix #5896

KYV365 opened this issue May 22, 2024 · 0 comments

Comments

@KYV365
Copy link

KYV365 commented May 22, 2024

Actual behavior

2024-05-22 12:13:19.930 [NettyClientWorkerThread_2] ERROR [io.netty.util.ResourceLeakDetector] [TID: N/A] - [dbu-mod-fms] LEAK: ByteBuf.release() was not called before it's garbage-collected. See https://netty.io/wiki/reference-counted-objects.html for more information.
Recent access records:
Created at:
io.netty.buffer.PooledByteBufAllocator.newDirectBuffer(PooledByteBufAllocator.java:349)
io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:187)
io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:173)
io.netty.buffer.AbstractByteBufAllocator.buffer(AbstractByteBufAllocator.java:107)
org.redisson.codec.JsonJacksonCodec$1.encode(JsonJacksonCodec.java:81)
org.redisson.command.CommandAsyncService.encodeMapValue(CommandAsyncService.java:654)
org.redisson.RedissonObject.encodeMapValue(RedissonObject.java:344)
org.redisson.RedissonLocalCachedMap.broadcastLocalCacheStore(RedissonLocalCachedMap.java:121)
org.redisson.RedissonLocalCachedMap.putAllOperationAsync(RedissonLocalCachedMap.java:667)
org.redisson.RedissonMap.putAllAsync(RedissonMap.java:713)
org.redisson.RedissonMap.putAll(RedissonMap.java:666)

Steps to reproduce or test case
schedule call RedissonLocalCachedMap method putAll() or call fastRemove() and then putAll(),the schedule data is the same

Redisson version
3.18.0

Redisson configuration
options = LocalCachedMapOptions.defaults()
.storeMode(LocalCachedMapOptions.StoreMode.LOCALCACHE)
.evictionPolicy(LocalCachedMapOptions.EvictionPolicy.NONE)
.cacheSize(0)
.reconnectionStrategy(LocalCachedMapOptions.ReconnectionStrategy.NONE)
.syncStrategy(LocalCachedMapOptions.SyncStrategy.UPDATE);

@KYV365 KYV365 closed this as completed May 22, 2024
@KYV365 KYV365 changed the title RedissonLocalCachedMap LEAK: ByteBuf.release() was not called before it's garbage-collected fix May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant