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

truncate support #73

Closed
wants to merge 3 commits into from
Closed

Conversation

junjieqian
Copy link
Contributor

This PR is to provide truncate feature. About the test:

  1. Cloudera's package uses Hadoop-2.6, which does not support truncate yet (till Hadoop-2.7, truncate is supported).
  2. 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 when truncate is used.

@junjieqian junjieqian changed the title Jqian/pr/truncate truncate support Mar 28, 2017
@colinmarc
Copy link
Owner

colinmarc commented Mar 31, 2017

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.

@junjieqian
Copy link
Contributor Author

Hi @colinmarc , sure, let us hold this until 2.7 is supported in all the distros, 👍 .

@gotoxu
Copy link

gotoxu commented Jan 14, 2019

Can this PR be merged into the main branch now? We really need this feature. @colinmarc

@hykych
Copy link

hykych commented Jul 31, 2020

Can this PR be merged into master now? We really need this feature. @colinmarc

@colinmarc colinmarc force-pushed the jqian/pr/truncate branch 10 times, most recently from f94d8fe to 181da54 Compare February 8, 2022 22:54
colinmarc and others added 3 commits February 9, 2022 10:01
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.
@colinmarc
Copy link
Owner

Thanks @junjieqian! Merged in 2f11406.

smkniazi pushed a commit to smkniazi/hopsfs-go-client that referenced this pull request Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants