Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GEODE-8778: Change conserve-sockets default value to false #5832

Merged
merged 3 commits into from
Dec 14, 2020

Conversation

DonalEvans
Copy link
Contributor

  • Update certain tests to explicitly set conserve-sockets=true to allow
    them to pass with the new default
  • Update docs to reflect new default

Authored-by: Donal Evans doevans@vmware.com

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?

  • [N/A] 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.

- Update certain tests to explicitly set conserve-sockets=true to allow
them to pass
- Update docs to reflect new default

Authored-by: Donal Evans <doevans@vmware.com>
Copy link
Contributor

@jake-at-work jake-at-work left a comment

Choose a reason for hiding this comment

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

Why are the two tests modified in this PR setting the the value against the new default? If the default is false now it stands to reason that unless a tests is explicitly testing socket conservation that it should use the new default of false.

Authored-by: Donal Evans <doevans@vmware.com>
@DonalEvans
Copy link
Contributor Author

Why are the two tests modified in this PR setting the the value against the new default? If the default is false now it stands to reason that unless a tests is explicitly testing socket conservation that it should use the new default of false.

Thanks for bringing this up, Jake. After looking closer at the first test, ClusterDistributionManagerDUnitTest, it doesn't need to explicitly set conserve-sockets to true, just add an additional ignored exception due to a slightly different code path resulting in (expected) logging about ack-severe-alert-threshold being exceeded. I've modified the test to reflect this.

The second test, CloseConnectionTest is explicitly testing the behaviour of shared connections, so it requires that conserve-sockets=true. I think it was just an oversight to not set the value and instead rely on the default.

Copy link
Contributor

@jake-at-work jake-at-work left a comment

Choose a reason for hiding this comment

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

Reviewed for content and looks good. Would like to see a comment about the 1 test that is explicitly setting conserve sockets true. I have not review for correctness or test failures.

Copy link
Contributor

@davebarnes97 davebarnes97 left a comment

Choose a reason for hiding this comment

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

+1 for all the doc changes (mods to .erb source files).

Authored-by: Donal Evans <doevans@vmware.com>
@DonalEvans DonalEvans merged commit ee835e3 into apache:develop Dec 14, 2020
@DonalEvans DonalEvans deleted the feature/GEODE-8778 branch December 14, 2020 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants