You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tez.apache.org by GitBox <gi...@apache.org> on 2021/04/08 12:20:12 UTC

[GitHub] [tez] jshmchenxi commented on a change in pull request #117: TEZ-4302: NullPointerException in CodecUtils when bufferSizeProp is null

jshmchenxi commented on a change in pull request #117:
URL: https://github.com/apache/tez/pull/117#discussion_r609635657



##########
File path: tez-runtime-library/src/main/java/org/apache/tez/runtime/library/utils/CodecUtils.java
##########
@@ -78,7 +78,8 @@ public static InputStream getDecompressedInputStreamWithBufferSize(CompressionCo
       throws IOException {
     String bufferSizeProp = TezRuntimeUtils.getBufferSizeProperty(codec);
     Configurable configurableCodec = (Configurable) codec;
-    int originalSize = configurableCodec.getConf().getInt(bufferSizeProp, DEFAULT_BUFFER_SIZE);
+    int originalSize = bufferSizeProp == null ? DEFAULT_BUFFER_SIZE :

Review comment:
       @abstractdog  thanks for the quick reply! I've updated the patch. In our environment the codec is GzipCodec




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

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