You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by me...@apache.org on 2024/02/08 07:38:19 UTC
(hbase) branch branch-3 updated: HBASE-28274 Flaky test: TestFanOutOneBlockAsyncDFSOutput (Part 2) (#5592)
This is an automated email from the ASF dual-hosted git repository.
meszibalu pushed a commit to branch branch-3
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-3 by this push:
new 64eea86dbd1 HBASE-28274 Flaky test: TestFanOutOneBlockAsyncDFSOutput (Part 2) (#5592)
64eea86dbd1 is described below
commit 64eea86dbd1aacf1f2e48b987a24ea9e5576439a
Author: Andor Molnár <an...@cloudera.com>
AuthorDate: Fri Dec 22 10:07:15 2023 +0100
HBASE-28274 Flaky test: TestFanOutOneBlockAsyncDFSOutput (Part 2) (#5592)
Signed-off-by: Tak Lon (Stephen) Wu <ta...@apache.org>
Signed-off-by: Wellington Chevreuil <wc...@apache.org>
Signed-off-by: Balazs Meszaros <me...@apache.org>
---
.../hbase/io/asyncfs/TestFanOutOneBlockAsyncDFSOutput.java | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/hbase-asyncfs/src/test/java/org/apache/hadoop/hbase/io/asyncfs/TestFanOutOneBlockAsyncDFSOutput.java b/hbase-asyncfs/src/test/java/org/apache/hadoop/hbase/io/asyncfs/TestFanOutOneBlockAsyncDFSOutput.java
index 3c385283103..68b8bfa3d9f 100644
--- a/hbase-asyncfs/src/test/java/org/apache/hadoop/hbase/io/asyncfs/TestFanOutOneBlockAsyncDFSOutput.java
+++ b/hbase-asyncfs/src/test/java/org/apache/hadoop/hbase/io/asyncfs/TestFanOutOneBlockAsyncDFSOutput.java
@@ -52,10 +52,12 @@ import org.apache.hadoop.ipc.RemoteException;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.ClassRule;
+import org.junit.FixMethodOrder;
import org.junit.Rule;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.rules.TestName;
+import org.junit.runners.MethodSorters;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -65,6 +67,7 @@ import org.apache.hbase.thirdparty.io.netty.channel.EventLoopGroup;
import org.apache.hbase.thirdparty.io.netty.channel.nio.NioEventLoopGroup;
import org.apache.hbase.thirdparty.io.netty.channel.socket.nio.NioSocketChannel;
+@FixMethodOrder(MethodSorters.NAME_ASCENDING)
@Category({ MiscTests.class, MediumTests.class })
public class TestFanOutOneBlockAsyncDFSOutput extends AsyncFSTestBase {
@@ -142,8 +145,12 @@ public class TestFanOutOneBlockAsyncDFSOutput extends AsyncFSTestBase {
writeAndVerify(FS, f, out);
}
+ /**
+ * Test method has been renamed to be the first in NAME_ASCENDING. It's an ugly hack to avoid
+ * flakiness.
+ */
@Test
- public void testRecover() throws IOException, InterruptedException, ExecutionException {
+ public void test0Recover() throws IOException, InterruptedException, ExecutionException {
Path f = new Path("/" + name.getMethodName());
EventLoop eventLoop = EVENT_LOOP_GROUP.next();
FanOutOneBlockAsyncDFSOutput out = FanOutOneBlockAsyncDFSOutputHelper.createOutput(FS, f, true,