From 2bb8897f76f8fc44b8eff8d343169ef991cb793c Mon Sep 17 00:00:00 2001 From: tianhang Date: Thu, 2 Feb 2023 14:15:44 +0800 Subject: [PATCH] HBASE-27595 ThreadGroup is removed since Hadoop 3.2.4 (#5001) Co-authored-by: tianhang.tang Signed-off-by: Duo Zhang (cherry picked from commit a3686eb052a00911a2331c70d92525641a9fe01e) --- .../java/org/apache/hadoop/hbase/HBaseTestingUtility.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java index 6e073dcb10a..a56433576d9 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java @@ -616,6 +616,10 @@ public class HBaseTestingUtility extends HBaseZKTestingUtility { threadGroup.setDaemon(false); } } + } catch (NoSuchFieldException e) { + LOG.debug("NoSuchFieldException: " + e.getMessage() + + "; It might because your Hadoop version > 3.2.3 or 3.3.4, " + + "See HBASE-27595 for details."); } catch (Exception e) { LOG.warn("failed to reset thread pool timeout for FsDatasetAsyncDiskService", e); }