From 6bb57017837233dc8a11faf36be977aeb48318d2 Mon Sep 17 00:00:00 2001 From: Wellington Ramos Chevreuil Date: Fri, 20 Aug 2021 10:45:16 +0100 Subject: [PATCH] =?UTF-8?q?HBASE-26184=20TestTableSnapshotScanner.testMerg?= =?UTF-8?q?eRegion=20error=20message=20is=E2=80=A6=20(#3572)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michael Stack Signed-off-by: Duo Zhang --- .../apache/hadoop/hbase/client/TestTableSnapshotScanner.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestTableSnapshotScanner.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestTableSnapshotScanner.java index 87f7b735bd86..8fc26bbc84d0 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestTableSnapshotScanner.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestTableSnapshotScanner.java @@ -460,9 +460,7 @@ public void testMergeRegion() throws Exception { } } catch (Exception e) { LOG.error("scan snapshot error", e); - Assert.fail("Should not throw FileNotFoundException"); - Assert.assertTrue(e.getCause() != null); - Assert.assertTrue(e.getCause().getCause() instanceof FileNotFoundException); + Assert.fail("Should not throw Exception: " + e.getMessage()); } finally { tearDownCluster(); }