-
Notifications
You must be signed in to change notification settings - Fork 859
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
Add support for un compressed files, unit test added. #381
base: master
Are you sure you want to change the base?
Add support for un compressed files, unit test added. #381
Conversation
Currently in the pathAndCodecforEventLog function in the second case block there is no support for un compressed files, this makes Dr. Elephant look for files with lz4 compression default. This patch adds support for the same.
@@ -274,6 +282,9 @@ trait SparkUtils { | |||
// if codec is not available, but we found a file match with appId, use the actual file Path from the first match | |||
case nocodec if nocodec._1 != None & nocodec._3 == None => (attemptsList(0).getPath(), DEFAULT_COMPRESSION_CODEC) | |||
|
|||
case nocompression if nocompression._1 == None & nocompression._2 == None & nocompression._3 == None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please write the coment for this case condition , as have written in another case conditions
@@ -182,6 +187,7 @@ trait SparkUtils { | |||
private val IN_PROGRESS = ".inprogress" | |||
private val DEFAULT_COMPRESSION_CODEC = "lz4" | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit : Remove unnecessary lines (apply elsewhere)
" withlogPath: " + eventLogPath + | ||
" with codec:" + eventLogCodec) | ||
" with codec:" + eventLogCodec) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit : Extra space
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please log also in case eventLogCodec empty (as with no-compression case)
@achyuthsamudrala Please add more description in pull request . It will help other reviewers to understand the context better |
Currently in the pathAndCodecforEventLog function in the second case block there is no support for un compressed files, this makes Dr. Elephant look for files with lz4 compression default. This patch adds support for the same.