Skip to content

Log outstanding writes in DynamoDB #734

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

Merged
merged 3 commits into from
Mar 7, 2018
Merged

Conversation

bboreham
Copy link
Contributor

@bboreham bboreham commented Mar 5, 2018

To help investigate #733. From existing log lines I know we very commonly get just 1 item remaining at the timeout, so I want to know what it is.

Also some drive-by comments because I needed to figure out what was going on.

@bboreham bboreham requested a review from jml March 7, 2018 13:40
@@ -731,6 +734,7 @@ func (a storageClient) putS3Chunk(ctx context.Context, key string, buf []byte) e
})
}

// Slice of values returned; map key is attribute name
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this & similar comments. What do you think about a follow-up PR replacing string with typedefs?

Copy link
Contributor

@jml jml left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@bboreham
Copy link
Contributor Author

bboreham commented Mar 7, 2018

Sadly I had failed to observe it crashing very occasionally; there are entries which have a hash key and range key but no value. I have modified the code to be paranoid about all three.

@jml
Copy link
Contributor

jml commented Mar 7, 2018

Still LGTM.

}
if valueAttr, ok := item[valueKey]; ok {
value = valueAttr.B
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feels like something that could have been statically checked for. Oh well.

@bboreham bboreham merged commit d436c38 into master Mar 7, 2018
@bboreham bboreham mentioned this pull request Mar 9, 2018
@bboreham bboreham deleted the log-outstanding-writes branch March 22, 2018 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants