Closes gh-21960
@ -90,6 +90,7 @@ public class NettyDataBufferFactory implements DataBufferFactory {
* @return the wrapped buffer
*/
public NettyDataBuffer wrap(ByteBuf byteBuf) {
byteBuf.touch();
return new NettyDataBuffer(byteBuf, this);
}