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.
--Gordon

Andrei Ilitchev wrote:
The proposed fix (found in https://bugs.eclipse.org/bugs/show_bug.cgi?id=2562926) fixes to closely related bugs:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=256284
https://bugs.eclipse.org/bugs/show_bug.cgi?id=256292

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.

Thanks,

Andrei.
_______________________________________________
eclipselink-dev mailing list
eclipselink-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-dev


Back to the top