-
Task
-
Resolution: Done
-
Major
-
15.1.0.Dev04
-
None
The new client installs an IdleStateHandler to promote sending PingOperations after a given time. This handler is configured at https://github.com/infinispan/infinispan/blob/d5eb07b4effdf4d375f0e9d985b3e6b27bf00ca2/client/hotrod-client-new/src/main/java/org/infinispan/client/hotrod/impl/transport/netty/ChannelInitializer.java#L104.
This handler unfortunately unvoids the promise and installs its own listener. This is heavyweight for our use case. We can instead copy the handler and change it to just track the number as a write is invoked directly in the same call stack. This will prevent having to unvoid the write operation and no listener, which takes up a good chunk of CPU and allocations as found in JFR.