-
Notifications
You must be signed in to change notification settings - Fork 38
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
Add Peapod to NeoFS Lens #2514
Add Peapod to NeoFS Lens #2514
Conversation
cthulhu-rider
commented
Aug 16, 2023
•
edited
Loading
edited
- closes Add peapod into neofs-lens #2507
Previously, `Peapod` provided `Iterate` method implementing `common.Storage` interface for data traversal. This method allows to iterate over keys (object addresses) only, but in suboptimal way: data is decoded and ignored at the same time. Some other components like Blobovnicza provide dedicated key-only iterator, so it's worth to support this feature in Peapod, too. Add `IterateAddresses` method with simple signature. Refs #2507. Signed-off-by: Leonard Lyubich <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #2514 +/- ##
==========================================
+ Coverage 29.68% 29.69% +0.01%
==========================================
Files 404 404
Lines 30697 30711 +14
==========================================
+ Hits 9111 9119 +8
- Misses 20820 20824 +4
- Partials 766 768 +2
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
6040a56
to
2e47340
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the second commit has writecache
cmd description but there is no such cmd in fact
Recently introduced storage component named Peapod is a good candidate to be inspected by NeoFS Lens app. Add `peapod` command with `inspect` and `list` sub-commands similar to `blobovnicza` and `write-cache` commands. Closes #2507. Signed-off-by: Leonard Lyubich <[email protected]>
It's easy to encounter runtime panic due to non-obvious Peapod interface: some extra methods must be called before data interface usage (see NeoFS Lens implementation for example). Signed-off-by: Leonard Lyubich <[email protected]>
2e47340
to
6d802f4
Compare