[ 
https://issues.apache.org/jira/browse/TEZ-4135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17079107#comment-17079107
 ] 

László Bodor commented on TEZ-4135:
-----------------------------------

needed ConfigurableCodecForTest which extends Configurable, otherwise, 
production code fails for the mock:
{code}
2020-04-09 11:23:23,381 INFO  [main] compress.CodecPool 
(CodecPool.java:getDecompressor(184)) - Got brand-new decompressor [null]
java.io.IOException: java.lang.ClassCastException: 
org.apache.hadoop.io.compress.CompressionCodec$$EnhancerByMockitoWithCGLIB$$1657e35e
 cannot be cast to org.apache.hadoop.conf.Configurable
{code}

I guess this is because [CompressionCodec doesn't extend 
Configurable|https://github.com/apache/hadoop/blob/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/compress/CompressionCodec.java]
 interface, but specific compression classes [implement 
it|https://github.com/apache/hadoop/blob/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/compress/SnappyCodec.java]


> Improve memory allocation when executing in-memory reads
> --------------------------------------------------------
>
>                 Key: TEZ-4135
>                 URL: https://issues.apache.org/jira/browse/TEZ-4135
>             Project: Apache Tez
>          Issue Type: Improvement
>            Reporter: Rajesh Balamohan
>            Assignee: László Bodor
>            Priority: Major
>         Attachments: Screenshot 2020-03-16 at 6.34.42 PM.jpg, 
> TEZ-4135.01.patch, TEZ-4135.02.patch
>
>
> !Screenshot 2020-03-16 at 6.34.42 PM.jpg|width=824,height=575!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to