Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

APEXMALHAR-2120 #resolve #comment solve problems of KafkaInputOperato… #321

Merged
merged 1 commit into from
Jun 24, 2016

Conversation

brightchen
Copy link
Contributor

…rTest and AbstractKafkaInputOperator

@Before
public void before()
{
FileUtils.deleteQuietly(new File(APPLICATION_PATH));
tupleCollection.clear();
//FileUtils.deleteQuietly(new File(APPLICATION_PATH));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this commented out?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The different test case/test Scenario use difference directory. So it is not necessary to delete the directory

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests should always delete in case it was leftover from previous run.

@brightchen
Copy link
Contributor Author

@siyuanh The NullPointerException issue should be fixed, I've tested more than 10 times. Please review and merger


t.join();

logger.info("Number of received/expected tuples: {}/{}, testName: {}, tuples: \n{}", tupleCollection.size(), expectedReceiveCount, testName, tupleCollection);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Log this only when something goes wrong

@brightchen
Copy link
Contributor Author

@siyuanh Please review and merge

@asfgit asfgit merged commit f2b7a85 into apache:master Jun 24, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants