Summary: | timeout 15 when rsyncing initial timestamp.chk is too low in some cases | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Petr Behan <petr.behan> |
Component: | Core - Interface (emerge) | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | Keywords: | InVCS |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=730262 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 181949 | ||
Attachments: |
temporary fix, patch against portage-2.1.2.7, apply in /usr/lib/portage/bin
add a PORTAGE_RSYNC_INITIAL_TIMEOUT config variable add a PORTAGE_RSYNC_INITIAL_TIMEOUT config variable |
Description
Petr Behan
2007-05-27 14:02:44 UTC
Created attachment 120445 [details, diff]
temporary fix, patch against portage-2.1.2.7, apply in /usr/lib/portage/bin
If you set PORTAGE_RSYNC_RETRIES to a higher number, then it will keep retrying. Is that good enough? It seems like you have an abnormal setup there. OK, I didn't think of using PORTAGE_RSYNC_RETRIES before. It fixes the issue, but in my opinion it is still in category "workarounds" (same as my patch). It would spam about 8 retries on my setup, create 8 server threads all waiting until the first one finishes and would change again when someone decides that 10 seconds should be enough for everyone. The setup IS ABNORMAL in a convenience + bandwidth saving way. I don't want to sync via cron - sometimes there are few weeks where nothing interesting happens and syncing would be waste, and syncing on server by hand requires login, remembering when was last sync... this setup was first that came to my mind and worked fine until the timer was implemented sometimes in last year (I didn't research it right when the problem started. I just blamed rsync for a while and did with the two-phase sync for some time). It's nothing major - two easy workarounds so far... Maybe I should have flagged it as enhancement suggestion instead of minor bug *changed* Created attachment 120484 [details, diff] add a PORTAGE_RSYNC_INITIAL_TIMEOUT config variable (In reply to comment #0) > timer used to handle unresponsive rsync and let it rely only on --timeout value > supplied in PORTAGE_RSYNC_EXTRA_OPTS. For bug 168646 I wrote a script that probes all of the rsync servers and from that I found that in some cases the rsync client will hang indefinitely on the initial connection attempt. It does this regardless of the --timeout option, which only seems to apply after the initial connection has been made. I'm not sure if the above should be considered a bug in rsync or not. If they really intend for the --timeout not to apply to the initial connection attempt, perhaps they should add an --initial-timeout option. Created attachment 120500 [details, diff]
add a PORTAGE_RSYNC_INITIAL_TIMEOUT config variable
This version is in svn r6651 and it allows PORTAGE_RSYNC_INITIAL_TIMEOUT=0 to disable the timeout.
(In reply to comment #5) Thanks for your time, that looks exactly as what I was hoping for and works for me. This has been released in 2.1.2.9. |