xiaoxuandev commented on code in PR #4821:
URL: https://github.com/apache/iceberg/pull/4821#discussion_r877631019
##########
aws/src/integration/java/org/apache/iceberg/aws/glue/TestGlueCatalogCommitFailure.java:
##########
@@ -244,6 +249,75 @@ private void
concurrentCommitAndThrowException(GlueTableOperations realOps, Glue
}).when(spyOperations).persistGlueTable(Matchers.any(), Matchers.anyMap(),
Matchers.any());
}
+ @Test
+ public void testCreateTableWithInvalidDB() {
+ Table table = setupTable();
+ GlueTableOperations ops = (GlueTableOperations) ((HasTableOperations)
table).operations();
+
+ TableMetadata metadataV1 = ops.current();
+ TableMetadata metadataV2 = updateTable(table, ops);
+
+ GlueTableOperations spyOps = Mockito.spy(ops);
+ failCommitAndThrowException(spyOps,
EntityNotFoundException.builder().build());
+
+ AssertHelpers.assertThrows(
+ "Should throw not found exception",
Review Comment:
Indent should be 4
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]