-
Notifications
You must be signed in to change notification settings - Fork 37
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
Feat/Expire SGs based on its attributes #1402
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1402 +/- ##
==========================================
- Coverage 35.71% 35.66% -0.05%
==========================================
Files 308 308
Lines 18249 18274 +25
==========================================
Hits 6517 6517
- Misses 11182 11207 +25
Partials 550 550
Continue to review full report at Codecov.
|
// EpochSource is an interface that provides actual | ||
// epoch information. | ||
EpochSource interface { | ||
// EpochCounter must return current epoch number. | ||
EpochCounter() uint64 | ||
} |
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.
pkg/core/netmap.State
?
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.
it has different method names, also we have that approach (a separate interface in the processor) in netmap processor and some other processors
do you want me to add another wrapper in the innerring constructor or to unify all the netmap state interfaces and put it to the pkg/core/netmap.State
?
Also, move common flag constants in `root` file of the `storagegroup` package. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
Do not use `Marshal()` with object's payload. Use `ReadFromObject` func from SDK instead. That allows checking both attributes and SG body's expiration epoch. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
That allows using `ClientCache` for storage group searching before task context is initialized. Also, that makes it more general purpose. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
Also, add corresponding structure for that. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
Also, move common flag constants in `root` file of the `storagegroup` package. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
Do not use `Marshal()` with object's payload. Use `ReadFromObject` func from SDK instead. That allows checking both attributes and SG body's expiration epoch. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
That allows using `ClientCache` for storage group searching before task context is initialized. Also, that makes it more general purpose. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
`auditor` does not need to request SG: processor will fetch that info before audit context initialization. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
Also, add corresponding structure for that. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
Closes #1225.
Based on nspcc-dev/neofs-sdk-go#245. Merging must be synced with nspcc-dev/neofs-api#205. Also it is impossible to merge that PR until the master branch of the SDK is adopted in the node.