From 8e11a5caa0090b5ec90ce9c577e9449baa30d799 Mon Sep 17 00:00:00 2001 From: stack Date: Tue, 4 Feb 2020 12:30:09 -0800 Subject: [PATCH] HBASE-23789 [Flakey Tests] ERROR [Time-limited test] balancer.HeterogeneousRegionCountCostFunction(199): cannot read rules file located at ' /tmp/hbase-balancer.rules ' --- .../hadoop/hbase/HBaseCommonTestingUtility.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/hbase-common/src/test/java/org/apache/hadoop/hbase/HBaseCommonTestingUtility.java b/hbase-common/src/test/java/org/apache/hadoop/hbase/HBaseCommonTestingUtility.java index c73189ee8fc..e8a2a79deeb 100644 --- a/hbase-common/src/test/java/org/apache/hadoop/hbase/HBaseCommonTestingUtility.java +++ b/hbase-common/src/test/java/org/apache/hadoop/hbase/HBaseCommonTestingUtility.java @@ -1,5 +1,4 @@ -/** - * +/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -113,12 +112,12 @@ public class HBaseCommonTestingUtility { } /** - * @param subdirName the name of the subdirectory in the test data directory - * @return Path to a subdirectory named {code subdirName} under - * {@link #getDataTestDir()}. Does *NOT* create it if it does not exist. + * @param name the name of a subdirectory or file in the test data directory + * @return Path to a subdirectory or file named {code subdirName} under + * {@link #getDataTestDir()}. Does *NOT* create the directory or file if it does not exist. */ - public Path getDataTestDir(final String subdirName) { - return new Path(getDataTestDir(), subdirName); + public Path getDataTestDir(final String name) { + return new Path(getDataTestDir(), name); } /**