-
Notifications
You must be signed in to change notification settings - Fork 197
[Storage] Refactor index execution result #8005
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
base: master
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
rootCmd.AddCommand(leaders.Cmd) | ||
rootCmd.AddCommand(epochs.RootCmd) | ||
rootCmd.AddCommand(edbs.RootCmd) | ||
rootCmd.AddCommand(index_er.RootCmd) |
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.
This tool is no longer useful since this PR. Because now we don't allow multiple results to be stored for the same block, therefore we don't have multiple results to choose from which one to be reindexed with.
ctx.Throw(fmt.Errorf("could not acquire lock for collection indexing: %w", err)) | ||
return | ||
} | ||
defer lctx.Release() |
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.
Mistake like this will happen, in order to avoid this, I will create a separate PR to replace all AcquireLock usages with storage.WithLock
Work towards #7912
This PR refactors execution result related storage operations to add lock ctx