5175 Commits

Author SHA1 Message Date
Eric Yang
e81002bcb1
SPNEGO TLS verification
Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
(cherry picked from commit 81d8a887b0406380e469c76ed2e41022a6372dd7)

 Conflicts:
	hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/WebHdfsFileSystem.java
2020-06-15 11:15:03 +09:00
Kihwal Lee
17109758dd HDFS-12453. TestDataNodeHotSwapVolumes fails in trunk Jenkins runs. Contributed by Jim Brennan and Lei Xu. 2020-06-12 16:19:36 -05:00
Toshihiro Suzuki
d1f4c8f10f
HDFS-15386. ReplicaNotFoundException keeps happening in DN after removing multiple DN's data directories (#2054)
Contributed by Toshihiro Suzuki.
2020-06-09 21:44:27 +01:00
Inigo Goiri
b411fcee86 HDFS-14054. TestLeaseRecovery2: testHardLeaseRecoveryAfterNameNodeRestart2 and testHardLeaseRecoveryWithRenameAfterNameNodeRestart are flaky. Contributed by Zsolt Venczel.
(cherry picked from commit 993c2140ccfb4c6dfd09c0c686b85a4b58cb39a2)
2020-06-03 14:16:38 -07:00
Kihwal Lee
54c7d23e58 HDFS-14931. hdfs crypto commands limit column width. Contributed by Eric Badger
(cherry picked from commit 9ef6ed9c1c83b9752e772ece7a716a33045752bf)
2020-06-02 09:52:06 -05:00
cnauroth
73ae3cee85 HDFS-9376. TestSeveralNameNodes fails occasionally. Contributed by Masatake Iwasaki.
(cherry picked from commit 84a81477912644290173518d566b586305b85bf7)

 Conflicts:
	hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
2020-05-20 08:22:47 +09:00
Chen Liang
d0504cf74d HDFS-15293. Relax the condition for accepting a fsimage when receiving a checkpoint. Contributed by Chen Liang 2020-05-18 12:10:05 -07:00
Yiqun Lin
e6374f031a HDFS-15264. Backport Datanode detection to branch-2.10. Contributed by Lisheng Sun. 2020-05-17 11:59:10 +08:00
Inigo Goiri
b5eb08a0d9 HDFS-15038. TestFsck testFsckListCorruptSnapshotFiles is failing in trunk. Contributed by hemanthboyina. 2020-05-14 11:26:31 -07:00
Akira Ajisaka
14bd270ca0
Revert "SPNEGO TLS verification"
This reverts commit 28715b584ab25dedc600cc2d5d22866865026bf7.
2020-05-13 17:17:07 +09:00
Konstantin V Shvachko
4aac3406f6 HDFS-15323. StandbyNode fails transition to active due to insufficient transaction tailing. Contributed by Konstantin V Shvachko.
(cherry picked from commit ebb878bab991c242b5089a18881aa10abf318ea0)
2020-05-04 10:57:32 -07:00
Eric Yang
28715b584a
SPNEGO TLS verification
Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
(cherry picked from commit ba66f3b454a5f6ea84f2cf7ac0082c555e2954a7)

 Conflicts:
	hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/WebHdfsFileSystem.java
2020-05-02 22:03:53 +09:00
Chen Liang
4cf7bbf043 HDFS-14647. NPE during secure namenode startup. Contributed by Fengnan Li. 2020-05-01 11:40:37 -07:00
Akira Ajisaka
b22fb90350
HDFS-15302. Backport HDFS-15286 to branch-2.x. Contributed by hemanthboyina. 2020-05-01 15:11:08 +09:00
Kihwal Lee
be6070081d HDFS-10499. TestNameNodeMetadataConsistency#testGenerationStampInFuture Fails Intermittently. Contributed by Yiqun Lin and Ahmed Hussein. 2020-04-30 16:29:40 -05:00
Mingliang Liu
18f5997b95
HDFS-15297. TestNNHandlesBlockReportPerStorage::blockReport_02 fails intermittently. Contributed by Ayush Saxena 2020-04-25 15:50:00 -07:00
Dhiraj
23b15089ad
HDFS-15281. Make sure ZKFC uses dfs.namenode.rpc-address to bind to host address (#1964)
Contributed by Dhiraj Hegde.

Signed-off-by: Mingliang Liu <liuml07@apache.org>
Signed-off-by: Inigo Goiri <inigoiri@apache.org>
2020-04-25 13:54:26 -07:00
Mingliang Liu
4ebe78496f
HDFS-15276. Concat on INodeRefernce fails with illegal state exception. Contributed by hemanthboyina 2020-04-22 14:53:15 -07:00
Stephen O'Donnell
9ec141c77f HDFS-15283. Cache pool MAXTTL is not persisted and restored on cluster restart. Contributed by Stephen O'Donnell.
Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org>
(cherry picked from commit 3481895f8a9ea9f6e217a0ba158c48da89b3faf2)
(cherry picked from commit aaad947c740c91c36139f3f0569ae78b53bca682)
(cherry picked from commit 041c93a26cd0ff705bea9d6283951702cf2cf1c2)
(cherry picked from commit 0ea8f3a19cd0b841dda6ba5c4e19887d9fc9cbb4)
2020-04-16 20:19:38 -07:00
Chen Liang
70c2a2992f HDFS-15036. Active NameNode should not silently fail the image transfer. Contributed by Chen Liang. 2020-04-16 11:24:22 -07:00
Masatake Iwasaki
00b313d6ff HDFS-15048. Fix findbug in DirectoryScanner. Contributed by Sean Chow. 2020-04-13 16:00:50 +09:00
Masatake Iwasaki
01ed6832f4 HDFS-14476. lock too long when fix inconsistent blocks between disk and in-memory. Contributed by Sean Chow. 2020-04-13 16:00:50 +09:00
Ayush Saxena
5854aa4ddc HDFS-15197. [SBN read] Change ObserverRetryOnActiveException log to debug. Contributed by Chen Liang. 2020-03-15 16:32:29 +05:30
Inigo Goiri
4069d5d438 HDFS-11396. TestNameNodeMetadataConsistency#testGenerationStampInFuture timed out. Contributed by Ayush Saxena 2020-03-13 15:39:25 -07:00
Masatake Iwasaki
40c755d809 HDFS-15077. Fix intermittent failure of TestDFSClientRetries#testLeaseRenewSocketTimeout. 2020-03-12 12:49:38 +09:00
Inigo Goiri
d547630804 HDFS-15204. TestRetryCacheWithHA testRemoveCacheDescriptor fails intermittently. Contributed by Ahmed Hussein. 2020-03-04 10:07:08 -08:00
Wei-Chiu Chuang
024c33384b Revert "HDFS-15111. stopStandbyServices() should log which service state it is transitioning from. Contributed by Xieming Li."
This reverts commit cb6b6b43200f0c339c7f0878dfa2b9c54bac64e7.
2020-03-02 15:43:13 -08:00
Ayush Saxena
cb6b6b4320 HDFS-15111. stopStandbyServices() should log which service state it is transitioning from. Contributed by Xieming Li.
(cherry picked from commit b182dd809cf42aed66806901631ad6062ca0820c)
(cherry picked from commit 7bfa123d583d94607600e38bd754e38fbafc64d2)
2020-03-02 15:39:21 -08:00
Kihwal Lee
232e9f8ee1 HDFS-15147. LazyPersistTestCase wait logic is error-prone. Contributed
by Ahmed Hussein.
2020-02-27 09:58:44 -06:00
Kihwal Lee
e80b5ec58d Revert "HDFS-6874. Add GETFILEBLOCKLOCATIONS operation to HttpFS. Contributed by Weiwei Yang"
This reverts commit b4a108fa9f38ee028978474fe6c298bbd88fda7a.

Conflicts:
	hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/client/HttpFSFileSystem.java
	hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/FSOperations.java
	hadoop-hdfs-project/hadoop-hdfs-httpfs/src/test/java/org/apache/hadoop/fs/http/client/BaseTestHttpFSWith.java
2020-02-25 11:33:20 -06:00
Ayush Saxena
a5c3620bc2 HDFS-15166. Remove redundant field fStream in ByteStringLog. Contributed by Xieming Li. 2020-02-24 20:18:10 +05:30
Konstantin V Shvachko
9c2c14f36d HDFS-15185. StartupProgress reports edits segments until the entire startup completes. Contributed by Konstantin V Shvachko.
(cherry picked from commit 6f84269bcd5cdb08ca68b2d8276f66d34a2a7a0d)
2020-02-21 11:02:04 -08:00
Masatake Iwasaki
3fc1c44974 HDFS-15052. WebHDFS getTrashRoot leads to OOM due to FileSystem object creation. (#1758)
(cherry picked from commit 2338d25dc7150d75fbda84cc95422380b5622224)

 Conflicts:
        hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/web/TestWebHDFS.java

(cherry picked from commit 610805ec7245769aebb36e52725522c42cb3dd88)

Conflicts:
	hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSUtilClient.java
	hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/web/resources/NamenodeWebHdfsMethods.java
	hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/web/TestWebHDFS.java
2020-02-21 14:27:26 +09:00
Ayush Saxena
ce06503599 HDFS-15115. Namenode crash caused by NPE in BlockPlacementPolicyDefault when dynamically change logger to debug. Contributed by wangzhixiang 2020-02-19 20:56:08 +05:30
Hanisha Koneru
73ab4a42a6
HDFS-10659. Namenode crashes after Journalnode re-installation in an HA cluster due to missing paxos directory. Contributed by star, Hanisha Koneru.
Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org>
(cherry picked from commit 7217494f40dd99068a3f3b155261b1dac6c67828)
2020-02-19 18:33:10 +09:00
Kihwal Lee
38e97c2061 HDFS-12459. Fix revert: Add new op GETFILEBLOCKLOCATIONS to WebHDFS REST API. Contributed by Weiwei Yang.
Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org>
(cherry picked from commit 3ead525c71cba068e7abf1c76ad629bfeec10852)

Conflicts:
	hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/web/JsonUtil.java
	hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/WebHDFS.md
2020-02-17 15:49:48 -06:00
Kihwal Lee
e847768c3f Revert "HDFS-11156. Add new op GETFILEBLOCKLOCATIONS to WebHDFS REST API. Contributed by Weiwei Yang."
This reverts commit d4ca1c5226521c4f9c609bb8ec9f64a63bd8bef1.

-JsonUtil not reverted. A later commit in httpfs uses the new methods.
-jackson databind was introduced in pom.xml. This is not reverted as
later changes are using it.
2020-02-17 15:06:00 -06:00
Ayush Saxena
9e34e6a6e8 HDFS-15164. Fix TestDelegationTokensWithHA. Contributed by Ayush Saxena. 2020-02-14 22:08:05 +05:30
Ayush Saxena
1f3c11276e HDFS-15161. When evictableMmapped or evictable size is zero, do not throw NoSuchElementException in ShortCircuitCache#close(). Contributed by Lisheng Sun 2020-02-12 20:34:54 +05:30
Kihwal Lee
2861936228 HDFS-14758. Make lease hard limit configurable and reduce the default.
Contributed by hemanthboyina.

(cherry picked from commit 9b8a78d97bfd825ce840c6033371c7f10e49a5b8)
(cherry picked from commit f1840669cfc92c033521bf95989479523e2a649d)
(cherry picked from commit bf09bfa2db7c0790f72d6d7d357e0b80c9eff1f2)

Conflicts:
	hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/client/impl/DfsClientConf.java
	hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSConfigKeys.java
	hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/LeaseManager.java
	hadoop-hdfs-project/hadoop-hdfs/src/main/resources/hdfs-default.xml
2020-02-11 15:31:01 -06:00
Chen Liang
b97fdb7b4c HDFS-15148. dfs.namenode.send.qop.enabled should not apply to primary NN port. Contributed by Chen Liang. 2020-02-04 12:59:31 -08:00
Kihwal Lee
fb8ee3228e HDFS-12491. Support wildcard in CLASSPATH for libhdfs. Contributed by Muhammad Samir Khan.
(cherry picked from commit 10a60fbe20bb08cdd71076ea9bf2ebb3a2f6226e)
2020-02-04 12:38:05 -06:00
Wei-Chiu Chuang
1d0e2ba335 HDFS-15046. Backport HDFS-7060 to branch-2.10. Contributed by Lisheng Sun. 2020-01-31 16:16:31 -08:00
Inigo Goiri
9f7820e729 HDFS-13179. TestLazyPersistReplicaRecovery#testDnRestartWithSavedReplicas fails intermittently. Contributed by Ahmed Hussein. 2020-01-31 11:37:07 -08:00
Chen Liang
29572686c4 HDFS-15118. [SBN Read] Slow clients when Observer reads are enabled but there are no Observers on the cluster. Contributed by Chen Liang 2020-01-29 12:44:12 -08:00
Kihwal Lee
d9198b2d1b HDFS-15146. TestBalancerRPCDelay.testBalancerRPCDelay fails
intermittently. Contributed by Ahmed Hussein.
2020-01-29 11:07:50 -06:00
Kihwal Lee
0ead38b59a HDFS-14968. Add ability to log stale datanodes. Contributed by Ahmed Hussein.
(cherry picked from commit bd03053ea2f32ef982e37fbf2ffd679cb7dda797)

Conflicts:
	hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/HeartbeatManager.java

(cherry picked from commit 484270832064c84122348e663aaf5927ed411ebb)
2020-01-22 09:30:41 -06:00
Kihwal Lee
c5d43b65a9 HDFS-15125. Pull back HDFS-11353, HDFS-13993, HDFS-13945, and HDFS-14324
to branch-2.10. Contributed by Jim Brennan.
2020-01-21 09:59:14 -06:00
Akira Ajisaka
0c0be3b9f0
HADOOP-16808. Use forkCount and reuseForks parameters instead of forkMode in the config of maven surefire plugin. Contributed by Xieming Li.
(cherry picked from commit f6d20daf404fab28b596171172afa4558facb504)
2020-01-21 18:05:46 +09:00
Wei-Chiu Chuang
d5f7aa2285 HDFS-13339. Volume reference can't be released and may lead to deadlock when DataXceiver does a check volume. Contributed by Jim Brennan, Zsolt Venczel.
(cherry picked from commit c675719c3fb0fe5f6b0be624935fdf22bb228e0f)
2020-01-15 11:06:15 -08:00