Making WordPress.org

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#2678 closed defect (bug) (fixed)

SVN Watcher/importer occasionally times out

Reported by: dd32's profile dd32 Owned by: dd32's profile dd32
Milestone: Plugin Directory v3.0 Priority: normal
Component: Plugin Directory Keywords:
Cc:

Description

Occasionally the plugin directory SVN watcher script times out while waiting for a response from the SVN server, when this happens an exception is thrown which triggers WordPress.org error handlers.

As the failure is often a transient network timeout, triggering a failure notification isn't ideal every time - instead, the failure notification should only be made if SVN is unresponsive for one or more requests.

Change History (3)

#1 @dd32
8 years ago

  • Owner set to dd32
  • Resolution set to fixed
  • Status changed from new to closed

In 5233:

Plugin Directory: SVN Watcher: Wait for 2 consequtive SVN failures to occur before throwing exceptions - a single network timeout is usually transitive.
This also switches cron tasks to be checked for / registered on init, to ensure that a failed recurring task (one which throws an exception) is re-registered in Cavalcade.

Fixes #2678

#2 @dd32
8 years ago

In 5234:

Plugin Directory: SVN Watcher: Discard automated plugin commits by plugin-master, these should not trigger plugin imports.
plugin-master is responsible for creating new plugin directories, and in the new directory adding the initial version of plugins.

See #2678

#3 @dd32
8 years ago

In 5235:

Plugin Directory: SVN Watcher: Don't re-register cron jobs on the init hook as it's too race-condititiony under load with Cavalcade.
Instead add a cron job to check the cronjobs are registered correctly, with a single event set to re-add svn watcher jobs when we know it's going to be marked as failed.

See #2678

Note: See TracTickets for help on using tickets.