HADOOP-14857. Fix downstream shaded client integration test. Contributed by Sean Busbey.
This commit is contained in:
parent
10b2cfa96c
commit
8277fab2be
@ -77,7 +77,9 @@ public void clusterUp() throws IOException {
|
|||||||
|
|
||||||
@After
|
@After
|
||||||
public void clusterDown() {
|
public void clusterDown() {
|
||||||
cluster.close();
|
if (cluster != null) {
|
||||||
|
cluster.close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -75,6 +75,9 @@
|
|||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
-->
|
-->
|
||||||
|
<!-- Anything we're going to include in the relocated jar we list as optional
|
||||||
|
in order to work around MNG-5899
|
||||||
|
-->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.hadoop</groupId>
|
<groupId>org.apache.hadoop</groupId>
|
||||||
<artifactId>hadoop-minicluster</artifactId>
|
<artifactId>hadoop-minicluster</artifactId>
|
||||||
@ -282,6 +285,12 @@
|
|||||||
</exclusions>
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- Add back in Mockito since the hadoop-hdfs test jar needs it. -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.mockito</groupId>
|
||||||
|
<artifactId>mockito-all</artifactId>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
<!-- Add back in the transitive dependencies excluded from hadoop-common in client TODO remove once we have a filter for "is in these artifacts" -->
|
<!-- Add back in the transitive dependencies excluded from hadoop-common in client TODO remove once we have a filter for "is in these artifacts" -->
|
||||||
<!-- skip javax.servlet:servlet-api because it's in client -->
|
<!-- skip javax.servlet:servlet-api because it's in client -->
|
||||||
<!-- Skip commons-logging:commons-logging-api because it looks like nothing actually included it -->
|
<!-- Skip commons-logging:commons-logging-api because it looks like nothing actually included it -->
|
||||||
@ -635,6 +644,18 @@
|
|||||||
<exclude>testshell/*</exclude>
|
<exclude>testshell/*</exclude>
|
||||||
</excludes>
|
</excludes>
|
||||||
</filter>
|
</filter>
|
||||||
|
<!-- Mockito tries to include its own unrelocated copy of hamcrest. :( -->
|
||||||
|
<filter>
|
||||||
|
<artifact>org.mockito:mockito-all</artifact>
|
||||||
|
<excludes>
|
||||||
|
<exclude>asm-license.txt</exclude>
|
||||||
|
<exclude>cglib-license.txt</exclude>
|
||||||
|
<exclude>hamcrest-license.txt</exclude>
|
||||||
|
<exclude>objenesis-license.txt</exclude>
|
||||||
|
<exclude>org/hamcrest/**/*.class</exclude>
|
||||||
|
<exclude>org/hamcrest/*.class</exclude>
|
||||||
|
</excludes>
|
||||||
|
</filter>
|
||||||
</filters>
|
</filters>
|
||||||
<relocations>
|
<relocations>
|
||||||
<relocation>
|
<relocation>
|
||||||
|
@ -1218,6 +1218,7 @@ private void bindForPortRange(ServerConnector listener, int startPort)
|
|||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
void openListeners() throws Exception {
|
void openListeners() throws Exception {
|
||||||
|
LOG.debug("opening listeners: {}", listeners);
|
||||||
for (ServerConnector listener : listeners) {
|
for (ServerConnector listener : listeners) {
|
||||||
if (listener.getLocalPort() != -1 && listener.getLocalPort() != -2) {
|
if (listener.getLocalPort() != -1 && listener.getLocalPort() != -2) {
|
||||||
// This listener is either started externally or has been bound or was
|
// This listener is either started externally or has been bound or was
|
||||||
|
2
pom.xml
2
pom.xml
@ -96,7 +96,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs
|
|||||||
<maven-stylus-skin.version>1.5</maven-stylus-skin.version>
|
<maven-stylus-skin.version>1.5</maven-stylus-skin.version>
|
||||||
<maven-antrun-plugin.version>1.7</maven-antrun-plugin.version>
|
<maven-antrun-plugin.version>1.7</maven-antrun-plugin.version>
|
||||||
<maven-assembly-plugin.version>2.4</maven-assembly-plugin.version>
|
<maven-assembly-plugin.version>2.4</maven-assembly-plugin.version>
|
||||||
<maven-dependency-plugin.version>2.10</maven-dependency-plugin.version>
|
<maven-dependency-plugin.version>3.0.1</maven-dependency-plugin.version>
|
||||||
<maven-enforcer-plugin.version>3.0.0-M1</maven-enforcer-plugin.version>
|
<maven-enforcer-plugin.version>3.0.0-M1</maven-enforcer-plugin.version>
|
||||||
<maven-javadoc-plugin.version>2.10.4</maven-javadoc-plugin.version>
|
<maven-javadoc-plugin.version>2.10.4</maven-javadoc-plugin.version>
|
||||||
<maven-gpg-plugin.version>1.5</maven-gpg-plugin.version>
|
<maven-gpg-plugin.version>1.5</maven-gpg-plugin.version>
|
||||||
|
Loading…
Reference in New Issue
Block a user