diff --git a/dev-support/hbase-personality.sh b/dev-support/hbase-personality.sh index 8dd24be260..39bc34fa39 100755 --- a/dev-support/hbase-personality.sh +++ b/dev-support/hbase-personality.sh @@ -706,6 +706,19 @@ function hbaseanti_patchfile return 0 } +# Override the default javac_logfilter so that we can do a sort before outputing the WARNING/ERROR. +# This is because that the output order of the error prone warnings is not stable, so the diff +# method will report unexpected errors if we do not sort it. Notice that a simple sort will cause +# line number being sorted by lexicographical so the output maybe a bit strange to human but it is +# really hard to sort by file name first and then line number and column number in shell... +function hbase_javac_logfilter +{ + declare input=$1 + declare output=$2 + + ${GREP} -E '\[(ERROR|WARNING)\] /.*\.java:' "${input}" | sort > "${output}" +} + ## This is named so that yetus will check us right after running tests. ## Essentially, we check for normal failures and then we look for zombies. #function hbase_unit_logfilter diff --git a/hbase-client/pom.xml b/hbase-client/pom.xml index 96367df8e9..506e8838ff 100644 --- a/hbase-client/pom.xml +++ b/hbase-client/pom.xml @@ -19,6 +19,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +for test --> 4.0.0