[Buildbot-commits] [buildbot/buildbot] 95deef: Re-run queries after certain OperationalErrors

GitHub noreply at github.com
Tue Jan 24 17:16:44 UTC 2012


  Branch: refs/heads/master
  Home:   https://github.com/buildbot/buildbot
  Commit: 95deef27d7c531ead19e0ac86a9aa1546d4ee7f9
      https://github.com/buildbot/buildbot/commit/95deef27d7c531ead19e0ac86a9aa1546d4ee7f9
  Author: Dustin J. Mitchell <dustin at mozilla.com>
  Date:   2012-01-23 (Mon, 23 Jan 2012)

  Changed paths:
    M master/buildbot/db/pool.py
  M master/buildbot/test/unit/test_db_pool.py

  Log Message:
  -----------
  Re-run queries after certain OperationalErrors

Sometimes malformed SQL can generate an OperationalError, so this looks
at the message itself.  It's unclear how this will work with
localization.

The code uses an exponential backoff algorithm (with a relatively small
multiplier), and will retry for a day, which seems a reasonable
get-the-db-server-fixed time.

Fixes #2005.  Hoepfully for good!


  Commit: 6a37b90add743e4e6f10b6cfe4eef82180941e31
      https://github.com/buildbot/buildbot/commit/6a37b90add743e4e6f10b6cfe4eef82180941e31
  Author: Dustin J. Mitchell <dustin at mozilla.com>
  Date:   2012-01-24 (Tue, 24 Jan 2012)

  Changed paths:
    M master/buildbot/db/pool.py
  M master/buildbot/test/unit/test_db_pool.py

  Log Message:
  -----------
  Merge branch 'bug2005'

* bug2005:
  Re-run queries after certain OperationalErrors


Compare: https://github.com/buildbot/buildbot/compare/9a87837...6a37b90


More information about the Commits mailing list