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

fix(ingest) - Fix file backed collection temp directory removal #9027

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

treff7es
Copy link
Contributor

On Windows the File Backed Collection's close failed when it tried to remove the temporary director it was created because the files were open.
This only caused issues on Windows because on Linux you can delete opened files while on windows you cannot.

The files were open because TemporayDirectory's close got called earlier than it should.

In my fix I got rid of TemporaryDirectory and handled temporary directory removal manually (which actually we did as well in the code). (Unfortunately with TemporayDirectory you can't control temp directory removal (you can only in Python 3.12)

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label Oct 17, 2023
@asikowitz asikowitz merged commit 10eb205 into datahub-project:master Oct 17, 2023
53 of 55 checks passed
@maggiehays maggiehays added the hacktoberfest-accepted Acceptance for hacktoberfest https://hacktoberfest.com/participation/ label Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Acceptance for hacktoberfest https://hacktoberfest.com/participation/ ingestion PR or Issue related to the ingestion of metadata
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants