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
Workspace files being written unnecessarily #3805
Labels
persistence
Issues about the way user data is saved on disk
Type: Bug
Issues related to software defects or unexpected behavior, which require resolution.
workspace
About data directory where user projects and metadata are stored
Milestone
Comments
tfmorris
added
Type: Bug
Issues related to software defects or unexpected behavior, which require resolution.
Status: Pending Review
Indicates that the issue or pull request is awaiting review by project maintainers or collaborators
labels
Apr 11, 2021
thadguidry
added
workspace
About data directory where user projects and metadata are stored
and removed
Status: Pending Review
Indicates that the issue or pull request is awaiting review by project maintainers or collaborators
labels
Oct 6, 2022
wetneb
added a commit
to ComgLq24/OpenRefine
that referenced
this issue
Apr 24, 2023
Closes OpenRefine#3805. Co-authored-by: ComgLq24 <ComgLqWork@outlook.com>
wetneb
added a commit
that referenced
this issue
Apr 24, 2023
* Fix frequent writes to metadata files Closes #3805. Co-authored-by: ComgLq24 <ComgLqWork@outlook.com> * Update after migration from LocalDateTime to Instant --------- Co-authored-by: Antonin Delpeuch <antonin@delpeuch.eu>
tfmorris
added a commit
to tfmorris/OpenRefine
that referenced
this issue
Aug 25, 2023
I reopened this because every project is getting written every time OpenRefine starts up. I've started a branch which fixes that and a few other issues. |
tfmorris
added a commit
to tfmorris/OpenRefine
that referenced
this issue
Sep 13, 2023
tfmorris
added a commit
to tfmorris/OpenRefine
that referenced
this issue
Sep 13, 2023
wetneb
pushed a commit
that referenced
this issue
Sep 25, 2023
* Restore previous constructor behavior Use modified time if we're given one. * Enhance test to cover initial read case It wasn't testing if an unnecessary project write occurs when projects are read, but not written * Make sure lastSave timestamp is initialized on load - fixes #3805 * Fix test for workspace save on project remove from PR #4796 * Save workspace when projects removed. Fixes #1418 * Refactor to clean up workspace save - only write temp file if needed rather than writing, then deleting if unneeded - check and log errors on file create/delete/rename - use try-with-resources to avoid resource leaks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
persistence
Issues about the way user data is saved on disk
Type: Bug
Issues related to software defects or unexpected behavior, which require resolution.
workspace
About data directory where user projects and metadata are stored
Current Results
It looks like all of the individual projects'
metadata.json
files are getting written every 5 minutes, even if the project hasn't been modified in any way - or even opened. This is both wasteful and error prone because it provides many more windows for project corruption when no file write is needed.Expected Behavior
File updates should be minimized and restricted to those that are actually needed. Unmodified files should not be re-written.
Screenshots
Versions
The text was updated successfully, but these errors were encountered: