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
[Debug] DynamoDB #633
[Debug] DynamoDB #633
Conversation
@@ -406,6 +409,10 @@ func createBatchWriteWorker(writeCh <-chan *batchWriteWorkerInput) { | |||
numUnprocessed := len(BatchWriteItemOutput.UnprocessedItems[batchInput.tableName]) | |||
for err != nil || numUnprocessed != 0 { | |||
if err != nil { | |||
if strings.Contains(err.Error(), "ValidationException") { |
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.
Why does this error happen?
- If we remove the dynamoDB table, it can be happen?
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 happens when there is a input errror such as duplicated input in batch, 0 or more than 25 items in batch, empty input in item and so on.
When we remove teh dynamoDB table, ResourceNotFoundException will occur. But this error can also occur when the table is being created or archived. I don't think it is a good idea to crit on ResourceNotFoundException because it can be solved when time passes.
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.
What is duplicated input
? Is it same key/value item with another one?
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.
Yes, if there are two items with the same key, it is an error.
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.
OK. I got it your intention.
Please write some comments about the case of the error and why this crit is needed.
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. but please add some comment about the crit.
Proposed changes
klaytn-default-misc
(always had-misc
postfix) ->klaytn-default
klaytn-default
->klaytn-default-misc
,klaytn-default-header
, ...Types of changes
Please put an x in the boxes related to your change.
Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.
$ make test
)Related issues
Further comments