Desmeister opened a new pull request #3739:
URL: https://github.com/apache/hadoop/pull/3739


   ### Description of PR
   
   I've updated the CompressionCodecFactory to be able to handle filenames with 
capitalized compression extensions. Two of the three existing internal maps 
used to store codecs have existing lowercase casts, but it is absent from the 
call inside getCodec() used for comparing path names.
   
   I updated the corresponding unit test in TestCodecFactory, to include 
intended use cases, and confirmed the test passes with the change. I also 
updated the error message in the case of a null from an NPE to a rich error 
message.
   
   ### How was this patch tested?
   
   I confirmed the updated TestCodecFactory:testFinding() test passes, and 
reran the test suite of hadoop-common.
   
   ### For code changes:
   
   - [Y] Does the title or this PR starts with the corresponding JIRA issue id 
(e.g. 'HADOOP-17799. Your PR title ...')?
   - [N/A] Object storage: have the integration tests been executed and the 
endpoint declared according to the connector-specific documentation?
   - [N/A] If adding new dependencies to the code, are these dependencies 
licensed in a way that is compatible for inclusion under [ASF 
2.0](http://www.apache.org/legal/resolved.html#category-a)?
   - [N/A] If applicable, have you updated the `LICENSE`, `LICENSE-binary`, 
`NOTICE-binary` files?


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

Reply via email to