apoorvmittal10 commented on code in PR #15589:
URL: https://github.com/apache/kafka/pull/15589#discussion_r1541573651


##########
clients/src/test/java/org/apache/kafka/common/telemetry/internals/ClientTelemetryUtilsTest.java:
##########
@@ -132,9 +133,9 @@ public void testCompressDecompress(CompressionType 
compressionType) throws IOExc
         } else {
             assertArrayEquals(testString, compressed);
         }
-
         ByteBuffer decompressed = ClientTelemetryUtils.decompress(compressed, 
compressionType);
+        byte[] actualResult = Utils.toArray(decompressed);

Review Comment:
   Can we please move the conversion after the `assertNotNull(decompressed);` 
as there is a usage of `decompressed` inside the Utils.toArray method.



-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to