Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve DynamoDB BatchWrite error messages (grafana#3215)
DynamoDB can be used for storing either or both chunks and indexes. This change improves the error messages in `BatchWrite()` method by using `items` instead of `chunk` and also adds `DynamoDB` to the error message. The previous error message was misleading as a failed index write can produce an error message about chunks: ``` caller=flush.go:199 org_id=fake msg="failed to flush user" err="failed to write chunk, 1 values remaining: context deadline exceeded" ``` Signed-off-by: Siavash Safi <siavash.safi@gmail.com>
- Loading branch information