Skip to content

Conversation

@Bill
Copy link
Contributor

@Bill Bill commented Sep 6, 2019

GEODE-7167

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, check Concourse 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.

@Bill Bill marked this pull request as ready for review September 6, 2019 22:01
Copy link
Contributor

@dschneider-pivotal dschneider-pivotal left a comment

Choose a reason for hiding this comment

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

This looks good. The only suggestion I have is you might want to try to improve the coverage of you unit test. I saw the parse code looking for '@' but I didn't see that covered and some of the other error conditions (like port being 0) didn't look covered. Try running your new unit test in your IDE with coverage and see how well the new code is covered. To get some of it covered you might need to use a spy and extract some of the code (like new InetSocketAddress) into a method that you can then mock to return a mocked InetSocketAddress that will say it is not loopback (so that you can generate the error about attempting to join...). It looks to me like you have already improved the unit test coverage of this code.
Did one of your new tests fail with an NPE before your fixes?

@Bill
Copy link
Contributor Author

Bill commented Sep 6, 2019

Yes @dschneider-pivotal, before the product fix, unresolveableAddress() failed since an NPE was thrown.

I did consider adding tests for parsing of the "host" part and opted not too. Your comment has made me reconsider…

@lgtm-com
Copy link

lgtm-com bot commented Sep 10, 2019

This pull request introduces 1 alert when merging 8fed26e into 5f70160 - view on LGTM.com

new alerts:

  • 1 for Useless comparison test

@Bill Bill force-pushed the feature/GEODE-7167 branch 3 times, most recently from 4309346 to 78f186d Compare September 13, 2019 20:46
@onichols-pivotal
Copy link
Contributor

will this fix GEODE-6153 as well?

@Bill
Copy link
Contributor Author

Bill commented Sep 25, 2019

Yes @onichols-pivotal. Those are dupe tickets.

@mhansonp
Copy link
Contributor

@Bill Should I merge this?

@Bill Bill force-pushed the feature/GEODE-7167 branch from 78f186d to 4b69379 Compare October 16, 2019 00:31
@Bill Bill merged commit f30f936 into apache:develop Oct 17, 2019
@Bill Bill deleted the feature/GEODE-7167 branch October 17, 2019 18:00
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.

4 participants