Skip to content

Commit 8417487

Browse files
authored
Merge branch 'trunk' into HADOOP-19219
2 parents 9fcc536 + 9a9ad6c commit 8417487

File tree

149 files changed

+4654
-960
lines changed

Some content is hidden

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

149 files changed

+4654
-960
lines changed

.github/workflows/website.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,5 @@ jobs:
5656
publish_dir: ./staging/hadoop-project
5757
user_name: 'github-actions[bot]'
5858
user_email: 'github-actions[bot]@users.noreply.github.com'
59+
force_orphan: true
5960

LICENSE-binary

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,11 @@ com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.12.7
226226
com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.12.7
227227
com.fasterxml.uuid:java-uuid-generator:3.1.4
228228
com.fasterxml.woodstox:woodstox-core:5.4.0
229+
com.github.ben-manes.caffeine:caffeine:2.9.3
229230
com.github.davidmoten:rxjava-extras:0.8.0.17
230231
com.github.stephenc.jcip:jcip-annotations:1.0-1
231-
com.google:guice:4.0
232-
com.google:guice-servlet:4.0
232+
com.google:guice:5.1.0
233+
com.google:guice-servlet:5.1.0
233234
com.google.api.grpc:proto-google-common-protos:1.0.0
234235
com.google.code.gson:2.9.0
235236
com.google.errorprone:error_prone_annotations:2.2.0
@@ -361,7 +362,7 @@ org.objenesis:objenesis:2.6
361362
org.xerial.snappy:snappy-java:1.1.10.4
362363
org.yaml:snakeyaml:2.0
363364
org.wildfly.openssl:wildfly-openssl:1.1.3.Final
364-
software.amazon.awssdk:bundle:jar:2.24.6
365+
software.amazon.awssdk:bundle:jar:2.25.53
365366

366367

367368
--------------------------------------------------------------------------------
@@ -481,9 +482,9 @@ com.microsoft.azure:azure-cosmosdb-gateway:2.4.5
481482
com.microsoft.azure:azure-data-lake-store-sdk:2.3.3
482483
com.microsoft.azure:azure-keyvault-core:1.0.0
483484
com.microsoft.sqlserver:mssql-jdbc:6.2.1.jre7
484-
org.bouncycastle:bcpkix-jdk18on:1.77
485-
org.bouncycastle:bcprov-jdk18on:1.77
486-
org.bouncycastle:bcutil-jdk18on:1.77
485+
org.bouncycastle:bcpkix-jdk18on:1.78.1
486+
org.bouncycastle:bcprov-jdk18on:1.78.1
487+
org.bouncycastle:bcutil-jdk18on:1.78.1
487488
org.checkerframework:checker-qual:2.5.2
488489
org.codehaus.mojo:animal-sniffer-annotations:1.21
489490
org.jruby.jcodings:jcodings:1.0.13

dev-support/docker/Dockerfile_centos_7

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ COPY pkg-resolver pkg-resolver
3030
RUN chmod a+x pkg-resolver/*.sh pkg-resolver/*.py \
3131
&& chmod a+r pkg-resolver/*.json
3232

33+
######
34+
# Centos 7 has reached its EOL and the packages
35+
# are no longer available on mirror.centos.org site.
36+
# Please see https://www.centos.org/centos-linux-eol/
37+
######
38+
RUN pkg-resolver/set-vault-as-baseurl-centos.sh centos:7
39+
3340
######
3441
# Install packages from yum
3542
######
@@ -38,8 +45,13 @@ RUN yum update -y \
3845
&& yum groupinstall -y "Development Tools" \
3946
&& yum install -y \
4047
centos-release-scl \
41-
python3 \
42-
&& yum install -y $(pkg-resolver/resolve.py centos:7)
48+
python3
49+
50+
# Apply the script again because centos-release-scl creates new YUM repo files
51+
RUN pkg-resolver/set-vault-as-baseurl-centos.sh centos:7
52+
53+
# hadolint ignore=DL3008,SC2046
54+
RUN yum install -y $(pkg-resolver/resolve.py centos:7)
4355

4456
# Set GCC 9 as the default C/C++ compiler
4557
RUN echo "source /opt/rh/devtoolset-9/enable" >> /etc/bashrc

dev-support/docker/pkg-resolver/set-vault-as-baseurl-centos.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fi
2424
if [ "$1" == "centos:7" ] || [ "$1" == "centos:8" ]; then
2525
cd /etc/yum.repos.d/ || exit &&
2626
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* &&
27-
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* &&
27+
sed -i 's|# *baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* &&
2828
yum update -y &&
2929
cd /root || exit
3030
else

hadoop-cloud-storage-project/hadoop-cos/src/site/markdown/cloud-storage/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Linux kernel 2.6+
8686
- joda-time (version 2.9.9 recommended)
8787
- httpClient (version 4.5.1 or later recommended)
8888
- Jackson: jackson-core, jackson-databind, jackson-annotations (version 2.9.8 or later)
89-
- bcprov-jdk18on (version 1.77 recommended)
89+
- bcprov-jdk18on (version 1.78.1 recommended)
9090

9191

9292
#### Configure Properties

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<dependencies>
4141
<dependency>
4242
<groupId>org.apache.hadoop.thirdparty</groupId>
43-
<artifactId>hadoop-shaded-protobuf_3_23</artifactId>
43+
<artifactId>hadoop-shaded-protobuf_3_25</artifactId>
4444
</dependency>
4545
<dependency>
4646
<groupId>org.apache.hadoop</groupId>

hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/key/kms/KMSClientProvider.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -947,11 +947,7 @@ public void flush() throws IOException {
947947
@Override
948948
public void warmUpEncryptedKeys(String... keyNames)
949949
throws IOException {
950-
try {
951-
encKeyVersionQueue.initializeQueuesForKeys(keyNames);
952-
} catch (ExecutionException e) {
953-
throw new IOException(e);
954-
}
950+
encKeyVersionQueue.initializeQueuesForKeys(keyNames);
955951
}
956952

957953
@Override

hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/key/kms/ValueQueue.java

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,12 +269,24 @@ public ValueQueue(final int numValues, final float lowWaterMark, long expiry,
269269
* Initializes the Value Queues for the provided keys by calling the
270270
* fill Method with "numInitValues" values
271271
* @param keyNames Array of key Names
272-
* @throws ExecutionException executionException.
272+
* @throws IOException if initialization fails for any provided keys
273273
*/
274-
public void initializeQueuesForKeys(String... keyNames)
275-
throws ExecutionException {
274+
public void initializeQueuesForKeys(String... keyNames) throws IOException {
275+
int successfulInitializations = 0;
276+
ExecutionException lastException = null;
277+
276278
for (String keyName : keyNames) {
277-
keyQueues.get(keyName);
279+
try {
280+
keyQueues.get(keyName);
281+
successfulInitializations++;
282+
} catch (ExecutionException e) {
283+
lastException = e;
284+
}
285+
}
286+
287+
if (keyNames.length > 0 && successfulInitializations != keyNames.length) {
288+
throw new IOException(String.format("Failed to initialize %s queues for the provided keys.",
289+
keyNames.length - successfulInitializations), lastException);
278290
}
279291
}
280292

hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/BulkDeleteUtils.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ public static void validateBulkDeletePaths(Collection<Path> paths, int pageSize,
4848
}
4949

5050
/**
51-
* Check if a path is under a base path.
51+
* Check if a given path is the base path or under the base path.
5252
* @param p path to check.
5353
* @param basePath base path.
54-
* @return true if the path is under the base path.
54+
* @return true if the given path is the base path or under the base path.
5555
*/
5656
public static boolean validatePathIsUnderParent(Path p, Path basePath) {
57-
while (p.getParent() != null) {
58-
if (p.getParent().equals(basePath)) {
57+
while (p != null) {
58+
if (p.equals(basePath)) {
5959
return true;
6060
}
6161
p = p.getParent();

hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3581,7 +3581,15 @@ public static Class<? extends FileSystem> getFileSystemClass(String scheme,
35813581
throw new UnsupportedFileSystemException("No FileSystem for scheme "
35823582
+ "\"" + scheme + "\"");
35833583
}
3584-
LOGGER.debug("FS for {} is {}", scheme, clazz);
3584+
if (LOGGER.isDebugEnabled()) {
3585+
LOGGER.debug("FS for {} is {}", scheme, clazz);
3586+
final String jarLocation = ClassUtil.findContainingJar(clazz);
3587+
if (jarLocation != null) {
3588+
LOGGER.debug("Jar location for {} : {}", clazz, jarLocation);
3589+
} else {
3590+
LOGGER.debug("Class location for {} : {}", clazz, ClassUtil.findClassLocation(clazz));
3591+
}
3592+
}
35853593
return clazz;
35863594
}
35873595

0 commit comments

Comments
 (0)