Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NIFI-2963 FetchHDFS should support Compression Codec property #1166

Closed

Conversation

pvillard31
Copy link
Contributor

No description provided.

@olegz
Copy link
Contributor

olegz commented Nov 2, 2016

Reviewing. . .


// Check if we should infer compression codec
if (inferCompressionCodec) {
codec = compressionCodecFactory.getCodec(path);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure I understand what;s happening here in relation to line:134. Since both IF statements evaluate inferCompressionCodec this will always override the value of 'codec' (the one that was set in line:134) if it's true.

@pvillard31
Copy link
Contributor Author

duh... I must admit I did copy/paste the logic from the GetHDFS processor and didn't catch the loop over files in the GetHDFS processor. Anyway, this should now make much more sense. Thanks for catching that Oleg!

@olegz
Copy link
Contributor

olegz commented Nov 2, 2016

@pvillard31 much cleaner, thx. merging.

@asfgit asfgit closed this in 1abd017 Nov 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants