Skip to content

Commit

Permalink
[E2E] Fix AmazondynamodbIT unstable (apache#6640)
Browse files Browse the repository at this point in the history
  • Loading branch information
hailin0 committed Apr 3, 2024
1 parent 80f392a commit de4242c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,9 @@ private void clearSinkTable() {
}

private void assertHasData(String tableName) {
ScanResponse scan = dynamoDbClient.scan(ScanRequest.builder().tableName(tableName).build());
ScanResponse scan =
dynamoDbClient.scan(
ScanRequest.builder().tableName(tableName).consistentRead(true).build());
Assertions.assertTrue(
!scan.items().isEmpty(), String.format("table %s is empty.", tableName));
}
Expand Down

0 comments on commit de4242c

Please sign in to comment.