Skip to content

Commit eca37b1

Browse files
committed
Merge branch 'trunk' into possible-resource-leak
2 parents 484b88e + 9b2f812 commit eca37b1

File tree

188 files changed

+3832
-666
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

188 files changed

+3832
-666
lines changed

BUILDING.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Maven build goals:
139139
* Compile : mvn compile [-Pnative]
140140
* Run tests : mvn test [-Pnative] [-Pshelltest]
141141
* Create JAR : mvn package
142-
* Run findbugs : mvn compile findbugs:findbugs
142+
* Run spotbugs : mvn compile spotbugs:spotbugs
143143
* Run checkstyle : mvn compile checkstyle:checkstyle
144144
* Install JAR in M2 cache : mvn install
145145
* Deploy JAR to Maven repo : mvn deploy

LICENSE-binary

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.9.9
225225
com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.9.9
226226
com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.9.9
227227
com.fasterxml.uuid:java-uuid-generator:3.1.4
228-
com.fasterxml.woodstox:woodstox-core:5.0.3
228+
com.fasterxml.woodstox:woodstox-core:5.3.0
229229
com.github.davidmoten:rxjava-extras:0.8.0.17
230230
com.github.stephenc.jcip:jcip-annotations:1.0-1
231231
com.google:guice:4.0
@@ -366,7 +366,7 @@ hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanage
366366

367367
com.github.luben:zstd-jni:1.4.3-1
368368
dnsjava:dnsjava:2.1.7
369-
org.codehaus.woodstox:stax2-api:3.1.4
369+
org.codehaus.woodstox:stax2-api:4.2.1
370370

371371

372372
BSD 3-Clause
@@ -468,8 +468,8 @@ com.microsoft.azure:azure-cosmosdb-gateway:2.4.5
468468
com.microsoft.azure:azure-data-lake-store-sdk:2.3.3
469469
com.microsoft.azure:azure-keyvault-core:1.0.0
470470
com.microsoft.sqlserver:mssql-jdbc:6.2.1.jre7
471-
org.bouncycastle:bcpkix-jdk15on:1.60
472-
org.bouncycastle:bcprov-jdk15on:1.60
471+
org.bouncycastle:bcpkix-jdk15on:1.68
472+
org.bouncycastle:bcprov-jdk15on:1.68
473473
org.checkerframework:checker-qual:2.5.2
474474
org.codehaus.mojo:animal-sniffer-annotations:1.17
475475
org.jruby.jcodings:jcodings:1.0.13

dev-support/Jenkinsfile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pipeline {
3535
DOCKERFILE = "${SOURCEDIR}/dev-support/docker/Dockerfile"
3636
YETUS='yetus'
3737
// Branch or tag name. Yetus release tags are 'rel/X.Y.Z'
38-
YETUS_VERSION='rel/0.13.0'
38+
YETUS_VERSION='11eb9b09786e401fbdeaa3be83a19a4066fd7813'
3939
}
4040

4141
parameters {
@@ -60,7 +60,7 @@ pipeline {
6060
stage ('precommit-run') {
6161
steps {
6262
withCredentials(
63-
[usernamePassword(credentialsId: '683f5dcf-5552-4b28-9fb1-6a6b77cf53dd',
63+
[usernamePassword(credentialsId: 'apache-hadoop-at-github.com',
6464
passwordVariable: 'GITHUB_TOKEN',
6565
usernameVariable: 'GITHUB_USER'),
6666
usernamePassword(credentialsId: 'hadoopqa-at-asf-jira',
@@ -120,11 +120,11 @@ pipeline {
120120
YETUS_ARGS+=("--proclimit=5500")
121121
YETUS_ARGS+=("--dockermemlimit=22g")
122122
123-
# -1 findbugs issues that show up prior to the patch being applied
124-
YETUS_ARGS+=("--findbugs-strict-precheck")
123+
# -1 spotbugs issues that show up prior to the patch being applied
124+
YETUS_ARGS+=("--spotbugs-strict-precheck")
125125
126126
# rsync these files back into the archive dir
127-
YETUS_ARGS+=("--archive-list=checkstyle-errors.xml,findbugsXml.xml")
127+
YETUS_ARGS+=("--archive-list=checkstyle-errors.xml,spotbugsXml.xml")
128128
129129
# URL for user-side presentation in reports and such to our artifacts
130130
# (needs to match the archive bits below)
@@ -157,6 +157,10 @@ pipeline {
157157
# custom javadoc goals
158158
YETUS_ARGS+=("--mvn-javadoc-goals=process-sources,javadoc:javadoc-no-fork")
159159
160+
# write Yetus report as GitHub comment (YETUS-1102)
161+
YETUS_ARGS+=("--github-write-comment")
162+
YETUS_ARGS+=("--github-use-emoji-vote")
163+
160164
"${TESTPATCHBIN}" "${YETUS_ARGS[@]}"
161165
'''
162166
}

dev-support/bin/hadoop.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ function personality_file_tests
482482
fi
483483

484484
if [[ ${filename} =~ \.java$ ]]; then
485-
add_test findbugs
485+
add_test spotbugs
486486
fi
487487
}
488488

@@ -550,7 +550,7 @@ function shadedclient_rebuild
550550
echo_and_redirect "${logfile}" \
551551
"${MAVEN}" "${MAVEN_ARGS[@]}" verify -fae --batch-mode -am \
552552
"${modules[@]}" \
553-
-Dtest=NoUnitTests -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Dfindbugs.skip=true
553+
-Dtest=NoUnitTests -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Dspotbugs.skip=true
554554

555555
count=$("${GREP}" -c '\[ERROR\]' "${logfile}")
556556
if [[ ${count} -gt 0 ]]; then

dev-support/bin/test-patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
# limitations under the License.
1616

1717
BINDIR=$(cd -P -- "$(dirname -- "${BASH_SOURCE-0}")" >/dev/null && pwd -P)
18-
exec "${BINDIR}/yetus-wrapper" test-patch --project=hadoop --skip-dir=dev-support "$@"
18+
exec "${BINDIR}/yetus-wrapper" test-patch --project=hadoop --skip-dirs=dev-support "$@"

dev-support/docker/Dockerfile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ RUN apt-get -q update \
4444
cmake \
4545
curl \
4646
doxygen \
47-
findbugs \
4847
fuse \
4948
g++ \
5049
gcc \
@@ -92,7 +91,16 @@ RUN apt-get -q update \
9291
ENV MAVEN_HOME /usr
9392
# JAVA_HOME must be set in Maven >= 3.5.0 (MNG-6003)
9493
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
95-
ENV FINDBUGS_HOME /usr
94+
95+
#######
96+
# Install SpotBugs 4.2.2
97+
#######
98+
RUN mkdir -p /opt/spotbugs \
99+
&& curl -L -s -S https://github.com/spotbugs/spotbugs/releases/download/4.2.2/spotbugs-4.2.2.tgz \
100+
-o /opt/spotbugs.tgz \
101+
&& tar xzf /opt/spotbugs.tgz --strip-components 1 -C /opt/spotbugs \
102+
&& chmod +x /opt/spotbugs/bin/*
103+
ENV SPOTBUGS_HOME /opt/spotbugs
96104

97105
#######
98106
# Install Boost 1.72 (1.71 ships with Focal)

dev-support/docker/Dockerfile_aarch64

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ RUN apt-get -q update \
4848
cmake \
4949
curl \
5050
doxygen \
51-
findbugs \
5251
fuse \
5352
g++ \
5453
gcc \
@@ -96,7 +95,16 @@ RUN apt-get -q update \
9695
ENV MAVEN_HOME /usr
9796
# JAVA_HOME must be set in Maven >= 3.5.0 (MNG-6003)
9897
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-arm64
99-
ENV FINDBUGS_HOME /usr
98+
99+
#######
100+
# Install SpotBugs 4.2.2
101+
#######
102+
RUN mkdir -p /opt/spotbugs \
103+
&& curl -L -s -S https://github.com/spotbugs/spotbugs/releases/download/4.2.2/spotbugs-4.2.2.tgz \
104+
-o /opt/spotbugs.tgz \
105+
&& tar xzf /opt/spotbugs.tgz --strip-components 1 -C /opt/spotbugs \
106+
&& chmod +x /opt/spotbugs/bin/*
107+
ENV SPOTBUGS_HOME /opt/spotbugs
100108

101109
#######
102110
# Install Boost 1.72 (1.71 ships with Focal)

hadoop-cloud-storage-project/hadoop-cos/pom.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,9 @@
6464
<build>
6565
<plugins>
6666
<plugin>
67-
<groupId>org.codehaus.mojo</groupId>
68-
<artifactId>findbugs-maven-plugin</artifactId>
67+
<groupId>com.github.spotbugs</groupId>
68+
<artifactId>spotbugs-maven-plugin</artifactId>
6969
<configuration>
70-
<findbugsXmlOutput>true</findbugsXmlOutput>
7170
<xmlOutput>true</xmlOutput>
7271
<excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml
7372
</excludeFilterFile>

hadoop-cloud-storage-project/hadoop-cos/src/main/java/org/apache/hadoop/fs/cosn/CosNFileSystem.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
import java.util.HashMap;
2929
import java.util.Set;
3030
import java.util.TreeSet;
31+
import java.util.concurrent.ExecutorService;
3132
import java.util.concurrent.TimeUnit;
3233

3334
import org.slf4j.Logger;
3435
import org.slf4j.LoggerFactory;
35-
import org.apache.hadoop.thirdparty.com.google.common.util.concurrent.ListeningExecutorService;
3636

3737
import org.apache.hadoop.classification.InterfaceAudience;
3838
import org.apache.hadoop.classification.InterfaceStability;
@@ -71,8 +71,8 @@ public class CosNFileSystem extends FileSystem {
7171
private String owner = "Unknown";
7272
private String group = "Unknown";
7373

74-
private ListeningExecutorService boundedIOThreadPool;
75-
private ListeningExecutorService boundedCopyThreadPool;
74+
private ExecutorService boundedIOThreadPool;
75+
private ExecutorService boundedCopyThreadPool;
7676

7777
public CosNFileSystem() {
7878
}

hadoop-cloud-storage-project/hadoop-huaweicloud/src/main/java/org/apache/hadoop/fs/obs/OBSFileSystem.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
package org.apache.hadoop.fs.obs;
2020

2121
import org.apache.hadoop.thirdparty.com.google.common.annotations.VisibleForTesting;
22-
import org.apache.hadoop.thirdparty.com.google.common.util.concurrent.ListeningExecutorService;
2322
import com.obs.services.ObsClient;
2423
import com.obs.services.exception.ObsException;
2524
import com.obs.services.model.AccessControlList;
@@ -53,6 +52,7 @@
5352
import java.io.IOException;
5453
import java.net.URI;
5554
import java.util.EnumSet;
55+
import java.util.concurrent.ExecutorService;
5656
import java.util.concurrent.LinkedBlockingQueue;
5757
import java.util.concurrent.ThreadPoolExecutor;
5858
import java.util.concurrent.TimeUnit;
@@ -169,7 +169,7 @@ public final class OBSFileSystem extends FileSystem {
169169
/**
170170
* Bounded thread pool for multipart upload.
171171
*/
172-
private ListeningExecutorService boundedMultipartUploadThreadPool;
172+
private ExecutorService boundedMultipartUploadThreadPool;
173173

174174
/**
175175
* Bounded thread pool for copy.

0 commit comments

Comments
 (0)