[ https://issues.apache.org/jira/browse/HIVE-18372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16318295#comment-16318295 ]
Peter Vary commented on HIVE-18372: ----------------------------------- Hi [~alangates], These are the main goals as you identified correctly: - We would like to have an easy way to run HMS API tests against different configurations. - We would like to to split the tests cases to multiple smaller files instead of a single huge one. - We would like to run the same tests against a cluster which runs a different version of HMS (for example to test backward compatibility) - this is ClusterMetaStore. If you have a better name for it I would be happy to hear :) This first patch only runs the tests against 2 configurations as a proof of concept. Later we can use all 5 configurations which are used to run the tests defined in {{TestHiveMetaStore}} - these could be different RemoteMetaStore objects which are parametrized in the MetaStoreFactory. Also there are currently other tests which are using the same pattern like {{TestMarkPartition}} which can be migrated too if we decide to do so. As for parallel I do not think there should be any problem to run the test suites parallel: - http://maven.apache.org/surefire/maven-surefire-plugin/examples/fork-options-and-parallel-execution.html {quote} As a prerequisite in JUnit tests, the JUnit runner should extend org.junit.runners.ParentRunner {quote} And {{Parameterized}} extends {{Suite}} extends {{ParentRunner<Runner>}} {quote} Note: As designed by JUnit runners, the static methods annotated with e.g. @Parameters, @BeforeClass and @AfterClass are called in parent thread. {quote} This sentence explicitly mentions {{@Parameters}} - Do we plan to run the test methods parallel? For that we need to redesign how we use the test databases. > Create testing infra to test different HMS instances > ---------------------------------------------------- > > Key: HIVE-18372 > URL: https://issues.apache.org/jira/browse/HIVE-18372 > Project: Hive > Issue Type: Sub-task > Reporter: Peter Vary > Assignee: Peter Vary > Attachments: HIVE-18372.patch > > > Since there will be multiple tests, it would be good to have a good > infrastructure to help creating those faster, easier. > This patch will also include the test cases for the Database related methods > to showcase the infra -- This message was sent by Atlassian JIRA (v6.4.14#64029)