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

raft.raftLayer already closed in raft.NetworkTransport.Close() #4715

Merged
merged 1 commit into from
Nov 9, 2015

Conversation

oiooj
Copy link
Contributor

@oiooj oiooj commented Nov 9, 2015

Fix functionality panics: close of closed channel

fix #4707

https://github.com/hashicorp/raft/blob/master/net_transport.go#L174

  • CHANGELOG.md updated
  • Rebased/mergable
  • Tests pass
  • Sign CLA

@otoolep
Copy link
Contributor

otoolep commented Nov 9, 2015

This makes sense to me, looking at the hashicorp code and ours.

@corylanou @benbjohnson @jwilder

@@ -209,11 +209,6 @@ func (r *localRaft) close() error {
r.transport = nil
}

if r.raftLayer != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a comment to the block above, stating that that Close() will close the raftLayer()?

@otoolep
Copy link
Contributor

otoolep commented Nov 9, 2015

Thanks @oiooj

@otoolep
Copy link
Contributor

otoolep commented Nov 9, 2015

CLA has been signed.

@corylanou
Copy link
Contributor

+1

@jwilder
Copy link
Contributor

jwilder commented Nov 9, 2015

LGTM. 👍

otoolep added a commit that referenced this pull request Nov 9, 2015
raft.raftLayer already closed in raft.NetworkTransport.Close()
@otoolep otoolep merged commit 21ddb07 into influxdata:master Nov 9, 2015
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.

Restore functionality panics: close of closed channel (0.9.5-nightly)
4 participants