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

testCluster: Add etcd integration tests #118

Merged
merged 2 commits into from
Aug 13, 2024

Conversation

ohkinozomu
Copy link
Contributor

In peer.go, there was an issue where stopC should close when proposeC and confChangeC are closed, but proposeC and confChangeC were not being closed.
I have fixed this.

Copy link
Owner

@wind-c wind-c left a comment

Choose a reason for hiding this comment

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

Why delete p.Stop?

@ohkinozomu
Copy link
Contributor Author

ohkinozomu commented Aug 12, 2024

If we don't remove p.Stop, because p.Stop is called twice, panic: close of closed channel will occur.

The entry point for the stop process is p.Stop, where p.proposeC and p.confChangeC are closed, which in turn closes p.stopC.
p.Stop should not be called there.

I think this wasn't an issue before because p.stopC was not being closed.

@wind-c wind-c merged commit 060d706 into wind-c:main Aug 13, 2024
1 check passed
@wind-c
Copy link
Owner

wind-c commented Aug 13, 2024

I am not sure about the result after deletion, let me comment first.

@ohkinozomu ohkinozomu deleted the testcluster-etcd-tests branch August 13, 2024 04:32
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.

2 participants