-
Notifications
You must be signed in to change notification settings - Fork 341
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
truncate
support
#73
truncate
support
#73
Conversation
8b9ff08
to
7779883
Compare
Hey @junjieqian, This is great work, but I'm a bit worried about adding library support for a feature that's barely supported in the actual code - especially if that means we can't test it appropriately. If it's ok, I'd like to wait to merge this PR until 2.7 is better-supported in most or all the major distros. CDH6 seems like it should bump up to 2.7, at least. |
Hi @colinmarc , sure, let us hold this until 2.7 is supported in all the distros, 👍 . |
Can this PR be merged into the main branch now? We really need this feature. @colinmarc |
Can this PR be merged into master now? We really need this feature. @colinmarc |
f94d8fe
to
181da54
Compare
HDFS sometimes fails to close a file, indicating that the namenode has not yet recieved news from the datanodes that all data is flushed and replicated. In this case we should return an error to the client, so they know to retry.
181da54
to
535bcfd
Compare
Thanks @junjieqian! Merged in 2f11406. |
This PR is to provide
truncate
feature. About the test:truncate
yet (till Hadoop-2.7,truncate
is supported).truncate
takes some time to be effective, and now a time delay (3 seconds, longer maybe safer) is added to the test. Not sure if we can find another better way for this, as the users may need to be aware this delay as well whentruncate
is used.