Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

Raft HTTP: fix pause/resume race condition #4

Merged
merged 1 commit into from
Jun 17, 2019

Conversation

yznima
Copy link

@yznima yznima commented Jun 17, 2019

@yznima
Copy link
Author

yznima commented Jun 17, 2019

@appian/squad-datalayer Can I get 2 reviews? The original PR is on etcd-io#10826

Copy link

@jkessler93 jkessler93 left a comment

Choose a reason for hiding this comment

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

LGTM! Surprised ETCD doesn't run tests with the --race flag...

@@ -372,12 +372,16 @@ type Pausable interface {
}

func (t *Transport) Pause() {
t.mu.RLock()
defer t.mu.RUnlock()

Choose a reason for hiding this comment

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

Do we need to add locking and unlocking to Start() as well?

@jkessler93 jkessler93 merged commit c3c13d6 into appian:release-3.3 Jun 17, 2019
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.

3 participants