jdeppe-pivotal commented on a change in pull request #6085:
URL: https://github.com/apache/geode/pull/6085#discussion_r589454801
##########
File path:
geode-redis/src/main/java/org/apache/geode/redis/internal/netty/Coder.java
##########
@@ -278,6 +281,16 @@ public static ByteBuf getErrorResponse(ByteBufAllocator
alloc, String error) {
return response;
}
+ public static ByteBuf getOOMResponse(ByteBufAllocator alloc, String error) {
+ byte[] errorAr = stringToBytes(error);
+ ByteBuf response = alloc.buffer(errorAr.length + 25);
Review comment:
This is inherited from the original author(s) and we don't know what
this is for. We've also found excessive (and unnecessary) allocations in this
class which will shortly be corrected. That change will also remove these weird
constants.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]