Repository navigation
guava fixes #683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
guava fixes #683
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -82,6 +82,11 @@ | |
| <artifactId>mysql-plugin</artifactId> | ||
| <version>${project.version}</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.google.guava</groupId> | ||
| <artifactId>guava</artifactId> | ||
| <version>${guava.version}</version> | ||
| </dependency> | ||
|
|
||
| <!-- test dependencies --> | ||
| <dependency> | ||
|
|
@@ -121,6 +126,12 @@ | |
| <artifactId>mysql-socket-factory-connector-j-8</artifactId> | ||
| <version>1.0.10</version> | ||
| <scope>test</scope> | ||
| <exclusions> | ||
| <exclusion> | ||
| <groupId>com.google.guava</groupId> | ||
| <artifactId>guava</artifactId> | ||
| </exclusion> | ||
| </exclusions> | ||
| </dependency> | ||
| <!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java --> | ||
| <dependency> | ||
|
|
@@ -133,20 +144,6 @@ | |
|
|
||
| <build> | ||
| <plugins> | ||
| <plugin> | ||
| <groupId>org.apache.felix</groupId> | ||
| <artifactId>maven-bundle-plugin</artifactId> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removing this |
||
| <configuration> | ||
| <instructions> | ||
| <_exportcontents> | ||
| io.cdap.plugin.* | ||
| </_exportcontents> | ||
| <Embed-Dependency>*;inline=false;scope=compile</Embed-Dependency> | ||
| <Embed-Transitive>true</Embed-Transitive> | ||
| <Embed-Directory>lib</Embed-Directory> | ||
| </instructions> | ||
| </configuration> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>io.cdap</groupId> | ||
| <artifactId>cdap-maven-plugin</artifactId> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,8 +34,10 @@ | |
| import io.cdap.cdap.test.ApplicationManager; | ||
| import io.cdap.cdap.test.DataSetManager; | ||
| import io.cdap.cdap.test.WorkflowManager; | ||
| import org.junit.AfterClass; | ||
| import org.junit.Assert; | ||
| import org.junit.Assume; | ||
| import org.junit.BeforeClass; | ||
| import org.slf4j.Logger; | ||
|
|
||
| import java.sql.ResultSet; | ||
|
|
@@ -51,6 +53,38 @@ | |
| * Base test class for all database plugins. | ||
| */ | ||
| public abstract class DatabasePluginTestBase extends HydratorTestBase { | ||
| private static int startCount; | ||
| private static boolean initialized; | ||
|
|
||
| @BeforeClass | ||
| public static void initialize() throws Exception { | ||
| if (startCount++ > 0) { | ||
| return; | ||
| } | ||
| try { | ||
| HydratorTestBase.initialize(); | ||
| initialized = true; | ||
| } catch (LinkageError e) { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Catching |
||
| Assume.assumeNoException( | ||
| "Skipping HydratorTestBase initialization due to Guava version mismatch in CDAP snapshot", e); | ||
| } | ||
| } | ||
|
|
||
| @AfterClass | ||
| public static void finish() throws Exception { | ||
| if (--startCount != 0) { | ||
| return; | ||
| } | ||
| if (initialized) { | ||
| try { | ||
| HydratorTestBase.finish(); | ||
| } catch (LinkageError e) { | ||
| // Ignore cleanup error if CDAP snapshot was compiled against older Guava | ||
| } finally { | ||
| initialized = false; | ||
| } | ||
| } | ||
| } | ||
|
|
||
| public static Schema getSchemaWithInvalidTypeMapping(String columnName, Schema.Type type) { | ||
| return Schema.recordOf( | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -77,9 +77,9 @@ | |
| <surefire.redirectTestOutputToFile>true</surefire.redirectTestOutputToFile> | ||
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
| <!-- version properties --> | ||
| <cdap.version>6.11.0</cdap.version> | ||
| <cdap.version>6.12.0-SNAPSHOT</cdap.version> | ||
| <cdap.plugin.version>2.13.1</cdap.plugin.version> | ||
| <guava.version>13.0.1</guava.version> | ||
| <guava.version>32.0.0-jre</guava.version> | ||
|
AbhishekKumar9984 marked this conversation as resolved.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please use Guava >= 32.1.3-jre instead of 32.0.0-jre. 32.0.0 has a known regression (temp dir handling), fixed in 32.0.1. Ideally pin it once in |
||
| <hadoop.version>3.3.6</hadoop.version> | ||
| <hsql.version>2.2.4</hsql.version> | ||
| <junit.version>4.13</junit.version> | ||
|
|
@@ -97,6 +97,12 @@ | |
| <repository> | ||
| <id>sonatype-snapshots</id> | ||
| <url>https://central.sonatype.com/repository/maven-snapshots</url> | ||
| <releases> | ||
| <enabled>false</enabled> | ||
| </releases> | ||
| <snapshots> | ||
| <enabled>true</enabled> | ||
| </snapshots> | ||
| </repository> | ||
| </repositories> | ||
|
|
||
|
|
@@ -122,6 +128,12 @@ | |
| <artifactId>cdap-api</artifactId> | ||
| <version>${cdap.version}</version> | ||
| <scope>provided</scope> | ||
| <exclusions> | ||
| <exclusion> | ||
| <groupId>com.google.guava</groupId> | ||
| <artifactId>guava</artifactId> | ||
| </exclusion> | ||
| </exclusions> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.mockito</groupId> | ||
|
|
@@ -134,35 +146,71 @@ | |
| <artifactId>cdap-etl-proto</artifactId> | ||
| <version>${cdap.version}</version> | ||
| <scope>test</scope> | ||
| <exclusions> | ||
| <exclusion> | ||
| <groupId>com.google.guava</groupId> | ||
| <artifactId>guava</artifactId> | ||
| </exclusion> | ||
| </exclusions> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>io.cdap.cdap</groupId> | ||
| <artifactId>cdap-etl-api</artifactId> | ||
| <version>${cdap.version}</version> | ||
| <scope>provided</scope> | ||
| <exclusions> | ||
| <exclusion> | ||
| <groupId>com.google.guava</groupId> | ||
| <artifactId>guava</artifactId> | ||
| </exclusion> | ||
| </exclusions> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>io.cdap.cdap</groupId> | ||
| <artifactId>cdap-data-pipeline3_2.12</artifactId> | ||
| <version>${cdap.version}</version> | ||
| <scope>test</scope> | ||
| <exclusions> | ||
| <exclusion> | ||
| <groupId>com.google.guava</groupId> | ||
| <artifactId>guava</artifactId> | ||
| </exclusion> | ||
| </exclusions> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>io.cdap.cdap</groupId> | ||
| <artifactId>hydrator-test</artifactId> | ||
| <version>${cdap.version}</version> | ||
| <scope>test</scope> | ||
| <exclusions> | ||
| <exclusion> | ||
| <groupId>com.google.guava</groupId> | ||
| <artifactId>guava</artifactId> | ||
| </exclusion> | ||
| </exclusions> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>io.cdap.plugin</groupId> | ||
| <artifactId>hydrator-common</artifactId> | ||
| <version>${cdap.plugin.version}</version> | ||
| <exclusions> | ||
| <exclusion> | ||
| <groupId>com.google.guava</groupId> | ||
| <artifactId>guava</artifactId> | ||
| </exclusion> | ||
| </exclusions> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>io.cdap.cdap</groupId> | ||
| <artifactId>cdap-test</artifactId> | ||
| <version>${cdap.version}</version> | ||
| <scope>test</scope> | ||
| <exclusions> | ||
| <exclusion> | ||
| <groupId>com.google.guava</groupId> | ||
| <artifactId>guava</artifactId> | ||
| </exclusion> | ||
| </exclusions> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>io.cdap.cdap</groupId> | ||
|
|
@@ -174,6 +222,10 @@ | |
| <groupId>asm</groupId> | ||
| <artifactId>asm</artifactId> | ||
| </exclusion> | ||
| <exclusion> | ||
| <groupId>com.google.guava</groupId> | ||
| <artifactId>guava</artifactId> | ||
| </exclusion> | ||
| </exclusions> | ||
| </dependency> | ||
| <dependency> | ||
|
|
@@ -350,14 +402,12 @@ | |
| <groupId>javax.servlet</groupId> | ||
| <artifactId>servlet-api</artifactId> | ||
| </exclusion> | ||
| <exclusion> | ||
| <groupId>com.google.guava</groupId> | ||
| <artifactId>guava</artifactId> | ||
| </exclusion> | ||
| </exclusions> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.mockito</groupId> | ||
| <artifactId>mockito-core</artifactId> | ||
| <version>${mockito.version}</version> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| </dependencies> | ||
| </dependencyManagement> | ||
| <build> | ||
|
|
@@ -613,7 +663,7 @@ | |
| <properties> | ||
| <testSourceLocation>src/e2e-test/java</testSourceLocation> | ||
| <TEST_RUNNER>TestRunner.java</TEST_RUNNER> | ||
| <guava.version>32.1.2-jre</guava.version> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The e2e profile is being downgraded from 32.1.2-jre to 32.0.0-jre. Please don't go backwards. Please use Guava >= 32.1.3-jre instead of 32.0.0-jre. 32.0.0 has a known regression (temp dir handling), fixed in 32.0.1. Ideally pin it once in |
||
| <guava.version>32.0.0-jre</guava.version> | ||
|
AbhishekKumar9984 marked this conversation as resolved.
|
||
| </properties> | ||
| <build> | ||
| <testResources> | ||
|
|
@@ -713,7 +763,7 @@ | |
| <dependency> | ||
| <groupId>com.google.guava</groupId> | ||
| <artifactId>guava</artifactId> | ||
| <version>31.1-jre</version> | ||
| <version>${guava.version}</version> | ||
| </dependency> | ||
| </dependencies> | ||
| </dependencyManagement> | ||
|
|
@@ -729,6 +779,12 @@ | |
| <artifactId>cdap-e2e-framework</artifactId> | ||
| <version>0.5.0-SNAPSHOT</version> | ||
| <scope>test</scope> | ||
| <exclusions> | ||
| <exclusion> | ||
| <groupId>com.google.guava</groupId> | ||
| <artifactId>guava</artifactId> | ||
| </exclusion> | ||
| </exclusions> | ||
| </dependency> | ||
| <!-- https://mvnrepository.com/artifact/io.netty/netty-all --> | ||
| <dependency> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.