test_adapter occasionally failing

Bug #32231 reported by Stuart Bishop
4
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Stuart Bishop

Bug Description

This test spawns two threads in order to trigger a serialization database exception. It looks like occasionally the serialization exception is not being raised because the other thread is raising an exception instead.

This test is temporarily disabled until I get a chance to look at it. It is not an urgent fix until Bug #31478 is sorted out.

File "/home/pqm/arch/queue/workdir/home/---devel/launchpad/lib/canonical/launchpad/webapp/ftests/test_adapter.txt", line 367, in test_adapter.txt

Failed example:

    print task1.traceback

Differences (ndiff with -expected +actual):

    + Failed to trigger serialization exception

    - Traceback (most recent call last):

    - ...

    - Retry: ...

----------------------------------------------------------------------

File "/home/pqm/arch/queue/workdir/home/---devel/launchpad/lib/canonical/launchpad/webapp/ftests/test_adapter.txt", line 371, in test_adapter.txt

Failed example:

    print task2.traceback

Differences (ndiff with -expected +actual):

    - None

    + Traceback (most recent call last):

    + File "<doctest test_adapter.txt[110]>", line 9, in run

    + transaction.commit()

    + File "/home/pqm/arch/queue/workdir/home/---devel/launchpad/database/schema/../../lib/transaction/__init__.py", line 31, in commit

    + manager.get().commit(sub)

    + File "/home/pqm/arch/queue/workdir/home/---devel/launchpad/database/schema/../../lib/transaction/_transaction.py", line 293, in commit

    + self._commitResources(subtransaction)

    + File "/home/pqm/arch/queue/workdir/home/---devel/launchpad/database/schema/../../lib/transaction/_transaction.py", line 345, in _commitResources

    + rm.tpc_finish(self)

    + File "/home/pqm/arch/queue/workdir/home/---devel/launchpad/database/schema/../../lib/transaction/_transaction.py", line 625, in tpc_finish

    + self._datamanager.commit(transaction)

    + File "/home/pqm/arch/queue/workdir/home/---devel/launchpad/database/schema/../../lib/sqlos/transaction/__init__.py", line 182, in commit

    + self.sqlconnection.commit()

    + File "/home/pqm/arch/queue/workdir/home/---devel/launchpad/lib/canonical/ftests/pgsql.py", line 65, in commit

    + return self.__dict__['real_connection'].commit()

    + InterfaceError: already closed

    + <BLANKLINE>

Stuart Bishop (stub)
Changed in launchpad:
assignee: nobody → stub
status: Unconfirmed → Confirmed
Stuart Bishop (stub)
Changed in launchpad:
status: Confirmed → In Progress
Stuart Bishop (stub)
Changed in launchpad:
status: In Progress → Fix Released
status: Fix Released → In Progress
Stuart Bishop (stub)
Changed in launchpad:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.