public class FailingMySQLDriverWrapper extends com.mysql.jdbc.Driver
Necessary steps:
oozie.service.JPAService.connection.data.source
to
org.apache.oozie.util.db.BasicDataSourceWrapper
within oozie-site.xml
oozie.service.JPAService.jdbc.driver
to org.apache.oozie.util.db.FailingMySQLDriverWrapper
within oozie-site.xml
JPAException
instances with following message prefix:
Deliberately failing to prepare statement.
connectionPhantomRefs, DBNAME_PROPERTY_KEY, DEBUG, HOST_NAME_INDEX, HOST_PROPERTY_KEY, LICENSE, LOADBALANCE_URL_PREFIX, NAME, NUM_HOSTS_PROPERTY_KEY, OS, PASSWORD_PROPERTY_KEY, PATH_PROPERTY_KEY, PLATFORM, PORT_NUMBER_INDEX, PORT_PROPERTY_KEY, PROPERTIES_TRANSFORM_KEY, PROTOCOL_PROPERTY_KEY, refQueue, RUNTIME_VENDOR, RUNTIME_VERSION, TRACE, USE_CONFIG_PROPERTY_KEY, USER_PROPERTY_KEY, VERSION
Constructor and Description |
---|
FailingMySQLDriverWrapper() |
Modifier and Type | Method and Description |
---|---|
Connection |
connect(String url,
Properties info) |
acceptsURL, connectReplicationConnection, database, expandHostKeyValues, getMajorVersion, getMinorVersion, getOSName, getPlatform, getPropertyInfo, host, isHostPropertiesList, jdbcCompliant, parseHostPortPair, parseURL, port, property, trackConnection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
acceptsURL, getMajorVersion, getMinorVersion, getParentLogger, getPropertyInfo, jdbcCompliant
public FailingMySQLDriverWrapper() throws SQLException
SQLException
public Connection connect(String url, Properties info) throws SQLException
connect
in interface Driver
connect
in class com.mysql.jdbc.NonRegisteringDriver
SQLException
Copyright © 2018 Apache Software Foundation. All rights reserved.