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

fix TestCluster_OpenRaft is timeout #4855

Merged
merged 1 commit into from
Nov 23, 2015
Merged

Conversation

mei-rune
Copy link
Contributor

fix #4853
This bug is produce by tcp buffer, must flush tcp stream after the copy L53, but Flush is not exists in the net.TcpConn struct.

@mei-rune mei-rune changed the title fix TestCluster_OpenRaft is timeout #4853 fix TestCluster_OpenRaft is timeout Nov 20, 2015
@benbjohnson
Copy link
Contributor

@runner-mei Why not use TCPConn.Close() instead?

@mei-rune
Copy link
Contributor Author

TCPConn.Close() is better, but it will result in repeated calls to close, so errors buffer size must is 2.

@otoolep
Copy link
Contributor

otoolep commented Nov 21, 2015

Thanks @runner-mei -- would you mind squashing the commits?

@otoolep
Copy link
Contributor

otoolep commented Nov 21, 2015

Seems reasonable, +1 from me once squashed.

@benbjohnson ?

This bug is produce by tcp buffer, must flush tcp stream after the copy L53, but Flush is not exists in the net.TcpConn struct.
@benbjohnson
Copy link
Contributor

👍

@otoolep
Copy link
Contributor

otoolep commented Nov 23, 2015

Thanks @runner-mei -- hoping this clears up a bunch of testing failures.

otoolep added a commit that referenced this pull request Nov 23, 2015
fix TestCluster_OpenRaft is timeout
@otoolep otoolep merged commit 4239286 into influxdata:master Nov 23, 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.

TestCluster_OpenRaft is timeout
3 participants