https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6083

           Summary: sa-update should periodically validate MIRRORED.BY files
           Product: Spamassassin
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: sa-update
        AssignedTo: [email protected]
        ReportedBy: [email protected]


I was noticing that after the initial update installation, sa-update will not
try to update MIRRORED.BY files unless there is an update to download.  This
means that channels w/ infrequent updates will have clients using potentially
outdated/changed MIRRORED.BY files.  That then leads to a potential situation
where all the old mirrors are no longer function, and updates will fail.

ie:

1- sa-update run completes, gets MIRRORED.BY file from mirrors.[channel] DNS
pointer, stores it.  entries are for serverX, serverY, and serverZ.
2- time goes on, no channel updates are published, but the previous servers are
replaced by serverA, serverB, and serverC and the MIRRORED.BY file is updated.
3- eventually an update is published and DNS updated.
4- client machines see they have a cached MIRRORED.BY file so try to download
updates from serverX, serverY, and serverZ, all which fail.  at this point,
sa-update fails the channel as no mirrors are available.


So I would suggest that step 3.5 be inserted such that if the MIRRORED.BY
timestamp is old (say, >30d?,) an update attempt is made using the mirrors
(current method) w/ failback to mirrors.[channel] if necessary.

It would also be useful, probably, to try this if the channel download fails
due to all mirrors failing.


-- 
Configure bugmail: 
https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to