-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Minor fixes for MergeOnRead MVP release readiness #387
Conversation
n3nash
commented
May 1, 2018
•
edited
Loading
edited
- Changes to be able to pass basePath for spillable file from config
- Handling reading of archival files issue when no instant time is present (as is the case with archiving)
- Exception handling if unable to create an outputstream from append()
82cbffa
to
c30778e
Compare
c30778e
to
d3660e4
Compare
5a16677
to
5d60e14
Compare
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.
Minor changes. LG otherwise.
@@ -205,6 +210,9 @@ private void flush() throws IOException { | |||
} | |||
output.flush(); | |||
output.hflush(); | |||
// NOTE : the following API call makes sure that the data is flushed to disk on DataNodes (akin to POSIX fsync()) | |||
// See more details here : https://issues.apache.org/jira/browse/HDFS-744 | |||
output.hsync(); |
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.
does nt hsync() call hflush() ? Can we check on this. Could save 1 RPC
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.
Looks like it : "Similar to posix fsync, flush out the data in client's user buffer all the way to the disk device (but the disk may have it in its cache)"
Removed hflush().
&& fs instanceof DistributedFileSystem) { | ||
// data node is going down. Note that we can only try to recover lease for a DistributedFileSystem. | ||
// ViewFileSystem unfortunately does not support this operation | ||
if ((e.getClassName().contentEquals(AlreadyBeingCreatedException.class.getName()) || e.getClassName() |
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.
suggest pull these conditions into a method named after the check its performing, for ease of reading.
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.
moved the recoverlease into a new method, not moving append handling since the next PR (#388) will make that code neater.
5d60e14
to
f66a2c0
Compare
@vinothchandar addressed comments. |
@n3nash can you please rebase and push again |
f66a2c0
to
79f601f
Compare
@vinothchandar done. |
79f601f
to
eb829d0
Compare
eb829d0
to
5bcb142
Compare