-
Notifications
You must be signed in to change notification settings - Fork 81
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
cli: add warning for duplicated index files in upload-bin
#3763
Conversation
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.
Have you located the reason?
Left comment here #3762 (comment) |
33f4361
to
a4f9305
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3763 +/- ##
==========================================
- Coverage 83.07% 83.06% -0.01%
==========================================
Files 335 335
Lines 46746 46745 -1
==========================================
- Hits 38832 38829 -3
- Misses 6322 6324 +2
Partials 1592 1592 ☔ View full report in Codecov by Sentry. |
Can this be fixed? Like checking for validity and deleting the one with lower hash? |
We can, but do we really need this? It will complicate the process of uploading, whereas duplicating index files don’t hurt BlockFetcher, it always uses the first one. I’d say that we need to properly handle uploading error in order not to retry if the object was stored. And if it comes to audit of uploaded results, then I’d suggest to make a separate audit service in order to include not only index files maintenance, but also block objects verification. It sounds like a fully qualified separate issue to me. |
NeoFS wouldn't be NeoFS if this was easy. You can PUT an object, get an incomplete placement error and still have it saved correctly (which is very likely the scenario we have here), it can be 1-2 replicas instead of 3 initially, but NeoFS will fix it eventually. The only way to check is SEARCH/GET.
At least a script for now. It all will be a service eventually, but
and I agree. |
Let's have #3764 for audit, and for now I'd leave |
As we are not afraid of duplicates this is not a critical error anymore. BlockFetcher will take the first returned by search. Close #3762 Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
a4f9305
to
c669ae3
Compare
Close #3762