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

Allow to replicate object to other nodes in control.EvacuateShard #1800

Merged
merged 3 commits into from
Sep 24, 2022

Conversation

fyrchik
Copy link
Contributor

@fyrchik fyrchik commented Sep 19, 2022

Related #1105

@codecov
Copy link

codecov bot commented Sep 19, 2022

Codecov Report

Merging #1800 (7d54070) into master (93ae3f0) will increase coverage by 0.04%.
The diff coverage is 55.55%.

❗ Current head 7d54070 differs from pull request most recent head cb6d132. Consider uploading reports for the commit cb6d132 to get more accurate results

@@            Coverage Diff             @@
##           master    #1800      +/-   ##
==========================================
+ Coverage   33.41%   33.45%   +0.04%     
==========================================
  Files         352      352              
  Lines       23962    23969       +7     
==========================================
+ Hits         8008     8020      +12     
+ Misses      15287    15283       -4     
+ Partials      667      666       -1     
Impacted Files Coverage Δ
pkg/local_object_storage/engine/evacuate.go 80.55% <55.55%> (+2.09%) ⬆️
pkg/local_object_storage/engine/put.go 75.36% <0.00%> (+7.24%) ⬆️

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

cthulhu-rider
cthulhu-rider previously approved these changes Sep 20, 2022
pkg/services/control/server/evacuate.go Outdated Show resolved Hide resolved
pkg/services/control/server/evacuate.go Show resolved Hide resolved
}
}

var res replicatorResult
Copy link
Member

Choose a reason for hiding this comment

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

what if nodes is empty after the current node exclusion?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The res.count == 0 after HandleTask and we will return an error.

Copy link
Member

Choose a reason for hiding this comment

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

HandleTask has some debug logging even with an empty task so i meant it could be cached earlier, but ok

pkg/services/control/server/evacuate.go Show resolved Hide resolved
Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
…vacuateShard RPC

Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
… parameters

Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
@fyrchik fyrchik merged commit 898689e into nspcc-dev:master Sep 24, 2022
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.

3 participants