pan3793 commented on code in PR #8526: URL: https://github.com/apache/hadoop/pull/8526#discussion_r3338602745
########## hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/compress/zstd/ZStandardDecompressor.java: ########## Review Comment: in normal cases, `compressedDirectBuf`'s `limit` will be correctly reset at here, but when decompressing corrupt data, `zstdJniCtx.decompressDirectByteBufferStream` throws an exception so the code won't reach here, if `reset` does not correctly clear the state, reusing the decompressor may cause a problem -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
