[
https://issues.apache.org/jira/browse/BEAM-14191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17513711#comment-17513711
]
Deepak Nagaraj commented on BEAM-14191:
---------------------------------------
[~lcwik] [~chamikara] The CI test is setting filesToStage, but it's not showing
at runtime.
{code:java}
INFO apache_beam.utils.subprocess_server:subprocess_server.py:116 Starting
service with ['java' '-jar'
'/home/jenkins/.apache_beam/cache/jars/composite-jars/93acf19a193bdae70b1ce9c71b917add468f2f5c19e424bb5eed1f1f9dd495a5.jar'
'34793'
'--filesToStage=/home/jenkins/jenkins-slave/workspace/beam_PostCommit_Python36/src/sdks/java/extensions/schemaio-expansion-service/build/libs/beam-sdks-java-extensions-schemaio-expansion-service-2.39.0-SNAPSHOT.jar,https://repo.maven.apache.org/maven2/mysql/mysql-connector-java/8.0.28/mysql-connector-java-8.0.28.jar']
{code}
The MySQL connector jar has the relevant class:
{code:java}
733 12-16-2021 00:25 com/mysql/cj/jdbc/Driver.class {code}
I tried to dig in but couldn't get to the root cause. Happy to revert earlier
PR if that's your post-triage decision.
> CrossLanguageJdbcIOTest broken with "Cannot load JDBC driver class
> 'com.mysql.cj.jdbc.Driver'"
> ----------------------------------------------------------------------------------------------
>
> Key: BEAM-14191
> URL: https://issues.apache.org/jira/browse/BEAM-14191
> Project: Beam
> Issue Type: Bug
> Components: cross-language, test-failures
> Reporter: Luke Cwik
> Assignee: Deepak Nagaraj
> Priority: P1
> Fix For: 2.38.0
>
>
> Example failure:
> https://ci-beam.apache.org/job/beam_PostCommit_Python36/5113/testReport/junit/apache_beam.io.external.xlang_jdbcio_it_test/CrossLanguageJdbcIOTest/test_xlang_jdbc_read_1_mysql/
> Culprit: https://github.com/apache/beam/pull/17167
> {noformat}
> RuntimeError: Pipeline
> BeamApp-jenkins-0325181709-516ba346_d7972792-2c60-4332-8107-ac73c585491a
> failed in state FAILED: java.lang.RuntimeException: Error received from SDK
> harness for instruction 19: org.apache.beam.sdk.util.UserCodeException:
> java.sql.SQLException: Cannot load JDBC driver class
> 'com.mysql.cj.jdbc.Driver'
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)