public class StressRegressionTest extends BaseTestCase
| Modifier and Type | Class and Description |
|---|---|
class |
StressRegressionTest.BusyThread |
(package private) class |
StressRegressionTest.ContentionThread |
(package private) class |
StressRegressionTest.CreateThread |
private static class |
StressRegressionTest.SharedInfoForTestBug67760 |
BaseTestCase.MockConnectionConfiguration| Modifier and Type | Field and Description |
|---|---|
private int |
numThreadsStarted |
conn, dbClass, dbName, dbUrl, isOpenSSL, mainConnectionUrl, pstmt, rs, serverVersion, stmt, timeZoneFreeDbUrl| Constructor and Description |
|---|
StressRegressionTest() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
contentiousWork(java.sql.Connection threadConn,
java.sql.Statement threadStmt,
int threadNumber) |
(package private) void |
reportDone() |
void |
testBug67760()
Tests fix for BUG#67760 - Deadlock when concurrently executing prepared statements with Timestamp objects
Concurrent execution of Timestamp, Date and Time related setters and getters from a PreparedStatement and ResultSet object obtained from a same shared
Connection may result in a deadlock.
|
void |
testContention() |
void |
testCreateConnections() |
void |
testCreateConnectionsUnderLoad() |
appendRequiredProperties, assertByteArrayEquals, assertConnectionsHistory, assertEqualsFSAware, assertNonSecureConnection, assertResultSetLength, assertResultSetsEqual, assertSecureConnection, assertSecureConnection, assertSessionStatusEquals, assertThrows, assertThrows, assertThrows, assertThrows, cleanupTempFiles, createDatabase, createDatabase, createFunction, createFunction, createProcedure, createProcedure, createSchemaObject, createSchemaObject, createTable, createTable, createTable, createTable, createUser, createUser, createView, createView, currentTimeMillis, dropDatabase, dropDatabase, dropFunction, dropFunction, dropProcedure, dropProcedure, dropSchemaObject, dropSchemaObject, dropTable, dropTable, dropUser, dropUser, dropView, dropView, fillPrimitiveDefaults, getConnectionWithProps, getConnectionWithProps, getConnectionWithProps, getConnectionWithProps, getEncodedHostFromTestsuiteUrl, getEncodedHostPortPairFromTestsuiteUrl, getFailoverConnection, getFailoverConnection, getHostFreePropertiesFromTestsuiteUrl, getHostFreePropertiesFromTestsuiteUrl, getHostFromTestsuiteUrl, getInstanceNumber, getLoadBalancedConnection, getLoadBalancedConnection, getLoadBalancedConnection, getMysqlVariable, getMysqlVariable, getNewConnection, getNoDbUrl, getPort, getPortFreeHostname, getPortFromTestsuiteUrl, getPropertiesFromTestsuiteUrl, getPropertiesFromUrl, getRowCount, getSingleIndexedValueWithQuery, getSingleIndexedValueWithQuery, getSingleValue, getSingleValueWithQuery, getSourceReplicaReplicationConnection, getSourceReplicaReplicationConnection, getSourceReplicaUrl, getSourceReplicaUrl, getUnreliableFailoverConnection, getUnreliableFailoverConnection, getUnreliableLoadBalancedConnection, getUnreliableLoadBalancedConnection, getUnreliableMultiHostConnection, getUnreliableReplicationConnection, getUnreliableReplicationConnection, getUnreliableReplicationConnection, isClassAvailable, isCommunityEdition, isEnterpriseEdition, isMysqlRunningLocally, isRunningOnJRockit, isServerRunningOnWindows, isSysPropDefined, logDebug, newTempBinaryFile, randomString, removeHostRelatedProps, removeSqlMode, runLongTests, setUpBase, supportsLoadLocalInfile, supportsTestCachingSha2PasswordKeys, supportsTestCertificates, supportsTestSha256PasswordKeys, supportsTimeZoneNames, supportsTLSv1_2, tearDownBase, versionMeetsMinimum, versionMeetsMinimum@Test
@Disabled(value="It\'s a very long test")
public void testContention()
throws java.lang.Exception
java.lang.Exception@Test
public void testCreateConnections()
throws java.lang.Exception
java.lang.Exception@Test
public void testCreateConnectionsUnderLoad()
throws java.lang.Exception
java.lang.Exceptionvoid contentiousWork(java.sql.Connection threadConn,
java.sql.Statement threadStmt,
int threadNumber)
threadConn - threadStmt - threadNumber - void reportDone()
@Test
public void testBug67760()
throws java.lang.Exception
java.lang.Exception