geruh commented on code in PR #15530:
URL: https://github.com/apache/iceberg/pull/15530#discussion_r2921837204


##########
aws/src/integration/java/org/apache/iceberg/aws/glue/TestGlueCatalogCommitFailure.java:
##########
@@ -490,14 +517,20 @@ private TableMetadata updateTable(Table table, 
GlueTableOperations ops) {
 
   @SuppressWarnings("unchecked")
   private void commitAndThrowException(GlueTableOperations realOps, 
GlueTableOperations spyOps) {
+    commitAndThrowException(realOps, spyOps, new RuntimeException("Datacenter 
on fire"));
+  }
+
+  @SuppressWarnings("unchecked")
+  private void commitAndThrowException(
+      GlueTableOperations realOps, GlueTableOperations spyOps, 
RuntimeException exceptionToThrow) {
     Mockito.doAnswer(
             i -> {
               realOps.persistGlueTable(
                   i.getArgument(0, 
software.amazon.awssdk.services.glue.model.Table.class),
                   i.getArgument(1, Map.class),
                   i.getArgument(2, TableMetadata.class),
                   i.getArgument(3, RetryDetector.class));
-              throw new RuntimeException("Datacenter on fire");

Review Comment:
   this exception message lol



-- 
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]

Reply via email to