Closed andredasilvapinto closed 5 years ago
That is a bug. I'm away from the office this week. Can you wait till Monday for the fix?
In the meantime, I recommend disabling timeoutDelay when using Netty. timeoutDelay should work for direct NIO.
Java client 4.4.3 contains the fix:
I'm getting
java.lang.ClassCastException: com.aerospike.client.async.NettyRecover$InboundHandler cannot be cast to com.aerospike.client.async.NettyCommand$InboundHandler
after enabling timeout delays.I believe this is caused by this unchecked cast https://github.com/aerospike/aerospike-client-java/blob/master/client/src/com/aerospike/client/async/NettyCommand.java#L256 given that NettyRecover$InboundHandlers are added to the pipeline here: https://github.com/aerospike/aerospike-client-java/blob/master/client/src/com/aerospike/client/async/NettyRecover.java#L94