gaborkaszab commented on code in PR #17329:
URL: https://github.com/apache/iceberg/pull/17329#discussion_r3657313362
##########
api/src/test/java/org/apache/iceberg/encryption/TestEncryptingFileIO.java:
##########
@@ -151,6 +154,39 @@ public void closeClosesEncryptionManagerWhenCloseable()
throws Exception {
verify((Closeable) em).close();
}
+ @Test
+ public void closeClosesEncryptionManagerWhenFileIOCloseFails() throws
Exception {
+ RuntimeException fileIOFailure = new RuntimeException("FileIO close
failure");
Review Comment:
`FileIO.close()` throws IOException. We should also test with that. Using
that exception type we'd have seen that the message of the actual exception is
off.
--
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]