[
https://issues.apache.org/jira/browse/ATLAS-2546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16430729#comment-16430729
]
Péter Gergő Barna commented on ATLAS-2546:
------------------------------------------
ATLAS-2535-1.patch fixes the problem with
testCreateTableHiveProcessNameAttribute, (the query was invalid, because there
is a semicolon in it)
> Fix unstable Hive Hook IT tests
> -------------------------------
>
> Key: ATLAS-2546
> URL: https://issues.apache.org/jira/browse/ATLAS-2546
> Project: Atlas
> Issue Type: Bug
> Components: atlas-intg
> Affects Versions: 1.0.0-alpha
> Reporter: Péter Gergő Barna
> Assignee: Péter Gergő Barna
> Priority: Major
> Attachments: ATLAS-2535-1.patch
>
>
> Hive hook integration tests fail to initialize hive hook
>
> Example
> https://builds.apache.org/blue/rest/organizations/jenkins/pipelines/Atlas-master-IntegrationTests/runs/991/log/?start=0
>
> {noformat}
> 127.0.0.1 - - [09/Apr/2018:06:51:35 +0000] "GET
> //localhost:31000/api/atlas/v2/entity/guid/d643540d-dde8-4020-8cd9-2afb999b0afe
> HTTP/1.1" 200 2095 "-" "Java/1.8.0_152"
> Tests run: 46, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 482.819 sec
> <<< FAILURE! - in TestSuite
> testAlterTablePartitionColumnType(org.apache.atlas.hive.hook.HiveHookIT)
> Time elapsed: 80.657 sec <<< FAILURE!
> java.lang.AssertionError: Assertions failed. Failing after waiting for
> timeout 80000 msecs
> at
> org.apache.atlas.AtlasBaseClient.callAPIWithResource(AtlasBaseClient.java:388)
> at
> org.apache.atlas.AtlasBaseClient.callAPIWithResource(AtlasBaseClient.java:323)
> at org.apache.atlas.AtlasBaseClient.callAPI(AtlasBaseClient.java:228)
> at
> org.apache.atlas.AtlasClientV2.getEntityByAttribute(AtlasClientV2.java:264)
> at org.apache.atlas.hive.HiveITBase$1.evaluate(HiveITBase.java:209)
> at org.apache.atlas.hive.HiveITBase.waitFor(HiveITBase.java:266)
> at
> org.apache.atlas.hive.HiveITBase.assertEntityIsRegistered(HiveITBase.java:206)
> at
> org.apache.atlas.hive.hook.HiveHookIT.assertColumnIsRegistered(HiveHookIT.java:288)
> at
> org.apache.atlas.hive.hook.HiveHookIT.testAlterTablePartitionColumnType(HiveHookIT.java:1309)
> testAlterTableRename(org.apache.atlas.hive.hook.HiveHookIT) Time elapsed:
> 14.214 sec <<< FAILURE!
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.rangeCheck(ArrayList.java:657)
> at java.util.ArrayList.get(ArrayList.java:433)
> at
> org.apache.atlas.hive.hook.HiveHookIT.assertTrait(HiveHookIT.java:1018)
> at
> org.apache.atlas.hive.hook.HiveHookIT.testAlterTableRename(HiveHookIT.java:970)
> testCreateTableHiveProcessNameAttribute(org.apache.atlas.hive.bridge.HiveMetastoreBridgeIT)
> Time elapsed: 0.011 sec <<< FAILURE!
> java.lang.AssertionError: expected [0] but found [40000]
> at org.testng.Assert.fail(Assert.java:94)
> at org.testng.Assert.failNotEquals(Assert.java:496)
> at org.testng.Assert.assertEquals(Assert.java:125)
> at org.testng.Assert.assertEquals(Assert.java:372)
> at org.testng.Assert.assertEquals(Assert.java:382)
> at
> org.apache.atlas.hive.HiveITBase.runCommandWithDelay(HiveITBase.java:154)
> at
> org.apache.atlas.hive.HiveITBase.runCommandWithDelay(HiveITBase.java:147)
> at org.apache.atlas.hive.HiveITBase.runCommand(HiveITBase.java:139)
> at
> org.apache.atlas.hive.bridge.HiveMetastoreBridgeIT.testCreateTableHiveProcessNameAttribute(HiveMetastoreBridgeIT.java:105)
> Results :
> Failed tests:
>
> HiveMetastoreBridgeIT.testCreateTableHiveProcessNameAttribute:105->HiveITBase.runCommand:139->HiveITBase.runCommandWithDelay:147->HiveITBase.runCommandWithDelay:154
> expected [0] but found [40000]
>
> HiveHookIT.testAlterTablePartitionColumnType:1309->assertColumnIsRegistered:288->HiveITBase.assertEntityIsRegistered:206->HiveITBase.waitFor:270
> Assertions failed. Failing after waiting for timeout 80000 msecs
> HiveHookIT.testAlterTableRename:970->assertTrait:1018 » IndexOutOfBounds
> Index...
> Tests run: 46, Failures: 3, Errors: 0, Skipped: 0
> [INFO]
> [INFO] --- jetty-maven-plugin:9.3.14.v20161028:stop (stop-jetty) @
> hive-bridge ---
> [INFO] Waiting 10 seconds for jetty to stop
> [INFO] Stopped ServerConnector@7ac4e393{HTTP/1.1,[http/1.1]}{0.0.0.0:31000}
> [INFO] Closing Spring root WebApplicationContext
> [INFO] Shutting down log4j
> [INFO] Stopped
> o.e.j.m.p.JettyWebAppContext@67820486{/,file:///home/jenkins/jenkins-slave/workspace/Atlas-master-IntegrationTests/webapp/target/atlas-webapp-1.0.0-SNAPSHOT/,UNAVAILABLE}{/home/jenkins/jenkins-slave/workspace/Atlas-master-IntegrationTests/webapp/target/atlas-webapp-1.0.0-SNAPSHOT.war}
> [INFO] Server reports itself as stopped
> [INFO]
> [INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ hive-bridge
> ---
> [INFO] Building jar:
> /home/jenkins/jenkins-slave/workspace/Atlas-master-IntegrationTests/addons/hive-bridge/target/hive-bridge-1.0.0-SNAPSHOT-sources.jar
> [INFO]
> [INFO] --- maven-source-plugin:2.4:test-jar-no-fork (attach-sources) @
> hive-bridge ---
> [INFO] Building jar:
> /home/jenkins/jenkins-slave/workspace/Atlas-master-IntegrationTests/addons/hive-bridge/target/hive-bridge-1.0.0-SNAPSHOT-test-sources.jar
> [INFO]
> [INFO] --- maven-failsafe-plugin:2.18.1:verify (verify) @ hive-bridge ---
> [INFO] Failsafe report directory:
> /home/jenkins/jenkins-slave/workspace/Atlas-master-IntegrationTests/addons/hive-bridge/target/failsafe-reports
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Apache Atlas Server Build Tools .................... SUCCESS [ 0.554
> s]
> [INFO] apache-atlas ....................................... SUCCESS [ 3.461
> s]
> [INFO] Apache Atlas Test Utility Tools .................... SUCCESS [ 9.079
> s]
> [INFO] Open Connector Framework (OCF) ..................... SUCCESS [ 9.521
> s]
> [INFO] Open Metadata Repository Services (OMRS) ........... SUCCESS [ 27.106
> s]
> [INFO] Open Metadata and Governance (OMAG) Server APIs .... SUCCESS [ 6.642
> s]
> [INFO] Apache Atlas Integration ........................... SUCCESS [ 16.805
> s]
> [INFO] Apache Atlas Common ................................ SUCCESS [ 7.382
> s]
> [INFO] Apache Atlas Client ................................ SUCCESS [ 0.469
> s]
> [INFO] atlas-client-common ................................ SUCCESS [ 6.134
> s]
> [INFO] atlas-client-v1 .................................... SUCCESS [ 6.030
> s]
> [INFO] Apache Atlas Server API ............................ SUCCESS [ 5.028
> s]
> [INFO] Apache Atlas Notification .......................... SUCCESS [ 7.925
> s]
> [INFO] atlas-client-v2 .................................... SUCCESS [ 5.368
> s]
> [INFO] Apache Atlas Graph Database Projects ............... SUCCESS [ 0.382
> s]
> [INFO] Apache Atlas Graph Database API .................... SUCCESS [ 4.684
> s]
> [INFO] Graph Database Common Code ......................... SUCCESS [ 4.646
> s]
> [INFO] Apache Atlas JanusGraph DB Impl .................... SUCCESS [ 12.590
> s]
> [INFO] Apache Atlas Graph Database Implementation Dependencies SUCCESS [
> 2.340 s]
> [INFO] Shaded version of Apache hbase client .............. SUCCESS [ 7.393
> s]
> [INFO] Apache Atlas Titan 0.5.4 Graph DB Impl ............. SUCCESS [ 35.954
> s]
> [INFO] Shaded version of Apache hbase server .............. SUCCESS [ 19.671
> s]
> [INFO] Apache Atlas Authorization ......................... SUCCESS [ 6.114
> s]
> [INFO] Apache Atlas Repository ............................ SUCCESS [ 27.243
> s]
> [INFO] Apache Atlas UI .................................... SUCCESS [01:07
> min]
> [INFO] Apache Atlas Web Application ....................... SUCCESS [04:18
> min]
> [INFO] Apache Atlas Documentation ......................... SUCCESS [ 2.968
> s]
> [INFO] Apache Atlas FileSystem Model ...................... SUCCESS [ 2.476
> s]
> [INFO] Apache Atlas Plugin Classloader .................... SUCCESS [ 5.783
> s]
> [INFO] Apache Atlas Hive Bridge Shim ...................... SUCCESS [ 4.345
> s]
> [INFO] Apache Atlas Hive Bridge ........................... FAILURE [08:53
> min]
> [INFO] Apache Atlas Falcon Bridge Shim .................... SKIPPED
> [INFO] Apache Atlas Falcon Bridge ......................... SKIPPED
> [INFO] Apache Atlas Sqoop Bridge Shim ..................... SKIPPED
> [INFO] Apache Atlas Sqoop Bridge .......................... SKIPPED
> [INFO] Apache Atlas Storm Bridge Shim ..................... SKIPPED
> [INFO] Apache Atlas Storm Bridge .......................... SKIPPED
> [INFO] Apache Atlas Hbase Bridge Shim ..................... SKIPPED
> [INFO] Apache Atlas Hbase Bridge .......................... SKIPPED
> [INFO] Apache Atlas Migration Exporter .................... SKIPPED
> [INFO] Apache Atlas Distribution .......................... SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------{noformat}
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)