Repository: beam Updated Branches: refs/heads/master 45f63eb6c -> 498ce9f40
[BEAM-1550] Enable parallel test execution for HBaseIO Project: http://git-wip-us.apache.org/repos/asf/beam/repo Commit: http://git-wip-us.apache.org/repos/asf/beam/commit/2b939638 Tree: http://git-wip-us.apache.org/repos/asf/beam/tree/2b939638 Diff: http://git-wip-us.apache.org/repos/asf/beam/diff/2b939638 Branch: refs/heads/master Commit: 2b939638a894bfafd2a10d35dee7de65fa6d1021 Parents: 6d502fa Author: Ismaël MejÃa <[email protected]> Authored: Fri Mar 31 12:08:22 2017 +0200 Committer: Dan Halperin <[email protected]> Committed: Tue Apr 4 09:01:14 2017 -0700 ---------------------------------------------------------------------- sdks/java/io/hbase/pom.xml | 10 ++++++++ .../src/test/resources/log4j-test.properties | 27 ++++++++++++++++++++ 2 files changed, 37 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/beam/blob/2b939638/sdks/java/io/hbase/pom.xml ---------------------------------------------------------------------- diff --git a/sdks/java/io/hbase/pom.xml b/sdks/java/io/hbase/pom.xml index 7b5fc6b..612742b 100644 --- a/sdks/java/io/hbase/pom.xml +++ b/sdks/java/io/hbase/pom.xml @@ -40,6 +40,16 @@ <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <parallel>all</parallel> + <threadCount>4</threadCount> + <!-- Need to redefine log configuration because it gets lost on parallel tests --> + <argLine>-Dlog4j.configuration=log4j-test.properties -XX:-UseGCOverheadLimit ${beamSurefireArgline}</argLine> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <executions> <execution> http://git-wip-us.apache.org/repos/asf/beam/blob/2b939638/sdks/java/io/hbase/src/test/resources/log4j-test.properties ---------------------------------------------------------------------- diff --git a/sdks/java/io/hbase/src/test/resources/log4j-test.properties b/sdks/java/io/hbase/src/test/resources/log4j-test.properties new file mode 100644 index 0000000..4c74d85 --- /dev/null +++ b/sdks/java/io/hbase/src/test/resources/log4j-test.properties @@ -0,0 +1,27 @@ +################################################################################ +# 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 +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +################################################################################ + +# Set root logger level to OFF to not flood build logs +# set manually to INFO for debugging purposes +log4j.rootLogger=OFF, testlogger + +# A1 is set to be a ConsoleAppender. +log4j.appender.testlogger=org.apache.log4j.ConsoleAppender +log4j.appender.testlogger.target = System.err +log4j.appender.testlogger.layout=org.apache.log4j.PatternLayout +log4j.appender.testlogger.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
