Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

add gossip Closer #1483

Merged
merged 4 commits into from
Jul 10, 2018
Merged

Conversation

travisturner
Copy link
Member

Overview

This PR attempts to Leave()/Shutdown the memberlist gossip on server.Close().
This frees up the two file handles held by memberlist networking.

Fixes #1479

Pull request checklist

Code review checklist

This is the checklist that the reviewer will follow while reviewing your pull request. You do not need to do anything with this checklist, but be aware of what the reviewer will be looking for.

  • Ensure that any changes to external docs have been included in this pull request.
  • If the changes require that minor/major versions need to be updated, tag the PR appropriately.
  • Ensure the new code is properly commented and follows Idiomatic Go.
  • Check that tests have been written and that they cover the new functionality.
  • Run tests and ensure they pass.
  • Build and run the code, performing any applicable integration testing.

alanbernstein
alanbernstein previously approved these changes Jul 10, 2018
Copy link
Contributor

@alanbernstein alanbernstein left a comment

Choose a reason for hiding this comment

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

This seems to resolve both of the issues I noticed in #1473

gossip/gossip.go Outdated
@@ -93,6 +93,17 @@ func (g *memberSet) Open() (err error) {
return nil
}

// Close attempts to gracefully leaves the cluster, and finally calls shutdown
Copy link
Member

Choose a reason for hiding this comment

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

gracefully leave*

jaffee
jaffee previously approved these changes Jul 10, 2018
@travisturner travisturner dismissed stale reviews from jaffee and alanbernstein via d24fb4e July 10, 2018 18:32
@travisturner travisturner merged commit 08fe3db into FeatureBaseDB:master Jul 10, 2018
@travisturner travisturner deleted the close-gossip branch July 10, 2018 18:41
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.

Shutdown gossip on pilosa.server.Close()
3 participants