Skip to content

Commit dd4643c

Browse files
authored
Merge branch 'apache:trunk' into YARN-11350-V2
2 parents 768f524 + 7d39abd commit dd4643c

File tree

38 files changed

+1420
-367
lines changed

38 files changed

+1420
-367
lines changed

LICENSE-binary

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ com.google.guava:guava:27.0-jre
241241
com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava
242242
com.microsoft.azure:azure-storage:7.0.0
243243
com.nimbusds:nimbus-jose-jwt:9.8.1
244-
com.squareup.okhttp3:okhttp:4.9.3
245-
com.squareup.okio:okio:1.6.0
244+
com.squareup.okhttp3:okhttp:4.10.0
245+
com.squareup.okio:okio:3.2.0
246246
com.zaxxer:HikariCP:4.0.3
247247
commons-beanutils:commons-beanutils:1.9.3
248248
commons-cli:commons-cli:1.2

hadoop-client-modules/hadoop-client-runtime/pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@
157157
<exclude>org.bouncycastle:*</exclude>
158158
<!-- Leave snappy that includes native methods which cannot be relocated. -->
159159
<exclude>org.xerial.snappy:*</exclude>
160+
<!-- leave out kotlin classes -->
161+
<exclude>org.jetbrains.kotlin:*</exclude>
160162
</excludes>
161163
</artifactSet>
162164
<filters>

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,11 @@
383383
<artifactId>mockwebserver</artifactId>
384384
<scope>test</scope>
385385
</dependency>
386+
<dependency>
387+
<groupId>com.squareup.okio</groupId>
388+
<artifactId>okio-jvm</artifactId>
389+
<scope>test</scope>
390+
</dependency>
386391
<dependency>
387392
<groupId>dnsjava</groupId>
388393
<artifactId>dnsjava</artifactId>

hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableGaugeFloat.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ private final boolean compareAndSet(float expect, float update) {
6969

7070
private void incr(float delta) {
7171
while (true) {
72-
float current = value.get();
72+
float current = Float.intBitsToFloat(value.get());
7373
float next = current + delta;
7474
if (compareAndSet(current, next)) {
7575
setChanged();

hadoop-common-project/hadoop-common/src/main/resources/core-default.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2166,6 +2166,13 @@ The switch to turn S3A auditing on or off.
21662166
<description>The AbstractFileSystem for gs: uris.</description>
21672167
</property>
21682168

2169+
<property>
2170+
<name>fs.azure.enable.readahead</name>
2171+
<value>false</value>
2172+
<description>Disable readahead/prefetching in AbfsInputStream.
2173+
See HADOOP-18521</description>
2174+
</property>
2175+
21692176
<property>
21702177
<name>io.seqfile.compress.blocksize</name>
21712178
<value>1000000</value>

hadoop-common-project/hadoop-common/src/site/markdown/DeprecatedProperties.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ The following table lists the configuration property names that are deprecated i
208208
| mapred.task.profile.params | mapreduce.task.profile.params |
209209
| mapred.task.profile.reduces | mapreduce.task.profile.reduces |
210210
| mapred.task.timeout | mapreduce.task.timeout |
211-
| mapred.tasktracker.indexcache.mb | mapreduce.tasktracker.indexcache.mb |
211+
| mapred.tasktracker.indexcache.mb | mapreduce.reduce.shuffle.indexcache.mb |
212+
| mapreduce.tasktracker.indexcache.mb | mapreduce.reduce.shuffle.indexcache.mb |
212213
| mapred.tasktracker.map.tasks.maximum | mapreduce.tasktracker.map.tasks.maximum |
213214
| mapred.tasktracker.memory\_calculator\_plugin | mapreduce.tasktracker.resourcecalculatorplugin |
214215
| mapred.tasktracker.memorycalculatorplugin | mapreduce.tasktracker.resourcecalculatorplugin |

hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/metrics2/lib/TestMutableMetrics.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
package org.apache.hadoop.metrics2.lib;
2020

21+
import static org.apache.hadoop.metrics2.impl.MsInfo.Context;
2122
import static org.apache.hadoop.metrics2.lib.Interns.info;
2223
import static org.apache.hadoop.test.MetricsAsserts.*;
2324
import static org.mockito.AdditionalMatchers.eq;
@@ -500,4 +501,15 @@ public void testMutableQuantilesEmptyRollover() throws Exception {
500501
verify(mb, times(2)).addGauge(
501502
info("FooNumOps", "Number of ops for stat with 5s interval"), (long) 0);
502503
}
504+
505+
/**
506+
* Test {@link MutableGaugeFloat#incr()}.
507+
*/
508+
@Test(timeout = 30000)
509+
public void testMutableGaugeFloat() {
510+
MutableGaugeFloat mgf = new MutableGaugeFloat(Context, 3.2f);
511+
assertEquals(3.2f, mgf.value(), 0.0);
512+
mgf.incr();
513+
assertEquals(4.2f, mgf.value(), 0.0);
514+
}
503515
}

hadoop-hdfs-project/hadoop-hdfs-client/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd">
3737
<dependency>
3838
<groupId>com.squareup.okhttp3</groupId>
3939
<artifactId>okhttp</artifactId>
40+
<exclusions>
41+
<exclusion>
42+
<groupId>com.squareup.okio</groupId>
43+
<artifactId>okio-jvm</artifactId>
44+
</exclusion>
45+
</exclusions>
46+
</dependency>
47+
<dependency>
48+
<groupId>com.squareup.okio</groupId>
49+
<artifactId>okio-jvm</artifactId>
4050
</dependency>
4151
<dependency>
4252
<groupId>org.jetbrains.kotlin</groupId>

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsDatasetImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ public void addVolume(final StorageLocation location,
520520

521521
for (final NamespaceInfo nsInfo : nsInfos) {
522522
String bpid = nsInfo.getBlockPoolID();
523-
try (AutoCloseDataSetLock l = lockManager.writeLock(LockLevel.BLOCK_POOl, bpid)) {
523+
try {
524524
fsVolume.addBlockPool(bpid, this.conf, this.timer);
525525
fsVolume.getVolumeMap(bpid, tempVolumeMap, ramDiskReplicaTracker);
526526
} catch (IOException e) {

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSEditLogLoader.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -912,6 +912,7 @@ private long applyEditLogOp(FSEditLogOp op, FSDirectory fsDir,
912912
fsNamesys.getFSImage().updateStorageVersion();
913913
fsNamesys.getFSImage().renameCheckpoint(NameNodeFile.IMAGE_ROLLBACK,
914914
NameNodeFile.IMAGE);
915+
fsNamesys.setNeedRollbackFsImage(false);
915916
break;
916917
}
917918
case OP_ADD_CACHE_DIRECTIVE: {

0 commit comments

Comments
 (0)