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

adm: use native neo-go sessions in dump-hashes #2224

Merged
merged 1 commit into from
Jan 31, 2023

Conversation

fyrchik
Copy link
Contributor

@fyrchik fyrchik commented Jan 30, 2023

If we had lots of domains in one zone, dump-hashes for all others can miss some domains, because we need to restrict ourselves with some number.
In this commit we use neo-go sessions by default, with a proper failback to in-script iterator unwrapping.

Signed-off-by: Evgenii Stratonikov e.stratonikov@yadro.com

@codecov
Copy link

codecov bot commented Jan 30, 2023

Codecov Report

Merging #2224 (9333c06) into support/v0.35 (c0d91d8) will decrease coverage by 0.03%.
The diff coverage is 0.00%.

@@                Coverage Diff                @@
##           support/v0.35    #2224      +/-   ##
=================================================
- Coverage          30.89%   30.87%   -0.03%     
=================================================
  Files                383      383              
  Lines              28365    28387      +22     
=================================================
  Hits                8764     8764              
- Misses             18854    18876      +22     
  Partials             747      747              
Impacted Files Coverage Δ
...md/neofs-adm/internal/modules/morph/dump_hashes.go 0.00% <0.00%> (ø)

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

roman-khimov
roman-khimov previously approved these changes Jan 30, 2023
Copy link
Member

@roman-khimov roman-khimov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

cmd/neofs-adm/internal/modules/morph/dump_hashes.go Outdated Show resolved Hide resolved
}

if !bytes.HasSuffix(bs, []byte(zone)) {
continue
return
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

roman-khimov
roman-khimov previously approved these changes Jan 30, 2023
carpawell
carpawell previously approved these changes Jan 31, 2023
acid-ant
acid-ant previously approved these changes Jan 31, 2023
If we had lots of domains in one zone, `dump-hashes` for all others
can miss some domains, because we need to restrict ourselves with _some_
number.
In this commit we use neo-go sessions by default, with a proper
failback to in-script iterator unwrapping.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
@fyrchik fyrchik merged commit db76f99 into nspcc-dev:support/v0.35 Jan 31, 2023
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.

None yet

4 participants