/[Apache-SVN]
ViewVC logotype

Revision 1753333


Jump to revision: Previous Next
Author: bpendleton
Date: Tue Jul 19 03:55:35 2016 UTC (7 years, 9 months ago)
Changed paths: 1
Log Message:
DERBY-6879: Engine deadlock between XA timeout handling and cleanupOnError

This patch was contributed by Brett Bergquist (brett at thebergquistfamily dot com)

This change is a follow-up to revision 1751977.

The problem with that revision occurs if a timeout occurs calling "cancel"
and if an error occurs on the clients connection causing the "cleanupOnError"
to be called at the same time.

This change creates a new private static class that is used to track if
"cancel" or "cleanupOnError" has been invoked. The methods are synchronized
so that there is no timing issue on checking and recording the state.


Changed paths

Path Details
Directorydb/derby/code/trunk/java/engine/org/apache/derby/jdbc/XATransactionState.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26