Skip to content
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

Merged
merged 1 commit into from
May 9, 2018

Conversation

n3nash
Copy link
Contributor

@n3nash n3nash commented May 1, 2018

  1. Changes to be able to pass basePath for spillable file from config
  2. Handling reading of archival files issue when no instant time is present (as is the case with archiving)
  3. Exception handling if unable to create an outputstream from append()

@n3nash n3nash force-pushed the minor_fixes_for_mor_mvp branch from 82cbffa to c30778e Compare May 1, 2018 23:20
@n3nash
Copy link
Contributor Author

n3nash commented May 1, 2018

@vinothchandar @bvaradar

@n3nash n3nash force-pushed the minor_fixes_for_mor_mvp branch from c30778e to d3660e4 Compare May 1, 2018 23:27
@n3nash n3nash force-pushed the minor_fixes_for_mor_mvp branch 2 times, most recently from 5a16677 to 5d60e14 Compare May 2, 2018 22:02
Copy link
Member

@vinothchandar vinothchandar left a 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();
Copy link
Member

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

Copy link
Contributor Author

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()
Copy link
Member

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.

Copy link
Contributor Author

@n3nash n3nash May 8, 2018

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.

@n3nash n3nash force-pushed the minor_fixes_for_mor_mvp branch from 5d60e14 to f66a2c0 Compare May 8, 2018 06:24
@n3nash
Copy link
Contributor Author

n3nash commented May 8, 2018

@vinothchandar addressed comments.

@vinothchandar
Copy link
Member

@n3nash can you please rebase and push again

@n3nash n3nash force-pushed the minor_fixes_for_mor_mvp branch from f66a2c0 to 79f601f Compare May 9, 2018 05:18
@n3nash
Copy link
Contributor Author

n3nash commented May 9, 2018

@vinothchandar done.

@n3nash n3nash force-pushed the minor_fixes_for_mor_mvp branch from 79f601f to eb829d0 Compare May 9, 2018 05:36
@n3nash n3nash force-pushed the minor_fixes_for_mor_mvp branch from eb829d0 to 5bcb142 Compare May 9, 2018 06:00
@vinothchandar vinothchandar merged commit 93f345a into apache:master May 9, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants