Skip to content

Commit

Permalink
HBASE-28017 Set request and response size metrics in NettyRpcDuplexHa…
Browse files Browse the repository at this point in the history
…ndler (#5473)

Co-authored-by: Ray Mattingly <[email protected]>
Signed-off-by: Duo Zhang <[email protected]>
Signed-off-by: Bryan Beaudreault <[email protected]>
  • Loading branch information
2 people authored and bbeaudreault committed Oct 24, 2023
1 parent 574fdc2 commit 4fa8b47
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ private void writeRequest(ChannelHandlerContext ctx, Call call, ChannelPromise p
} else {
ctx.write(buf, promise);
}
call.callStats.setRequestSizeBytes(totalSize);
}
}

Expand Down Expand Up @@ -193,6 +194,7 @@ private void readResponse(ChannelHandlerContext ctx, ByteBuf buf) throws IOExcep
}
return;
}
call.callStats.setResponseSizeBytes(totalSize);
if (remoteExc != null) {
call.setException(remoteExc);
return;
Expand Down

0 comments on commit 4fa8b47

Please sign in to comment.