Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

com.amazonaws.services.dynamodbv2.model.AmazonDynamoDBException: Cannot read from backfilling global secondary index

We keep getting this exception in our app which has a scheduled job to read on a gloabl secondary index. Looks like it keeps backfilling periodically even though there were no changes on the table. The volumes on our table are quite low so a bit surprised to see this a few times a day. This is not a new index, so wondering should it not backfill only on insert/update of records. Anyone seen this before?

like image 858
Sateesh Avatar asked Dec 13 '19 12:12

Sateesh


People also ask

What does this Amazon DynamoDB exception mean?

AmazonDynamoDBException: The security token included in the request is invalid. The complete stack is this. Exception in thread "main" com.amazonaws.services.dynamodbv2.model.AmazonDynamoDBException: The security token included in the request is invalid.

What is the AWS Java SDK for Amazon DynamoDB module?

The AWS Java SDK for Amazon DynamoDB module holds the client classes that are used for communicating with Amazon DynamoDB Service.

What are DynamoDB error messages and codes?

It also describes error messages and codes that are specific to Amazon DynamoDB. When your program sends a request, DynamoDB attempts to process it. If the request is successful, DynamoDB returns an HTTP success status code ( 200 OK ), along with the results from the requested operation.

How to handle a resourcenotfoundexception in DynamoDB?

For example, in a Java program, you can write try-catch logic to handle a ResourceNotFoundException . If you are not using an AWS SDK, you need to parse the content of the low-level response from DynamoDB.


2 Answers

It might be creating that GSI. Wait for sometime based on the amount of data in your DB. And this issue will go away.

like image 123
Khader M A Avatar answered Sep 21 '22 10:09

Khader M A


I just waited 30 seconds, the error was gone away automatically. I edited my dynamoDB table from my aws console directly, I think this temporary error originated from this.

like image 26
DanteDX Avatar answered Sep 18 '22 10:09

DanteDX