-
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
upload-bin
may upload the same index file twice
#3762
Comments
upload-bin
may upload the same index file twiseupload-bin
may upload the same index file twice
Indeed we do have a duplicated index file:
As the Timestamp attribute is the same, the reason is that NeoFS didn't respond or return an error while successfully putting the initial object. That is why the uploader tried to put the same object back up until success was returned. Looking at NeoFS logs where the first object was put at 2024-12-16 22:58:48.078 and the second one at 2024-12-16 22:58:50.854 - 2776 milliseconds between not closely but aligned with retry behaviour. Which proves the hypothesis about retry. The error returned by NeoFS is unknown we should run our uploader in debug mode next time to catch such cases. |
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 <[email protected]>
OK, in future we need to filter this error out in order to skip retry if it happens. But since we don't know what the error is, let's just ignore duplicating index files.
Let's do this. |
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 <[email protected]>
Current Behavior
upload-bin
has successfully completed its execution (uploaded the full N3 mainnet chain) and then was automatically restarted. After restart the log tells that there's duplicated index file:However, no error happened on
22
-nd index file uploading:Expected Behavior
There shouldn't be any duplicated index files uploaded during normal
upload-bin
work, because there was no script interruptions.Possible Solution
22
-nd index file. Check what's the difference, check the time of object creation, attach this information to the issue.upload-bin
even if multiple index files are found with the same index (but print a warning to logs).Steps to Reproduce
Check the logs of
upload-bin
running for N3 mainnet ({unit="neogo-block-uploader-mainnet.service"}
), container ID is3RCdP3ZubyKyo8qFeo7EJPryidTZaGCMdUjqFJaaEKBV
.The text was updated successfully, but these errors were encountered: