You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2021/11/15 16:59:39 UTC

[GitHub] [ozone] sodonnel commented on a change in pull request #2831: HDDS-5951. EC: ECBlockReconstructedStripeInputStream should handle block read failures and continue reading

sodonnel commented on a change in pull request #2831:
URL: https://github.com/apache/ozone/pull/2831#discussion_r749516710



##########
File path: hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/read/TestECBlockReconstructedStripeInputStream.java
##########
@@ -354,8 +355,8 @@ public void testErrorThrownIfBlockNotLongEnough() throws IOException {
       try {
         ecb.readStripe(bufs);
         Assert.fail("Read should have thrown an exception");
-      } catch (IOException e) {
-        Assert.assertTrue(e.getMessage().matches("^Expected\\sto\\sread.+"));
+      } catch (InsufficientLocationsException e) {

Review comment:
       Yea, I am aware there is some JUnit magic to do this sort of thing, but find it easier to understand like this and avoid the "magic" annotations




-- 
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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org