Repository navigation
issue-1751: [Filestore] Add persistent state-file discovery and locking - #7455
Conversation
d6971fb to
9bb057d
Compare
|
AI review
I've changed the code - now it returns an opened file instead of a path.
I consider this as a overengineering and out of scope from this PR.
This is an unnecessary overengineering.
Done
This is out of scope for this PR
It is not expected that open succeeds but GetLength fails.
I've removed The lock is associated with the open file and is released when its last TFile owner is destroyed. Keeping the file alive provides the RAII guard for the required lock lifetime. Note:
No fix is needed
I've reverted this change
Follow-up:
Fixed
Done
Done
|
9bb057d to
dc3b271
Compare
dc3b271 to
651368d
Compare
651368d to
a9ed37f
Compare
|
Note This is an automated comment that will be appended during run. Note All workloads for linux-x86_64-relwithdebinfo have completed. Tip Planned checks for linux-x86_64-relwithdebinfo. 🟢 linux-x86_64-relwithdebinfo target: cloud/filestore/ (test time: 5290s): all tests PASSED for commit a9ed37f.
|
a9ed37f to
553c6a5
Compare
|
Note This is an automated comment that will be appended during run. Note All workloads for linux-x86_64-relwithdebinfo have completed. Tip Planned checks for linux-x86_64-relwithdebinfo. 🟢 linux-x86_64-relwithdebinfo target: cloud/filestore/ (test time: 5345s): all tests PASSED for commit 553c6a5.
|
Notes
Added persistent state-file discovery and locking support for Filestore recovery tools. The locator can list state files or locate and open a specific file with read-only or read-write access.
Motivation
Recovery tools need a common way to find state files by filesystem, session, and type. They also need to detect active files and lock the selected file before reading or modifying its contents.
Changes
LocateAndOpenStateFilereturningTResultOrError<TFile>.Issue
#1751