RMap.readAllKeySet and RMap.keySet in kvrocks problem
See original GitHub issueWhen using RMap.readAllKeySet to get the key, I can get the data normally. But using RMap.keySet will not be able to get the normal key. The content and key are serialized (org.redisson.codec.KryoCodec). Except for the keySet error, all other cases can be used normally. The error message is as follows.
Caused by: java.lang.NumberFormatException: For input string: "0043d5903a01b9d9ab46d4b474532bc�"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Long.parseLong(Long.java:578)
at java.lang.Long.valueOf(Long.java:803)
at org.redisson.client.codec.LongCodec$1.decode(LongCodec.java:38)
at org.redisson.client.handler.CommandDecoder.decode(CommandDecoder.java:374)
at org.redisson.client.handler.CommandDecoder.decodeList(CommandDecoder.java:418)
at org.redisson.client.handler.CommandDecoder.decode(CommandDecoder.java:383)
at org.redisson.client.handler.CommandDecoder.decodeCommand(CommandDecoder.java:196)
at org.redisson.client.handler.CommandDecoder.decode(CommandDecoder.java:134)
at org.redisson.client.handler.CommandDecoder.decode(CommandDecoder.java:104)
at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:507)
at io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:366)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:276)2022-10-25 13:14:32 [redisson-nett
config配置
sentinelServersConfig:
idleConnectionTimeout: 10000
connectTimeout: 1000
timeout: 600000
retryAttempts: 3
retryInterval: 1000
password: "xxxxxxxx"
subscriptionsPerConnection: 400
sslEnableEndpointIdentification: true
sslProvider: "JDK"
pingConnectionInterval: 1000
keepAlive: true
tcpNoDelay: false
loadBalancer: !<org.redisson.connection.balancer.RoundRobinLoadBalancer> {}
slaveConnectionMinimumIdleSize: 5
slaveConnectionPoolSize: 300
failedSlaveReconnectionInterval: 3000
failedSlaveCheckInterval: 10000
masterConnectionMinimumIdleSize: 5
masterConnectionPoolSize: 200
readMode: "SLAVE"
subscriptionMode: "SLAVE"
subscriptionConnectionMinimumIdleSize: 1
subscriptionConnectionPoolSize: 50
dnsMonitoringInterval: 5000
sentinelAddresses:
- "redis://192.168.1.131:17662"
- "redis://192.168.1.127:17662"
- "redis://192.168.1.130:17662"
natMapper: !<org.redisson.api.DefaultNatMapper> {}
masterName: "master"
database: 0
scanInterval: 1000
checkSentinelsList: true
threads: 16
nettyThreads: 64
codec: !<org.redisson.codec.KryoCodec> {}
referenceEnabled: true
transportMode: "NIO"
lockWatchdogTimeout: 10000
keepPubSubOrder: true
useScriptCache: false
minCleanUpDelay: 5
maxCleanUpDelay: 1800
cleanUpKeysAmount: 100
nettyHook: !<org.redisson.client.DefaultNettyHook> {}
useThreadClassLoader: true
addressResolverGroupFactory: !<org.redisson.connection.DnsAddressResolverGroupFactory> {}
Issue Analytics
- State:
- Created a year ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
RMap - redisson 3.18.1 javadoc
Interface RMap<K,V> This map uses serialized state of key instead of hashCode or equals methods. This map doesn't allow to store null as...
Read more >Kvrocks: An Open-Source Distributed Disk Key-Value Storage ...
Case 1: Implement Redis data structures(Hash/Set/Bitmap/List…) and replication on the local key-value engine like the RocksDB, which only has ...
Read more >org.redisson.api.RMap.readAllKeySet java code examples
getAttributeNames.ise")); } Set<String> keys = map.readAllKeySet(); return keys.toArray(new String[keys.size()]); } return super.getValueNames(); }.
Read more >How to release - Apache Kvrocks (Incubating)
Prolegomenon. Source Release is the key point which Apache values, also, is necessary for a release; Binary Release is optional. Kvrocks can choose...
Read more >Redisson Capturing Key Expire Event - java - Stack Overflow
Since 3.4.3 version Redisson offers ability to register listener for map entry expiration. Here is the usage example: RMapCache<String ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I get it . Thank you very much.
@mrniko Many thanks for your nice confirmation, Kvrocks scan command did return the string instead of the number cursor. The scan command is the only one that Kvrocks don’t compatible with Redis. Do you have any suggestions on this? @mrniko