[
https://issues.apache.org/jira/browse/SQOOP-1770?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14221679#comment-14221679
]
Jarek Jarcec Cecho commented on SQOOP-1770:
-------------------------------------------
Why do you think that the method {{startHadoop}} is executed twice
[~richard_zhou]?
I've started looking into the integration tests and it seems to me that the
method is executed only once for children of {{ConnectorTestCase}} class (such
as {{PartitionerTest}}, {{FromHDFSToRDBMSTest}} or {{FromRDBMSToHDFSTest}}).
Both the {{startHadoop}} method have a convenient log message {{LOG.debug("HDFS
Client: " + hdfsClient);}} that I see in the logs only once and I would expect
that it would be there twice if the method would be indeed called twice:
{code}
18542 [main] DEBUG org.apache.sqoop.test.testcases.ConnectorTestCase - HDFS
Client: DFS[DFSClient[clientName=DFSClient_NONMAPREDUCE_-1118486352_1,
ugi=jarcec (auth:SIMPLE)]]
{code}
> Ducplicate startHadoop function in integration test
> ---------------------------------------------------
>
> Key: SQOOP-1770
> URL: https://issues.apache.org/jira/browse/SQOOP-1770
> Project: Sqoop
> Issue Type: Bug
> Components: sqoop2-test
> Reporter: Richard
> Assignee: Richard
> Attachments: diff.patch
>
>
> Duplicate startHadoop function in ConnectorTestCase and TomcatTestCase.
> As ConnectorTestCase extends TomcatTestCase, the startHadoop function will
> run twice.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)