Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
zuston committed Dec 13, 2023
1 parent 29fd1d9 commit bacd33b
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,17 @@ private int uncompress(CompressedShuffleBlock rawBlock, ByteBuffer rawData) {
if (uncompressedData == null
|| uncompressedData.capacity() < uncompressedLen
|| !isSameMemoryType(uncompressedData, rawData)) {

if (LOG.isDebugEnabled()) {
if (!isSameMemoryType(uncompressedData, rawData)) {
LOG.debug(
"This should not happen that the temporary uncompressed data's memory type(isDirect:{}) "
+ "is not same with fetched data buffer(isDirect:{})",
uncompressedData.isDirect(),
rawData.isDirect());
}
}

if (uncompressedData != null) {
RssUtils.releaseByteBuffer(uncompressedData);
}
Expand Down

0 comments on commit bacd33b

Please sign in to comment.