-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix undefined behavior on simultaneous write in daemon state file (#326)
* undefined behavior on simultaneous read or write * use handles * let it finish * POC * add force write * drop guard if not used * should not be able to edit read-only * clean ups and more tests * update comment on Global Write State * update comment for global write state * remove var to fix tests * Allow cloning locked state * minimize mutex lock impact progress * move channel to sender * add some tests * remove unused code * fix tests * add error handling * add drop tests * fix rest of the tests * apply Robin review * restore cw-orch-core * restore tube * Update cw-orch-daemon/src/state.rs Co-authored-by: CyberHoward <88450409+CyberHoward@users.noreply.github.com> * Update cw-orch-daemon/src/state.rs Co-authored-by: CyberHoward <88450409+CyberHoward@users.noreply.github.com> * Update outdated comment * remove outdated comments * post-merge fixes * update changelog * Nicoco nits * private `state_path` and fix grpc connection * need to unset state env * fix write, for cases where new file smaller than original(for example flush) * add flush where it's needed * ignore toxic test * Remove rt in clone testing mock state * Changelog --------- Co-authored-by: CyberHoward <88450409+CyberHoward@users.noreply.github.com> Co-authored-by: Kayanski <kowalski.kowalskin@gmail.com>
- Loading branch information
1 parent
9c43514
commit 0a2f299
Showing
24 changed files
with
649 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.