branch-rewrite.py does not reconnect after database outage
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Critical
|
Stuart Bishop |
Bug Description
branch-rewrite.py runs in autocommit mode and it appears the Storm reconnection logic isn't kicking in.
2011-08-29 13:11:20 ERROR Exception occurred:
Traceback (most recent call last):
File "scripts/
print rewriter.
File "/home/
resource_
File "/home/
location, from_slave=True)
File "/home/
return self._getIdAndT
File "/home/
Branch.
File "/home/
result = self._store.
File "/home/
return Connection.
File "/home/
self.
File "/home/
raise DisconnectionEr
DisconnectionError: Already disconnected
NULL
Related branches
- Jeroen T. Vermeulen (community): Approve
-
Diff: 284 lines (+132/-12)6 files modifiedlib/canonical/config/tests/test_database_config.py (+2/-1)
lib/canonical/launchpad/doc/canonical-config.txt (+2/-1)
lib/lp/codehosting/tests/test_rewrite.py (+89/-7)
lib/lp/testing/__init__.py (+24/-0)
lib/lp/testing/tests/test_pgsql.py (+1/-1)
scripts/branch-rewrite.py (+14/-2)
Changed in launchpad: | |
status: | Triaged → In Progress |
assignee: | nobody → Stuart Bishop (stub) |
tags: |
added: qa-untestable removed: qa-needstesting |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
Reconnection is triggered via zstorm, where store.rollback() is called on transaction. abort() . branch-rewrite.py never calls transaction. abort() .