Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-dev] Proposed patch for Bug 256296: Reconnect fails when session loses connectivity and Bug 256284: Closing an EMF where the database is unavailable results in deployment exception on redeploy

Andrei, there are a few tests that test connection failure for failover support. They use the org.eclipse.persistence.testing.tests.failover.emulateddriver.EmulatedDriver and related classes to cause connection failures. You may also want to update the bug with some details on how the patch resolves the problem.

Andrei Ilitchev wrote:
The proposed fix (found in fixes to closely related bugs:

Currently there are no tests - to reproduce ther bugs one has to insure that db connections become invalid, then the new connections become available, again.

In manual tests that could be achieved by either unplugging/plugging of the network cable, or stopping/starting the db service (all done at the right time while stepping through the code in debugger).

I am currently trying to implement tests that would use wrapped connections - in case it goes well the tests will be added; if not then the patch will be checked in without automatic tests.

Please send any feed back you may have.


eclipselink-dev mailing list

Back to the top