Merge lp://staging/~rogpeppe/gozk/safe-close into lp://staging/gozk/zookeeper
Proposed by
Roger Peppe
Status: | Merged |
---|---|
Merged at revision: | 31 |
Proposed branch: | lp://staging/~rogpeppe/gozk/safe-close |
Merge into: | lp://staging/gozk/zookeeper |
Diff against target: |
523 lines (+301/-13) 5 files modified
close_test.go (+220/-0) retry_test.go (+3/-3) suite_test.go (+4/-3) zk.go (+68/-1) zk_test.go (+6/-6) |
To merge this branch: | bzr merge lp://staging/~rogpeppe/gozk/safe-close |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
The Go Language Gophers | Pending | ||
Review via email: mp+94812@code.staging.launchpad.net |
Description of the change
zookeeper: make Conn.Close safe to call concurrently with other operations.
I am concerned at how complex the test for this is,
relative to the simplicity of the actual code change.
(and it's also potentially fragile on a heavily loaded machine).
That said, I can't think of another way to test the
operations directly, so I'm leaving it in.
Better suggestions welcome.
To post a comment you must log in.
Reviewers: mp+94812_ code.launchpad. net,
Message:
Please take a look.
Description:
I am concerned at how complex the test for this is,
relative to the simplicity of the actual code change.
(and it's also potentially fragile on a heavily loaded machine).
That said, I can't think of another way to test the
operations directly, so I'm leaving it in.
Better suggestions welcome.
https:/ /code.launchpad .net/~rogpeppe/ gozk/safe- close/+ merge/94812
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/5699093/
Affected files:
A close_test.go
M retry_test.go
M suite_test.go
M zk.go
M zk_test.go