This is an automated email from the ASF dual-hosted git repository.

suvasude pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-gobblin.git


The following commit(s) were added to refs/heads/master by this push:
     new c98226c  [GOBBLIN-1234] Fix unit tests that fail on local build after 
MySQL v8 bump up[]
c98226c is described below

commit c98226cf7bb30ea2edc19f02eecdef7f9178b87f
Author: sv2000 <[email protected]>
AuthorDate: Fri Aug 14 17:03:43 2020 -0700

    [GOBBLIN-1234] Fix unit tests that fail on local build after MySQL v8 bump 
up[]
    
    Closes #3080 from
    sv2000/jobHistoryStoreFailingUnitTest
---
 .../gobblin/metastore/testing/TestMetastoreDatabaseServer.java       | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 
a/gobblin-metastore/src/test/java/org/apache/gobblin/metastore/testing/TestMetastoreDatabaseServer.java
 
b/gobblin-metastore/src/test/java/org/apache/gobblin/metastore/testing/TestMetastoreDatabaseServer.java
index fb70092..40b5a11 100644
--- 
a/gobblin-metastore/src/test/java/org/apache/gobblin/metastore/testing/TestMetastoreDatabaseServer.java
+++ 
b/gobblin-metastore/src/test/java/org/apache/gobblin/metastore/testing/TestMetastoreDatabaseServer.java
@@ -26,8 +26,6 @@ import java.sql.PreparedStatement;
 import java.sql.SQLException;
 import java.util.Properties;
 
-import javax.sql.DataSource;
-
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -41,6 +39,8 @@ import com.wix.mysql.EmbeddedMysql;
 import com.wix.mysql.config.MysqldConfig;
 import com.wix.mysql.distribution.Version;
 
+import javax.sql.DataSource;
+
 import org.apache.gobblin.configuration.ConfigurationKeys;
 import org.apache.gobblin.metastore.MetaStoreModule;
 import org.apache.gobblin.metastore.util.DatabaseJobHistoryStoreSchemaManager;
@@ -94,6 +94,7 @@ class TestMetastoreDatabaseServer implements Closeable {
     config = MysqldConfig.aMysqldConfig(Version.v8_latest)
         .withPort(this.dbPort)
         .withUser(this.dbUserName, this.dbUserPassword)
+        .withServerVariable("explicit_defaults_for_timestamp", "off")
         .build();
     if (this.embeddedMysqlEnabled) {
       testingMySqlServer = EmbeddedMysql.anEmbeddedMysql(config).start();

Reply via email to