[Buildbot-commits] [SPAM] [Buildbot] #748: Exception when adding change

Buildbot buildbot-devel at lists.sourceforge.net
Thu Mar 18 16:04:10 UTC 2010


#748: Exception when adding change
-------------------+--------------------------------------------------------
Reporter:  catlee  |       Owner:       
    Type:  defect  |      Status:  new  
Priority:  major   |   Milestone:  0.8.0
 Version:  master  |    Keywords:       
-------------------+--------------------------------------------------------
 I hit this exception when a new change was detected via our hg poller.
 The change was eventually detected again, and inserted properly.  IIRC,
 mysql connections need to be recycled every so often, depending on server
 configuration.  (wait_timeout on this server is configured to 600 seconds)

 See docs here under the 'pool_recycle' parameter:
 http://www.sqlalchemy.org/docs/05/reference/sqlalchemy/connections.html?highlight=recycle
 #creating-engines

 {{{
 Unhandled Error
         Traceback (most recent call last):
           File "/tools/buildbot-
 catlee/buildbot/buildbot/changes/manager.py", line 113, in addChange
             self.parent.addChange(change)
           File "/tools/buildbot-catlee/buildbot/buildbot/master.py", line
 1013, in addChange
             self.db.addChangeToDatabase(change)
           File "/tools/buildbot-catlee/buildbot/buildbot/db/connector.py",
 line 284, in addChangeToDatabase
             self.runInteractionNow(self._txn_addChangeToDatabase, change)
           File "/tools/buildbot-catlee/buildbot/buildbot/db/connector.py",
 line 203, in runInteractionNow
             return self._runInteractionNow(interaction, *args, **kwargs)
         --- <exception caught here> ---
           File "/tools/buildbot-catlee/buildbot/buildbot/db/connector.py",
 line 220, in _runInteractionNow
             self._nonpool.rollback()
         _mysql_exceptions.OperationalError: (2006, 'MySQL server has gone
 away')
 }}}

-- 
Ticket URL: <http://buildbot.net/trac/ticket/748>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list