Conversation
There was a problem hiding this comment.
Pull request overview
Adds an offline recovery utility to restore a previously persisted object by scanning deleted (“rescued”) data files and re-appending the object’s binary blob into live storage, along with documentation for operators.
Changes:
- Introduces
StorageObjectRestorer(default implementation) to locate an object blob in deleted files and append it back into live storage + write transactions log entries. - Extends
StorageFileProvider/StorageFileNameProviderwith APIs to enumerate and parse deleted data files in the deletion directory. - Documents the new recovery workflow and operational constraints in troubleshooting docs.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 8 comments.
| File | Description |
|---|---|
storage/storage/src/main/java/org/eclipse/store/storage/util/StorageObjectRestorer.java |
New restoration utility that scans deleted data files, extracts entity blobs, appends to live data files, and writes transaction log entries. |
storage/storage/src/main/java/org/eclipse/store/storage/types/StorageFileProvider.java |
Adds collectDeletedDataFiles(...) to iterate deleted/rescued channel data files under the deletion directory. |
storage/storage/src/main/java/org/eclipse/store/storage/types/StorageFileNameProvider.java |
Adds parseDeletedDataInventoryFile(...) to parse rescued/deleted data file names (with deletion tag suffix). |
docs/modules/storage/pages/addendum/troubleshooting.adoc |
Adds operator documentation for restoring deleted objects using the new restorer. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…torageObjectRestorer.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
…StorageFileNameProvider.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…torageObjectRestorer.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…torageObjectRestorer.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ore/store into StorageObjectRecovery
Recover an object by its ID from "deleted" files, if available