Alexander Kolbasov created SENTRY-1596:
------------------------------------------

             Summary: Hive tests failing for sentry-ha-redesign branch
                 Key: SENTRY-1596
                 URL: https://issues.apache.org/jira/browse/SENTRY-1596
             Project: Sentry
          Issue Type: Bug
          Components: Sentry
    Affects Versions: sentry-ha-redesign
            Reporter: Alexander Kolbasov


I noticed that for recent branches of sentry-ha-redesign hive tests fail with

{code}
[INFO] Sentry Hive Tests ................................. FAILURE 
[1:05:44.751s]
[INFO] Sentry HDFS Dist .................................. SKIPPED
[INFO] Sentry Distribution ............................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:26:37.089s
[INFO] Finished at: Tue Jan 17 19:26:21 UTC 2017
[INFO] Final Memory: 73M/895M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on 
project sentry-tests-hive: There was a timeout or other error in the fork -> 
[Help 1]
{code}

So it isn't a specific test, but apparently tests taking too much time. There 
is a setting in top-level pom.xml file:

{code}
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <version>2.19.1</version>
            <configuration>
              <argLine>-Xms256m -Xmx2g -XX:MaxPermSize=256m</argLine>
              <environmentVariables>
                <HADOOP_CLIENT_OPTS>-Xmx1500m 
-Dhive.log.dir=./target/</HADOOP_CLIENT_OPTS>
              </environmentVariables>
              <forkCount>2.5C</forkCount>
              <forkedProcessTimeoutInSeconds>900</forkedProcessTimeoutInSeconds>
              <redirectTestOutputToFile>true</redirectTestOutputToFile>
              <rerunFailingTestsCount>3</rerunFailingTestsCount>
              <reuseForks>false</reuseForks>
              <systemPropertyVariables>
                <java.net.preferIPv4Stack>true</java.net.preferIPv4Stack>
              </systemPropertyVariables>
              <excludes combine.children="append">
                <exclude>%regex[org.apache.sentry.tests.e2e.*.class]</exclude>
                
<exclude>%regex[org.apache.sentry.binding.hive.TestURI.class]</exclude>
                
<exclude>%regex[org.apache.sentry.provider.db.service.thrift.*.class]</exclude>
                <exclude>%regex[org.apache.solr.handler.admin.*.class]</exclude>
                
<exclude>%regex[org.apache.sentry.provider.db.generic.service.thrift.*.class]</exclude>
                
<exclude>%regex[org.apache.sentry.provider.db.generic.tools.*.class]</exclude>
              </excludes>
            </configuration>
          </plugin>
{code}

So forkedProcessTimeoutInSeconds is set to 900 and tests take ~90 minutes to 
run which probably causes the problem. I don't know when the problem first 
appeared, but we can't have successfull test run for sentry-ha-redesign tests 
now.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to