Skip to content

MINOR: Fix setting of ACLs and ZK shutdown in test harnesses#1455

Closed
ijuma wants to merge 2 commits intoapache:trunkfrom
ijuma:fix-integration-test-harness-and-zk-test-harness
Closed

MINOR: Fix setting of ACLs and ZK shutdown in test harnesses#1455
ijuma wants to merge 2 commits intoapache:trunkfrom
ijuma:fix-integration-test-harness-and-zk-test-harness

Conversation

@ijuma
Copy link
Copy Markdown
Member

@ijuma ijuma commented Jun 1, 2016

I found both issues while investigating the issue described in PR #1425.

@ijuma
Copy link
Copy Markdown
Member Author

ijuma commented Jun 1, 2016

Review by @gwenshap or @junrao.

@harshach
Copy link
Copy Markdown

harshach commented Jun 1, 2016

+1

@ijuma ijuma force-pushed the fix-integration-test-harness-and-zk-test-harness branch from 1bb58c1 to 961b7f1 Compare June 1, 2016 23:22
@ijuma ijuma force-pushed the fix-integration-test-harness-and-zk-test-harness branch from 961b7f1 to 5dec704 Compare June 1, 2016 23:24
CoreUtils.swallow(zookeeper.shutdown())
CoreUtils.swallow(factory.shutdown())

def isDown(): Boolean = {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There are a few tests that only extend ZooKeeperTestHarness. Do we need to ensure that ZK is down when shutting down ZooKeeperTestHarness?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

ZooKeeperTestHarness.tearDown calls this method:

if (zookeeper != null)
        CoreUtils.swallow(zookeeper.shutdown())

Isn't that good enough?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes, you are right. The code looks good then.

@junrao
Copy link
Copy Markdown
Contributor

junrao commented Jun 2, 2016

Thanks for the patch. LGTM. Just left a minor comment.

asfgit pushed a commit that referenced this pull request Jun 3, 2016
I found both issues while investigating the issue described in PR #1425.

Author: Ismael Juma <ismael@juma.me.uk>

Reviewers: Sriharsha Chintalapani <schintalapani@hortonworks.com>, Jun Rao <junrao@gmail.com>

Closes #1455 from ijuma/fix-integration-test-harness-and-zk-test-harness

(cherry picked from commit 1029030)
Signed-off-by: Ismael Juma <ismael@juma.me.uk>
@asfgit asfgit closed this in 1029030 Jun 3, 2016
@ijuma
Copy link
Copy Markdown
Member Author

ijuma commented Jun 3, 2016

Thank you for the reviews, merged to trunk and 0.10.0 branches (KAFKA-3396 which would be good to backport requires these changes for the tests to work).

gfodor pushed a commit to AltspaceVR/kafka that referenced this pull request Jun 3, 2016
I found both issues while investigating the issue described in PR apache#1425.

Author: Ismael Juma <ismael@juma.me.uk>

Reviewers: Sriharsha Chintalapani <schintalapani@hortonworks.com>, Jun Rao <junrao@gmail.com>

Closes apache#1455 from ijuma/fix-integration-test-harness-and-zk-test-harness
granthenke pushed a commit to granthenke/kafka that referenced this pull request Oct 24, 2016
I found both issues while investigating the issue described in PR apache#1425.

Author: Ismael Juma <ismael@juma.me.uk>

Reviewers: Sriharsha Chintalapani <schintalapani@hortonworks.com>, Jun Rao <junrao@gmail.com>

Closes apache#1455 from ijuma/fix-integration-test-harness-and-zk-test-harness

(cherry picked from commit 1029030)
Signed-off-by: Ismael Juma <ismael@juma.me.uk>
@ijuma ijuma deleted the fix-integration-test-harness-and-zk-test-harness branch January 3, 2017 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants