HBASE-14728 TestRowCounter is broken in master (Abhishek Singh Chouhan)
This commit is contained in:
parent
9c37239f58
commit
47659200ac
|
@ -42,10 +42,6 @@
|
||||||
@rem @rem See TestIPv6NIOServerSocketChannel.
|
@rem @rem See TestIPv6NIOServerSocketChannel.
|
||||||
set HBASE_OPTS="-XX:+UseConcMarkSweepGC" "-Djava.net.preferIPv4Stack=true"
|
set HBASE_OPTS="-XX:+UseConcMarkSweepGC" "-Djava.net.preferIPv4Stack=true"
|
||||||
|
|
||||||
@rem Configure PermSize. Only needed in JDK7. You can safely remove it for JDK8+
|
|
||||||
set HBASE_MASTER_OPTS=%HBASE_MASTER_OPTS% "-XX:PermSize=128m" "-XX:MaxPermSize=128m"
|
|
||||||
set HBASE_REGIONSERVER_OPTS=%HBASE_REGIONSERVER_OPTS% "-XX:PermSize=128m" "-XX:MaxPermSize=128m"
|
|
||||||
|
|
||||||
@rem Uncomment below to enable java garbage collection logging for the server-side processes
|
@rem Uncomment below to enable java garbage collection logging for the server-side processes
|
||||||
@rem this enables basic gc logging for the server processes to the .out file
|
@rem this enables basic gc logging for the server processes to the .out file
|
||||||
@rem set SERVER_GC_OPTS="-verbose:gc" "-XX:+PrintGCDetails" "-XX:+PrintGCDateStamps" %HBASE_GC_OPTS%
|
@rem set SERVER_GC_OPTS="-verbose:gc" "-XX:+PrintGCDetails" "-XX:+PrintGCDateStamps" %HBASE_GC_OPTS%
|
||||||
|
|
|
@ -42,10 +42,6 @@
|
||||||
# see http://wiki.apache.org/hadoop/PerformanceTuning
|
# see http://wiki.apache.org/hadoop/PerformanceTuning
|
||||||
export HBASE_OPTS="-XX:+UseConcMarkSweepGC"
|
export HBASE_OPTS="-XX:+UseConcMarkSweepGC"
|
||||||
|
|
||||||
# Configure PermSize. Only needed in JDK7. You can safely remove it for JDK8+
|
|
||||||
export HBASE_MASTER_OPTS="$HBASE_MASTER_OPTS -XX:PermSize=128m -XX:MaxPermSize=128m"
|
|
||||||
export HBASE_REGIONSERVER_OPTS="$HBASE_REGIONSERVER_OPTS -XX:PermSize=128m -XX:MaxPermSize=128m"
|
|
||||||
|
|
||||||
# Uncomment one of the below three options to enable java garbage collection logging for the server-side processes.
|
# Uncomment one of the below three options to enable java garbage collection logging for the server-side processes.
|
||||||
|
|
||||||
# This enables basic gc logging to the .out file.
|
# This enables basic gc logging to the .out file.
|
||||||
|
|
|
@ -30,7 +30,7 @@ export CLOVER_HOME=/home/jenkins/tools/clover/latest
|
||||||
export MAVEN_HOME=/home/jenkins/tools/maven/latest
|
export MAVEN_HOME=/home/jenkins/tools/maven/latest
|
||||||
|
|
||||||
export PATH=$PATH:$JAVA_HOME/bin:$ANT_HOME/bin:
|
export PATH=$PATH:$JAVA_HOME/bin:$ANT_HOME/bin:
|
||||||
export MAVEN_OPTS="${MAVEN_OPTS:-"-Xmx3100M -XX:-UsePerfData -XX:MaxPermSize=256m"}"
|
export MAVEN_OPTS="${MAVEN_OPTS:-"-Xmx3100M -XX:-UsePerfData"}"
|
||||||
|
|
||||||
ulimit -n
|
ulimit -n
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,7 @@ if [ -z "$SVN_DIR" ]; then
|
||||||
SVN_DIR="$HOME/svn/hbase.apache.org/trunk"
|
SVN_DIR="$HOME/svn/hbase.apache.org/trunk"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export MAVEN_OPTS=${MAVEN_OPTS:-"-Xmx3g -XX:MaxPermSize=256m"}
|
export MAVEN_OPTS=${MAVEN_OPTS:-"-Xmx3g"}
|
||||||
|
|
||||||
cd $GIT_DIR
|
cd $GIT_DIR
|
||||||
|
|
||||||
|
@ -257,4 +257,4 @@ else
|
||||||
echo "Commit message:"
|
echo "Commit message:"
|
||||||
cat /tmp/commit.txt
|
cat /tmp/commit.txt
|
||||||
svn commit -q -F /tmp/commit.txt
|
svn commit -q -F /tmp/commit.txt
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -38,6 +38,8 @@ import org.apache.hadoop.hbase.client.Put;
|
||||||
import org.apache.hadoop.hbase.client.Table;
|
import org.apache.hadoop.hbase.client.Table;
|
||||||
import org.apache.hadoop.hbase.util.Bytes;
|
import org.apache.hadoop.hbase.util.Bytes;
|
||||||
import org.apache.hadoop.hbase.util.LauncherSecurityManager;
|
import org.apache.hadoop.hbase.util.LauncherSecurityManager;
|
||||||
|
import org.apache.hadoop.mapreduce.Counter;
|
||||||
|
import org.apache.hadoop.mapreduce.Job;
|
||||||
import org.apache.hadoop.util.ToolRunner;
|
import org.apache.hadoop.util.ToolRunner;
|
||||||
import org.junit.AfterClass;
|
import org.junit.AfterClass;
|
||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
|
@ -203,9 +205,11 @@ public class TestRowCounter {
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
private void runRowCount(String[] args, int expectedCount) throws Exception {
|
private void runRowCount(String[] args, int expectedCount) throws Exception {
|
||||||
final RowCounter counter = new RowCounter();
|
Job job = RowCounter.createSubmittableJob(TEST_UTIL.getConfiguration(), args);
|
||||||
assertEquals("job failed either due to failure or miscount (see log output).", 0,
|
job.waitForCompletion(true);
|
||||||
ToolRunner.run(TEST_UTIL.getConfiguration(), counter, args));
|
assertTrue(job.isSuccessful());
|
||||||
|
Counter counter = job.getCounters().findCounter(RowCounter.RowCounterMapper.Counters.ROWS);
|
||||||
|
assertEquals(expectedCount, counter.getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -587,7 +587,7 @@
|
||||||
<configuration>
|
<configuration>
|
||||||
<tagsToExclude>Integration-Test</tagsToExclude>
|
<tagsToExclude>Integration-Test</tagsToExclude>
|
||||||
<argLine>
|
<argLine>
|
||||||
-Xmx1536m -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=512m
|
-Xmx1536m -XX:ReservedCodeCacheSize=512m
|
||||||
</argLine>
|
</argLine>
|
||||||
<parallel>false</parallel>
|
<parallel>false</parallel>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
6
pom.xml
6
pom.xml
|
@ -1250,10 +1250,10 @@
|
||||||
<!--Mark our test runs with '-Dhbase.test' so we can identify a surefire test as ours in a process listing
|
<!--Mark our test runs with '-Dhbase.test' so we can identify a surefire test as ours in a process listing
|
||||||
-->
|
-->
|
||||||
<hbase-surefire.argLine>-enableassertions -Dhbase.test -Xmx${surefire.Xmx}
|
<hbase-surefire.argLine>-enableassertions -Dhbase.test -Xmx${surefire.Xmx}
|
||||||
-XX:MaxPermSize=256m -Djava.security.egd=file:/dev/./urandom -Djava.net.preferIPv4Stack=true
|
-Djava.security.egd=file:/dev/./urandom -Djava.net.preferIPv4Stack=true
|
||||||
-Djava.awt.headless=true
|
-Djava.awt.headless=true
|
||||||
</hbase-surefire.argLine>
|
</hbase-surefire.argLine>
|
||||||
<hbase-surefire.cygwin-argLine>-enableassertions -Xmx${surefire.cygwinXmx} -XX:MaxPermSize=256m
|
<hbase-surefire.cygwin-argLine>-enableassertions -Xmx${surefire.cygwinXmx}
|
||||||
-Djava.security.egd=file:/dev/./urandom -Djava.net.preferIPv4Stack=true
|
-Djava.security.egd=file:/dev/./urandom -Djava.net.preferIPv4Stack=true
|
||||||
"-Djava.library.path=${hadoop.library.path};${java.library.path}"
|
"-Djava.library.path=${hadoop.library.path};${java.library.path}"
|
||||||
</hbase-surefire.cygwin-argLine>
|
</hbase-surefire.cygwin-argLine>
|
||||||
|
@ -2650,7 +2650,7 @@
|
||||||
or you can provide the license with -Dmaven.clover.licenseLocation=/path/to/license. Committers can find
|
or you can provide the license with -Dmaven.clover.licenseLocation=/path/to/license. Committers can find
|
||||||
the license under https://svn.apache.org/repos/private/committers/donated-licenses/clover/
|
the license under https://svn.apache.org/repos/private/committers/donated-licenses/clover/
|
||||||
The report will be generated under target/site/clover/index.html when you run
|
The report will be generated under target/site/clover/index.html when you run
|
||||||
MAVEN_OPTS="-Xmx2048m -XX:MaxPermSize=512m" mvn clean package -Pclover site -->
|
MAVEN_OPTS="-Xmx2048m" mvn clean package -Pclover site -->
|
||||||
<profile>
|
<profile>
|
||||||
<id>clover</id>
|
<id>clover</id>
|
||||||
<activation>
|
<activation>
|
||||||
|
|
Loading…
Reference in New Issue