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

PailRecordWriter using multiple OpenAttributeFiles fails to clean up #11

Open
derrickburns opened this issue Feb 1, 2013 · 0 comments

Comments

@derrickburns
Copy link

If a pail with multiple attributes is saved to S3, we have a problem.

For a pail with multiple attributes, multiple files are written. Unfortunately, these files are not updated atomically. Each AttributeFile is published by a rename operation independently. Therefore, if an update to a Pail with multiple attributes fails, some attribute files may be left on the file system.

When the exception is thrown, Hadoop will retry the operation. But it will simply fail again. Eventually, Hadoop will give up.

Further, simply deleting the files on the start of the job will not always work under S3, because deletes are only eventually consistent.

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

No branches or pull requests

1 participant