slfan1989 commented on code in PR #1355:
URL: https://github.com/apache/ratis/pull/1355#discussion_r2835759013


##########
ratis-grpc/src/main/java/org/apache/ratis/grpc/util/ZeroCopyMessageMarshaller.java:
##########
@@ -222,4 +222,30 @@ private T parseFrom(CodedInputStream stream) throws 
InvalidProtocolBufferExcepti
   public InputStream popStream(T message) {
     return unclosedStreams.remove(message);
   }
+
+  public int getUnclosedCount() {
+    return unclosedStreams.size();
+  }
+
+  public void checkLeaks(String context) {

Review Comment:
   Thanks for reviewing the code! I’ve already updated it based on your 
suggestions.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to