8377 Commits

Author SHA1 Message Date
Ayush Saxena
6cd9290401 HDFS-14647. NPE during secure namenode startup. Contributed by Fengnan Li.
(cherry picked from commit 62deab17a33cef723d73f8d8b9e37e5bddbc1813)
2020-03-25 17:12:52 -07:00
Eric Yang
ba6b3a3848 HDFS-14434. Ignore user.name query parameter in secure WebHDFS.
Contributed by KWON BYUNGCHANG

(cherry picked from commit d78854b928bb877f26b11b5b212a100a79941f35)

 Conflicts:
	hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/web/TestWebHdfsTokens.java
2020-03-25 17:12:01 -07:00
Giovanni Matteo Fumarola
eca7bc7ac4 HDFS-14006. Refactor name node to allow different token verification implementations. Contributed by CR Hota.
(cherry picked from commit 00d5e631b596f8712600879366e5283829e7ee5d)
2020-03-25 17:06:17 -07:00
Isa Hekmatizadeh
152cbc6457 HDFS-15219. DFS Client will stuck when ResponseProcessor.run throw Error (#1902). Contributed by zhengchenyu.
(cherry picked from commit d9c4f1129c0814ab61fce6ea8baf4b272f84c252)
2020-03-25 16:52:52 -07:00
Ayush Saxena
1e3b0df6ab HDFS-15158. The number of failed volumes mismatch with volumeFailures of Datanode metrics. Contributed by Yang Yun.
(cherry picked from commit 6191d4b4a0919863fda78e549ab6c60022e3ebc2)
2020-03-25 16:41:48 -07:00
Yiqun Lin
26b51f3e22 HDFS-14986. ReplicaCachingGetSpaceUsed throws ConcurrentModificationException. Contributed by Aiphago.
(cherry picked from commit 2b452b4e6063072b2bec491edd3f412eb7ac21f3)
2020-03-25 16:31:42 -07:00
Ayush Saxena
853eafa81a HDFS-15223. FSCK fails if one namenode is not available. Contributed by Ayush Saxena.
(cherry picked from commit bb41ddaf1e0c9bf44830b2cf0ac653b7354abf46)
2020-03-25 16:31:34 -07:00
Akira Ajisaka
1bbbef38d0
HDFS-15232. Fix libhdfspp test failures with GCC 7. (#1906)
(cherry picked from commit f59f6891c8bf70bdddc1f2535588bea41155b480)
2020-03-24 11:38:12 +09:00
Wei-Chiu Chuang
1d55e1e229 HDFS-15208. Suppress bogus AbstractWadlGeneratorGrammarGenerator in KMS stderr in hdfs.
Contributed by Wei-Chiu Chuang.

Change-Id: I7abeaf4b65e2a4758356aa69ab8930f7e993077d
(cherry picked from commit 096533c2dc0afd51367030725d797480a22ba7e2)

 Conflicts:
	hadoop-hdfs-project/hadoop-hdfs/src/test/resources/log4j.properties
2020-03-18 09:58:35 -07:00
Surendra Singh Lilhore
e9916052b1 HDFS-15211. EC: File write hangs during close in case of Exception during updatePipeline. Contributed by Ayush Saxena. 2020-03-15 20:53:45 +05:30
Ayush Saxena
87532b6e3f HDFS-15197. [SBN read] Change ObserverRetryOnActiveException log to debug. Contributed by Chen Liang. 2020-03-15 16:31:20 +05:30
S O'Donnell
b7f33e2e37 HDFS-15216. Wrong Use Case of -showprogress in fsck. Contributed by Ravuri Sushma sree.
(cherry picked from commit 25497799cb60a0550355d65466dafb72ee5b387a)
2020-03-13 15:34:20 +00:00
Surendra Singh Lilhore
269aa25a73 HDFS-14442. Disagreement between HAUtil.getAddressOfActive and RpcInvocationHandler.getConnectionId. Contributed by Ravuri Sushma sree. 2020-03-12 19:10:27 +05:30
Surendra Singh Lilhore
57f887a529 HDFS-15135. EC : ArrayIndexOutOfBoundsException in BlockRecoveryWorker#RecoveryTaskStriped. Contributed by Ravuri Sushma sree. 2020-03-10 23:56:42 +05:30
Inigo Goiri
1d89ba72f6 HDFS-15204. TestRetryCacheWithHA testRemoveCacheDescriptor fails intermittently. Contributed by Ahmed Hussein.
(cherry picked from commit 1d4d0fcbe1e352b95c93dc016d3674db1126fb25)
2020-03-04 10:04:22 -08:00
Akshay Nehe
369f4f9c58
HADOOP-16899. Update HdfsDesign.md to reduce ambiguity. (#1871)
(cherry picked from commit bbd704bb828577a1f0afe5fb0ac358fb7c5af446)
2020-03-04 11:12:00 +09:00
Surendra Singh Lilhore
d33aec93f1 HDFS-15199. NPE in BlockSender. Contributed by Ayush Saxena. 2020-02-28 18:43:57 +05:30
Ayush Saxena
9acbbd885c HDFS-12999. When reach the end of the block group, it may not need to flush all the data packets(flushAllInternals) twice. Contributed by lufei and Fei Hui.
(cherry picked from commit df622cf4a32ee172ded6c4b3b97a1e49befc4f10)
2020-02-27 16:36:53 -08:00
Masatake Iwasaki
e1ff3b2f97 HDFS-15068. DataNode could meet deadlock if invoke refreshVolumes when register. Contributed by Aiphago.
Signed-off-by: Masatake Iwasaki <iwasakims@apache.org>
(cherry picked from commit 037ec8cfb1406ea3a8225a1b6306c2e78440353b)
2020-02-27 16:36:46 -08:00
Konstantin V Shvachko
c82e20f9f8 HDFS-14731. [FGL] Remove redundant locking on NameNode. Contributed by Konstantin V Shvachko.
(cherry picked from commit ecbcb058b8bc0fbc3903acb56814c6d9608bc396)
2020-02-27 15:29:31 -08:00
Istvan Fajth
e42ac486e7 HDFS-14668 Support Fuse with Users from multiple Security Realms (#1739)
(cherry picked from commit 57aa048516f5c5fe02441d213b52ce1bbeddf823)
2020-02-27 07:49:31 -08:00
Kihwal Lee
27cfda708e HDFS-15147. LazyPersistTestCase wait logic is error-prone. Contributed
by Ahmed Hussein.
2020-02-27 09:17:44 -06:00
Kihwal Lee
de7edf58bd Revert "HADOOP-16888. [JDK11] Support JDK11 in the precommit job. Contributed by"
Incorrect commit message

This reverts commit 749d7c0027b8978f9c07af04031a8fad6d7c18e1.
2020-02-27 09:16:55 -06:00
Kihwal Lee
749d7c0027 HADOOP-16888. [JDK11] Support JDK11 in the precommit job. Contributed by
Ahmed Hussein.
2020-02-27 09:13:20 -06:00
Ayush Saxena
b182dd809c HDFS-15111. stopStandbyServices() should log which service state it is transitioning from. Contributed by Xieming Li. 2020-02-27 04:02:55 +05:30
Stephen O'Donnell
2377649cdb HDFS-14861. Reset LowRedundancyBlocks Iterator periodically. Contributed by Stephen O'Donnell.
Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org>
(cherry picked from commit 900430b9907b590ed2d73a0d68f079c7f4d754b1)
2020-02-25 13:29:03 -08:00
Wei-Chiu Chuang
f9437b1817 HDFS-15174. Optimize ReplicaCachingGetSpaceUsed by reducing unnecessary io operations. Contributed by Lisheng Sun.
(cherry picked from commit cb4daeaad95470125c59ccb80b988261ae83d534)
2020-02-24 13:37:48 -08:00
Ayush Saxena
af46658baf HDFS-15166. Remove redundant field fStream in ByteStringLog. Contributed by Xieming Li. 2020-02-24 20:17:31 +05:30
Konstantin V Shvachko
769397201a HDFS-15185. StartupProgress reports edits segments until the entire startup completes. Contributed by Konstantin V Shvachko.
(cherry picked from commit 6f84269bcd5cdb08ca68b2d8276f66d34a2a7a0d)
2020-02-21 10:54:20 -08:00
Masatake Iwasaki
610805ec72 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
2020-02-21 13:40:11 +09:00
xiaoxiaopan118
b5321f1600
HDFS-15173. RBF: Delete repeated configuration 'dfs.federation.router.metrics.enable' (#1849)
(cherry picked from commit 439d935e1df601ed998521443fbe6752040e7a84)
2020-02-17 15:57:15 +09:00
Ayush Saxena
9a351e837f HDFS-15164. Fix TestDelegationTokensWithHA. Contributed by Ayush Saxena. 2020-02-14 22:15:12 +05:30
Surendra Singh Lilhore
e13ea1b094 HDFS-15086. Block scheduled counter never get decremet if the block got deleted before replication. Contributed by hemanthboyina. 2020-02-13 22:52:50 +05:30
Ayush Saxena
9a1ce410f6 HDFS-15161. When evictableMmapped or evictable size is zero, do not throw NoSuchElementException in ShortCircuitCache#close(). Contributed by Lisheng Sun 2020-02-12 20:29:09 +05:30
Kihwal Lee
f1840669cf HDFS-14758. Make lease hard limit configurable and reduce the default.
Contributed by hemanthboyina.

(cherry picked from commit 9b8a78d97bfd825ce840c6033371c7f10e49a5b8)

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/test/java/org/apache/hadoop/hdfs/TestFileAppend4.java
2020-02-11 14:50:10 -06:00
Ayush Saxena
7be104a9be HDFS-15115. Namenode crash caused by NPE in BlockPlacementPolicyDefault when dynamically change logger to debug. Contributed by wangzhixiang 2020-02-08 10:41:15 +05:30
Chen Liang
226cd3977b HDFS-15148. dfs.namenode.send.qop.enabled should not apply to primary NN port. Contributed by Chen Liang. 2020-02-04 12:34:19 -08:00
Kihwal Lee
5257afb153 HDFS-12491. Support wildcard in CLASSPATH for libhdfs. Contributed by Muhammad Samir Khan.
(cherry picked from commit 10a60fbe20bb08cdd71076ea9bf2ebb3a2f6226e)
2020-02-04 12:24:12 -06:00
Stephen O'Donnell
e89436b183 HDFS-7175. Client-side SocketTimeoutException during Fsck. Contributed by Stephen O'Donnell, Akira Ajisaka.
Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org>
Co-authored-by: Akira Ajisaka <aajisaka@apache.org>
(cherry picked from commit 1e3a0b0d931676b191cb4813ed1a283ebb24d4eb)
2020-01-31 16:13:42 -08:00
Inigo Goiri
2c8c6e8e22 HDFS-13179. TestLazyPersistReplicaRecovery#testDnRestartWithSavedReplicas fails intermittently. Contributed by Ahmed Hussein.
(cherry picked from commit 1839c467f60cbb8592d446694ec3d7710cda5142)
2020-01-31 11:24:37 -08:00
Kihwal Lee
7034482222 HDFS-15146. TestBalancerRPCDelay.testBalancerRPCDelay fails
intermittently. Contributed by Ahmed Hussein.

(cherry picked from commit 799d4c1cf4e8fe78eb9ab607a0449cdd075041fb)
2020-01-29 11:01:12 -06:00
Chen Liang
9813ba2ebc [SBN Read] Slow clients when Observer reads are enabled but there are no Observers on the cluster. Contributed by Chen Liang 2020-01-28 16:36:27 -08:00
Ayush Saxena
8a1b02f44c HDFS-14993. checkDiskError doesn't work during datanode startup. Contributed by Yang Yun. 2020-01-28 23:12:44 +05:30
Kihwal Lee
1bb9667137 HDFS-15119. Allow expiration of cached locations in DFSInputStream.
Contributed by Ahmed Hussein.

(cherry picked from commit d10f77e3c91225f86ed9c0f0e6a9adf2e1434674)
2020-01-24 09:21:09 -06:00
Kihwal Lee
4842708320 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
2020-01-22 09:26:47 -06:00
Akira Ajisaka
d4f75e2798
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:03:56 +09:00
Wei-Chiu Chuang
aa3c96474f HDFS-15097. Purge log in KMS and HttpFS. Contributed by Doris Gu.
(cherry picked from commit 6b86a5110e4b3f45bf55f97bd402680bf26cefb9)
2020-01-13 10:49:26 -08:00
Ayush Saxena
d3c4c8be6a HDFS-14578. AvailableSpaceBlockPlacementPolicy always prefers local node. Contributed by Ayush Saxena. 2020-01-11 10:34:01 +05:30
Chen Liang
1ee90d6731 HDFS-15099. [SBN Read] checkOperation(WRITE) should throw ObserverRetryOnActiveException for ObserverNode. Contributed by Chen Liang.
(cherry picked from commit 26a969ec734dbdbf1d544f486dfa33f15c291789)
2020-01-10 17:17:11 -08:00
Kihwal Lee
59260a0e0e HDFS-15095. Fix TestDecommissioningStatus. Contributed by Ahmed Hussein.
(cherry picked from commit 5fb901ac4017b4f13b089ecd920e864cd53ad3a6)
2020-01-10 12:46:49 -06:00