Skip to content
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

Merged
merged 3 commits into from
Aug 16, 2023
Merged

Add Peapod to NeoFS Lens #2514

merged 3 commits into from
Aug 16, 2023

Conversation

cthulhu-rider
Copy link
Contributor

@cthulhu-rider cthulhu-rider commented Aug 16, 2023

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
Copy link

codecov bot commented Aug 16, 2023

Codecov Report

Merging #2514 (70a9fd3) into master (699b756) will increase coverage by 0.01%.
The diff coverage is 57.14%.

❗ Current head 70a9fd3 differs from pull request most recent head 6d802f4. Consider uploading reports for the commit 6d802f4 to get more accurate results

@@            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     
Files Changed Coverage Δ
pkg/local_object_storage/blobstor/peapod/peapod.go 73.36% <57.14%> (-0.12%) ⬇️

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@carpawell carpawell left a 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

CHANGELOG.md Outdated Show resolved Hide resolved
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]>
@cthulhu-rider cthulhu-rider merged commit 66bc5b2 into master Aug 16, 2023
7 of 8 checks passed
@cthulhu-rider cthulhu-rider deleted the feature/2507-lens-peapod branch August 16, 2023 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add peapod into neofs-lens
3 participants