Merge lp:~daniel-thewatkins/charms/trusty/ubuntu-repository-cache/add-rsync-timeout into lp:charms/trusty/ubuntu-repository-cache
| Status: | Merged |
|---|---|
| Merge reported by: | Adam Israel |
| Merged at revision: | not available |
| Proposed branch: | lp:~daniel-thewatkins/charms/trusty/ubuntu-repository-cache/add-rsync-timeout |
| Merge into: | lp:charms/trusty/ubuntu-repository-cache |
| Diff against target: |
107 lines (+38/-15) 2 files modified
hooks/hooks.py (+3/-2) lib/ubuntu_repository_cache/mirror.py (+35/-13) |
| To merge this branch: | bzr merge lp:~daniel-thewatkins/charms/trusty/ubuntu-repository-cache/add-rsync-timeout |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Robert C Jennings (community) | 2015-06-08 | Approve on 2015-07-09 | |
| Adam Israel | 2015-06-08 | Approve on 2015-06-25 | |
|
Review via email:
|
|||
Description of the Change
This does a couple of rsync-related things: it adds a 120 second timeout (which should deal with the hangs seen in the attached) bug, and also firms up the logic for syncing to peers to avoid telling a failed peer it was successful.
Specifically, we have three phases to the peer update:
(1) transfer the mirror payload to all peers,
(2) transfer a file to each peer that tells them that they have a good version of the files, and then
(3) change a relationship variable, to trigger the actual switch.
This ensures that if a transfer in (1) fails, then that peer won't be included in the transfer for (2).
| Robert C Jennings (rcj) wrote : | # |
Reviewed and the changes look clean. I have not had a chance to test independently.

Hi Dan,
I had a chance to review this MP. The changes here look good, and you have a +1 from me on that, with the caveat that it's dependent on lp:262072 and lp:261356 being merged.