gaborgsomogyi commented on a change in pull request #28215: [SPARK-31272][SQL]
Support DB2 Kerberos login in JDBC connector
URL: https://github.com/apache/spark/pull/28215#discussion_r408141422
##########
File path:
external/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/DockerJDBCIntegrationSuite.scala
##########
@@ -142,12 +154,11 @@ abstract class DockerJDBCIntegrationSuite extends
SharedSparkSession with Eventu
// Start the container and wait until the database can accept JDBC
connections:
docker.startContainer(containerId)
jdbcUrl = db.getJdbcUrl(dockerIp, externalPort)
- eventually(timeout(1.minute), interval(1.second)) {
- val conn = java.sql.DriverManager.getConnection(jdbcUrl)
- conn.close()
+ var conn: Connection = null
+ eventually(timeout(2.minutes), interval(1.second)) {
Review comment:
Single connection simplification + timeout inrease.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]