Simbarashe Dzinamarira created HDFS-17533: ---------------------------------------------
Summary: RBF Tests that use embedded SQL failing unit tests Key: HDFS-17533 URL: https://issues.apache.org/jira/browse/HDFS-17533 Project: Hadoop HDFS Issue Type: Test Reporter: Simbarashe Dzinamarira In the CI runs for RBF the following two tests are failing {noformat} [ERROR] Failures: [ERROR] org.apache.hadoop.hdfs.server.federation.router.security.token.TestSQLDelegationTokenSecretManagerImpl.null [ERROR] Run 1: TestSQLDelegationTokenSecretManagerImpl Multiple Failures (2 failures) java.sql.SQLException: No suitable driver found for jdbc:derby:memory:TokenStore;create=true java.lang.RuntimeException: java.sql.SQLException: No suitable driver found for jdbc:derby:memory:TokenStore;drop=true [ERROR] Run 2: TestSQLDelegationTokenSecretManagerImpl Multiple Failures (2 failures) java.sql.SQLException: No suitable driver found for jdbc:derby:memory:TokenStore;create=true java.lang.RuntimeException: java.sql.SQLException: No suitable driver found for jdbc:derby:memory:TokenStore;drop=true [ERROR] Run 3: TestSQLDelegationTokenSecretManagerImpl Multiple Failures (2 failures) java.sql.SQLException: No suitable driver found for jdbc:derby:memory:TokenStore;create=true java.lang.RuntimeException: java.sql.SQLException: No suitable driver found for jdbc:derby:memory:TokenStore;drop=true [INFO] [ERROR] org.apache.hadoop.hdfs.server.federation.store.driver.TestStateStoreMySQL.null [ERROR] Run 1: TestStateStoreMySQL Multiple Failures (2 failures) java.sql.SQLException: No suitable driver found for jdbc:derby:memory:StateStore;create=true java.lang.RuntimeException: java.sql.SQLException: No suitable driver found for jdbc:derby:memory:StateStore;drop=true [ERROR] Run 2: TestStateStoreMySQL Multiple Failures (2 failures) java.sql.SQLException: No suitable driver found for jdbc:derby:memory:StateStore;create=true java.lang.RuntimeException: java.sql.SQLException: No suitable driver found for jdbc:derby:memory:StateStore;drop=true [ERROR] Run 3: TestStateStoreMySQL Multiple Failures (2 failures) java.sql.SQLException: No suitable driver found for jdbc:derby:memory:StateStore;create=true java.lang.RuntimeException: java.sql.SQLException: No suitable driver found for jdbc:derby:memory:StateStore;drop=true {noformat} [https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6804/5/artifact/out/patch-unit-hadoop-hdfs-project_hadoop-hdfs-rbf.txt] I believe the fix is first registering the driver: [https://dev.mysql.com/doc/connector-j/en/connector-j-usagenotes-connect-drivermanager.html] [https://stackoverflow.com/questions/22384710/java-sql-sqlexception-no-suitable-driver-found-for-jdbcmysql-localhost3306] -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-dev-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-dev-h...@hadoop.apache.org