-
Notifications
You must be signed in to change notification settings - Fork 34
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: add memstore config to return failover errors on puts #289
feat: add memstore config to return failover errors on puts #289
Conversation
This is useful for testing failover in batcher. Right now a new proxy would need to be spun up with this config turned on. We should consider adding an admin rpc rpi to turn these on/off dynamically.
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.
LGTM - just one nit
store/generated_key/memstore/cli.go
Outdated
@@ -67,18 +76,25 @@ func CLIFlags(envPrefix, category string) []cli.Flag { | |||
}, | |||
&cli.DurationFlag{ | |||
Name: PutLatencyFlagName, | |||
Usage: "Artificial latency added for memstore backend to mimic EigenDA's dispersal latency.", | |||
Usage: "(FOR TESTING) Artificial latency added for memstore backend to mimic EigenDA's dispersal latency.", |
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.
nit - isn't this entire construction used for testing? maybe less redundant to put disclosure in category description instead
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.
Good point haha, removed
55b4ec1
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.
LGTM
This is useful for testing failover in batcher.
Right now a new proxy would need to be spun up with this config turned on. We should consider adding an admin rpc rpi to turn these on/off dynamically.
Fixes Issue
Fixes #
Changes proposed
Screenshots (Optional)
Note to reviewers