-
Notifications
You must be signed in to change notification settings - Fork 847
Do queries on background go routines which backoff #153
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
Conversation
|
Status: testing it, and plan on moving the backoff on chunk put into the chunk store using the same mechanism. |
|
(Testing locally. Worked first time, so I wrote some unit tests) |
jml
left a comment
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.
I tried, but couldn't manage to do a thorough review.
|
|
||
| // Not exported as only used by tests to inject mocks | ||
| dynamodb dynamodbClient | ||
| s3 s3Client |
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 would be better to have a separate function for creating an AWSStore that takes a dynamodbClient, s3client, and chunk Cache directly. Separates the concern of parsing & validating config from constructing a usable store.
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.
I'll do a techdebt ticket to split this up; we basically have the beginning of our own dynamodb client now.
chunk/chunk_store.go
Outdated
| continue | ||
| } | ||
|
|
||
| // If we get provisionedThroughputExceededException, then no items we're processed, |
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.
"were"
Also, don't let the client library do retires for us, so we can correctly gauge capacity usage etc.
Part of #132