Skip to content

GEODE-4715 ReconnectDUnitTest calls static methods to obtain cache an…#1628

Closed
bschuchardt wants to merge 1 commit intodevelopfrom
feature/GEODE-4715
Closed

GEODE-4715 ReconnectDUnitTest calls static methods to obtain cache an…#1628
bschuchardt wants to merge 1 commit intodevelopfrom
feature/GEODE-4715

Conversation

@bschuchardt
Copy link
Copy Markdown
Contributor

…d distributed system

Removed fishing for cache/distributed system and replaced with use of
superclass "cache" and "distributedSystem" variables.

Thank you for submitting a contribution to Apache Geode.

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

For all changes:

  • Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?

  • Has your PR been rebased against the latest commit within the target branch (typically develop)?

  • Is your initial contribution a single, squashed commit?

  • Does gradlew build run cleanly?

  • Have you written or updated unit tests to verify your changes?

  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?

Note:

Please ensure that once the PR is submitted, you check travis-ci for build issues and
submit an update to your PR as soon as possible. If you need help, please send an
email to dev@geode.apache.org.

…d distributed system

Removed fishing for cache/distributed system and replaced with use of
superclass "cache" and "distributedSystem" variables.
Copy link
Copy Markdown
Contributor

@PivotalSarge PivotalSarge left a comment

Choose a reason for hiding this comment

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

LGTM


/** This VM's connection to the distributed system */
private static InternalDistributedSystem system;
protected static InternalDistributedSystem system;
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.

I don't see the code actually using this field?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It's on line 345 of the test

Copy link
Copy Markdown
Contributor

@galen-pivotal galen-pivotal left a comment

Choose a reason for hiding this comment

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

LGTM

return (DistributedMember) vm.invoke(new SerializableCallable("get ID") {
public Object call() {
ReconnectDUnitTest.savedSystem = InternalDistributedSystem.getAnyInstance();
ReconnectDUnitTest.savedSystem = cache.getDistributedSystem(); // InternalDistributedSystem.getAnyInstance();
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Remove comment.

@bschuchardt bschuchardt deleted the feature/GEODE-4715 branch March 26, 2018 18:17
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.

5 participants