Skip to content

Commit b165323

Browse files
committed
Merge branch 'trunk' into HADOOP-17596
2 parents 8bf5862 + ede490d commit b165323

File tree

198 files changed

+3762
-1176
lines changed

Some content is hidden

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

198 files changed

+3762
-1176
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: 2 additions & 2 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

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/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-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.

hadoop-common-project/hadoop-auth/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@
237237
</executions>
238238
</plugin>
239239
<plugin>
240-
<groupId>org.codehaus.mojo</groupId>
241-
<artifactId>findbugs-maven-plugin</artifactId>
240+
<groupId>com.github.spotbugs</groupId>
241+
<artifactId>spotbugs-maven-plugin</artifactId>
242242
<configuration>
243243
<excludeFilterFile>${basedir}/dev-support/findbugsExcludeFile.xml</excludeFilterFile>
244244
</configuration>

hadoop-common-project/hadoop-common/src/main/bin/hadoop

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ function hadoop_usage
4444
hadoop_add_subcommand "kerbname" client "show auth_to_local principal conversion"
4545
hadoop_add_subcommand "key" client "manage keys via the KeyProvider"
4646
hadoop_add_subcommand "registrydns" daemon "run the registry DNS server"
47-
hadoop_add_subcommand "trace" client "view and modify Hadoop tracing settings"
4847
hadoop_add_subcommand "version" client "print the version"
4948
hadoop_add_subcommand "kdiag" client "Diagnose Kerberos Problems"
5049
hadoop_add_subcommand "rbfbalance" client "move directories and files across router-based federation namespaces"
@@ -166,9 +165,6 @@ function hadoopcmd_case
166165
HADOOP_SECURE_CLASSNAME='org.apache.hadoop.registry.server.dns.PrivilegedRegistryDNSStarter'
167166
HADOOP_CLASSNAME='org.apache.hadoop.registry.server.dns.RegistryDNSServer'
168167
;;
169-
trace)
170-
HADOOP_CLASSNAME=org.apache.hadoop.tracing.TraceAdmin
171-
;;
172168
version)
173169
HADOOP_CLASSNAME=org.apache.hadoop.util.VersionInfo
174170
;;

0 commit comments

Comments
 (0)