Commit Graph

3231 Commits

Author SHA1 Message Date
Zhe Zhang bd2867cd39 HDFS-9339. Extend full test of KMS ACLs. Contributed by Daniel Templeton.
Change-Id: I61eeee8fa5e85250eabc1eef3d8c11f32700d6fb
2015-11-02 13:52:21 -08:00
Zhe Zhang a47c4e7819 HDFS-9329. TestBootstrapStandby#testRateThrottling is flaky because fsimage size is smaller than IO buffer size. Contributed by Zhe Zhang.
Conflicts:
	hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestBootstrapStandby.java

Change-Id: Iffa62547483c1d9dc82a196d5e8d0856b397217d
2015-11-02 10:32:28 -08:00
Kihwal Lee d65ca63c68 Fix CHANGES.txt
(cherry picked from commit 2529464f08)
2015-11-02 09:10:55 -06:00
Arpit Agarwal bb2ee9f8eb HDFS-9343. Empty caller context considered invalid. (Contributed by Mingliang Liu) 2015-11-01 15:35:11 -08:00
yliu caa5da06f2 Revert "HDFS-4937. ReplicationMonitor can infinite-loop in BlockPlacementPolicyDefault#chooseRandom(). Contributed by Kihwal Lee."
This reverts commit 0c7fd26302.
2015-10-31 16:23:26 +08:00
yliu 511e724fff Revert "fix CHANGES.txt"
This reverts commit 4c33f883c4.
2015-10-31 16:23:16 +08:00
Sangjin Lee b2d6ea5e18 Updated the 2.6.2 final release date.
(cherry picked from commit a4a6b5b4b4)
2015-10-30 18:49:21 -07:00
Jason Lowe 8dce482f61 Creating 2.6.3 entries in CHANGES.txt files.
(cherry picked from commit eadf7b3096)
2015-10-30 14:52:06 +00:00
Kihwal Lee 4c33f883c4 fix CHANGES.txt 2015-10-30 09:41:45 -05:00
Kihwal Lee 0c7fd26302 HDFS-4937. ReplicationMonitor can infinite-loop in BlockPlacementPolicyDefault#chooseRandom(). Contributed by Kihwal Lee.
(cherry picked from commit 43539b5ff4)
2015-10-30 09:30:11 -05:00
Andrew Wang 5e5e693a0a HDFS-9332. Fix Precondition failures from NameNodeEditLogRoller while saving namespace.
(cherry picked from commit 888c6245e2)
2015-10-29 11:30:52 -07:00
Zhe Zhang 30791cb0d0 HDFS-9229. Expose size of NameNode directory as a metric. Contributed by Surendra Singh Lilhore.
Conflicts:
	hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/ha/EditLogTailer.java

Change-Id: I5f5895bac4f7d7e66e95788765a514b80b9b6766
2015-10-29 11:21:57 -07:00
Vinayakumar B e3f1a02f50 HDFS-9044. Give Priority to FavouredNodes , before selecting nodes from FavouredNode's Node Group (Contributed by J.Andreina)
(cherry picked from commit 588baab160)
2015-10-29 11:44:52 +05:30
Vinayakumar B dea66a8392 HDFS-8545. Refactor FS#getUsed() to use ContentSummary and add an API to fetch the total file length from a specific path (Contributed by J.Andreina)
(cherry picked from commit 7d2d16f4ee)
2015-10-29 11:30:59 +05:30
Sangjin Lee 16db203a83 Set the release date for 2.6.2 2015-10-28 20:48:49 -07:00
Haohui Mai 9e911a2439 HDFS-9168. Move client side unit test to hadoop-hdfs-client. Contributed by Haohui Mai. 2015-10-28 15:54:53 -07:00
Zhe Zhang 986dc718d3 HDFS-9295. Add a thorough test of the full KMS code path. Contributed by Daniel Templeton.
Change-Id: Ife1abb2f8e9a30102c4f705c47646d9ac8328786
2015-10-28 14:36:56 -07:00
Kihwal Lee 75bc53a86a HDFS-9279. Decomissioned capacity should not be considered for configured/used capacity. Contributed by Kihu Shukla .
(cherry picked from commit 19a77f5466)
2015-10-28 11:59:36 -05:00
Zhe Zhang 5a7b407929 HDFS-9255. Consolidate block recovery related implementation into a single class. Contributed by Walter Su.
Change-Id: I31c5d4778656053e60a4263970ec5fda441e9725
2015-10-28 07:40:47 -07:00
yliu 7b90f74636 HDFS-9302. WebHDFS throws NullPointerException if newLength is not provided. (Jagadesh Kiran N via yliu) 2015-10-28 15:50:32 +08:00
Yongjun Zhang 6fed564d2c HDFS-9231. fsck doesn't list correct file path when Bad Replicas/Blocks are in a snapshot. (Xiao Chen via Yongjun Zhang)
(cherry picked from commit 97913f430c)

Conflicts:
	hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFsck.java
2015-10-28 00:06:50 -07:00
cnauroth af0f2e27d1 HDFS-9311. Support optional offload of NameNode HA service health checks to a separate RPC server. Contributed by Chris Nauroth.
(cherry picked from commit bf8e452982)

Conflicts:
	hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNodeRpcServer.java
2015-10-27 23:08:32 -07:00
Akira Ajisaka e984534314 Add HDFS-9317 to CHANGES.txt.
(cherry picked from commit eca51b13af)
2015-10-28 13:19:48 +09:00
Colin Patrick Mccabe 7eb0daefc8 HDFS-9307. fuseConnect should be private to fuse_connect.c (Mingliang Liu via Colin P. McCabe)
(cherry picked from commit faeb6a3f89)
2015-10-27 11:41:27 -07:00
Colin Patrick Mccabe bb87b4222c HDFS-9299. Give ReplicationMonitor a readable thread name (Staffan Friberg via Colin P. McCabe)
(cherry picked from commit fe93577faf)
2015-10-27 11:37:54 -07:00
Ming Ma 2c335a8434 HDFS-9259. Make SO_SNDBUF size configurable at DFSClient side for hdfs write scenario. (Mingliang Liu via mingma)
(cherry picked from commit aa09880ab8)
2015-10-27 09:29:37 -07:00
Lei Xu acbc8c1457 HDFS-9292. Make TestFileConcorruption independent to underlying FsDataset Implementation. (lei)
(cherry picked from commit 399ad00915)
2015-10-26 16:09:41 -07:00
Arpit Agarwal 764be68f47 HDFS-9305. Delayed heartbeat processing causes storm of subsequent heartbeats. (Contributed by Arpit Agarwal) 2015-10-26 15:54:08 -07:00
Andrew Wang 8e6cc44760 HDFS-8945. Update the description about replica placement in HDFS Architecture documentation. Contributed by Masatake Iwasaki.
(cherry picked from commit e8aefdf08b)
2015-10-26 15:48:15 -07:00
Lei Xu ce02c438fd HDFS-9291. Fix TestInterDatanodeProtocol to be FsDataset-agnostic. (lei) 2015-10-26 15:17:36 -07:00
Andrew Wang 9850827c24 HDFS-9284. fsck command should not print exception trace when file not found. Contributed by Jagadesh Kiran N.
(cherry picked from commit 677a936bf7)
2015-10-26 15:15:23 -07:00
Yongjun Zhang b50af4e04a HDFS-7284. Add more debug info to BlockInfoUnderConstruction#setGenerationStampAndVerifyReplicas. (Wei-Chiu Chuang via Yongjun Zhang)
(cherry picked from commit 5e718de522)
2015-10-26 13:36:25 -07:00
Colin Patrick Mccabe 1405181d08 HDFS-9268. fuse_dfs chown crashes when uid is passed as -1 (cmccabe)
(cherry picked from commit 2f1eb2bceb)
2015-10-26 13:33:45 -07:00
Haohui Mai aeceb2eef6 HDFS-9304. Add HdfsClientConfigKeys class to TestHdfsConfigFields#configurationClasses. Contributed by Mingliang Liu. 2015-10-26 12:03:00 -07:00
Arpit Agarwal b727dfd61c HDFS-4015. Safemode should count and report orphaned blocks. (Contributed by Anu Engineer) 2015-10-23 21:40:26 -07:00
Lei Xu 509185c224 HDFS-9297. Update TestBlockMissingException to use corruptBlockOnDataNodesByDeletingBlockFile(). (Tony Wu via lei)
(cherry picked from commit 5679e46b7f)
2015-10-23 17:42:59 -07:00
Haohui Mai 558ae8c2df HDFS-9301. HDFS clients can't construct HdfsConfiguration instances. Contributed by Mingliang Liu. 2015-10-23 14:53:15 -07:00
Kihwal Lee d24d0fd981 HDFS-9290. DFSClient#callAppend() is not backward compatible for slightly older NameNodes. Contributed by Tony Wu.
(cherry picked from commit b9e0417bdf)
2015-10-23 16:38:47 -05:00
Zhe Zhang 1c468c2346 HDFS-8808. dfs.image.transfer.bandwidthPerSec should not apply to -bootstrapStandby. Contributed by Zhe Zhang.
Conflicts:
	hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/ha/BootstrapStandby.java

Change-Id: I99c314bb932b96a25f9115772267176e0b815614
2015-10-23 14:07:05 -07:00
Lei Xu 17be4b4c1f HDFS-9264. Minor cleanup of operations on FsVolumeList#volumes. (Walter Su via lei)
(cherry picked from commit 533a2be5ac)
2015-10-23 13:53:52 -07:00
Jitendra Pandey 63cebf57d0 HDFS-9184. Logging HDFS operation's caller context into audit logs. Contributed by Mingliang Liu. 2015-10-23 12:17:20 -07:00
cnauroth 4ee8297c89 HDFS-9286. HttpFs does not parse ACL syntax correctly for operation REMOVEACLENTRIES. Contributed by Wei-Chiu Chuang.
(cherry picked from commit 124a412a37)
2015-10-22 15:25:30 -07:00
Zhe Zhang a9deeb96b2 HDFS-9280. Document NFS gateway export point parameter. Contributed by Xiao Chen.
Change-Id: I1cea610c31301d793db3c9ca4dae86d0e5d2d64b
2015-10-22 11:40:09 -07:00
yliu 7579ec5bf5 HDFS-7087. Ability to list /.reserved. (Xiao Chen via wang) 2015-10-22 10:42:18 +08:00
yliu 2d577115a5 Revert "HDFS-7087. Ability to list /.reserved. Contributed by Xiao Chen."
This reverts commit ed731f79d9.
2015-10-22 10:16:49 +08:00
Andrew Wang ed731f79d9 HDFS-7087. Ability to list /.reserved. Contributed by Xiao Chen.
(cherry picked from commit 3dadf369d5)
2015-10-21 16:58:50 -07:00
cnauroth faf1c60899 HDFS-9273. ACLs on root directory may be lost after NN restart. Contributed by Xiao Chen.
(cherry picked from commit 1b525a9c32)
2015-10-21 16:39:13 -07:00
Andrew Wang 378cb17057 HDFS-9225. Fix intermittent test failure of TestBlockManager.testBlocksAreNotUnderreplicatedInSingleRack. Contributed by Masatake Iwasaki.
(cherry picked from commit 3e50f478b9)
2015-10-21 14:55:34 -07:00
Zhe Zhang 2e55226ef5 HDFS-9274. Default value of dfs.datanode.directoryscan.throttle.limit.ms.per.sec should be consistent. Contributed by Yi Liu.
Change-Id: Iafa2efb8f2eafd193b417690cc8794080b9d745b
2015-10-21 14:07:08 -07:00
Ming Ma 39e7548cd9 HDFS-8647. Abstract BlockManager's rack policy into BlockPlacementPolicy. (Brahma Reddy Battula via mingma)
(cherry picked from commit e27c2ae8ba)
2015-10-21 08:24:02 -07:00
Andrew Wang cb19552fb1 HDFS-3059. ssl-server.xml causes NullPointer. Contributed by Xiao Chen. 2015-10-20 18:00:20 -07:00
Colin Patrick Mccabe 1a4bd5b161 HDFS-9270. TestShortCircuitLocalRead should not leave socket after unit test (Masatake Iwasaki via Colin P. McCabe)
(cherry picked from commit 6381ddc096)
2015-10-20 10:57:16 -07:00
Lei Xu 7a8ed154ac HDFS-9251. Refactor TestWriteToReplica and TestFsDatasetImpl to avoid explicitly creating Files in the tests code. (lei)
(cherry picked from commit 71e533a153)
2015-10-20 10:09:16 -07:00
yliu 03bb40612e HDFS-9208. Disabling atime may fail clients like distCp. (Kihwal Lee via yliu) 2015-10-20 11:31:14 +08:00
Andrew Wang c35771c46e HDFS-9250. Add Precondition check to LocatedBlock#addCachedLoc. Contributed by Xiao Chen.
(cherry picked from commit 8175c4f6b9)
2015-10-19 16:13:14 -07:00
Tsuyoshi Ozawa 23bd017a7b HDFS-9237. NPE at TestDataNodeVolumeFailureToleration#tearDown. Contributed by Brahma Reddy Battula.
(cherry picked from commit 4c9c3955ae)
2015-10-19 15:30:37 +09:00
Haohui Mai 842b3324f2 HDFS-9253. Refactor tests of libhdfs into a directory. Contributed by Haohui Mai. 2015-10-16 11:20:39 -07:00
Tsz-Wo Nicholas Sze 32c810c819 HDFS-9205. Do not schedule corrupt blocks for replication. (szetszwo) 2015-10-16 23:15:16 +08:00
Harsh J 76cfd833f3 HDFS-9257. improve error message for "Absolute path required" in INode.java to contain the rejected path. Contributed by Marcell Szabo
(cherry picked from commit 52ac73f344)
2015-10-16 17:13:05 +02:00
Kihwal Lee 06d4d72675 HDFS-9220. Reading small file (< 512 bytes) that is open for append fails due to incorrect checksum. Contributed by Jing Zhao.
(cherry picked from commit c7c36cbd62)
2015-10-15 11:25:39 -05:00
Vinayakumar B 0956aed25a HDFS-9157. [OEV and OIV] : Unnecessary parsing for mandatory arguements if '-h' option is specified as the only option (Contributed by nijel)
(cherry picked from commit 08f5de1ef5)
2015-10-15 17:37:45 +05:30
Lei Xu b088eee297 HDFS-9188. Make block corruption related tests FsDataset-agnostic. (lei)
(cherry picked from commit c80b3a804f)

Conflicts:
	hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/MiniDFSCluster.java
	hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSShell.java
	hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestFileAppend3.java
2015-10-14 20:30:09 -07:00
Jing Zhao bd3364e078 HDFS-9223. Code cleanup for DatanodeDescriptor and HeartbeatManager. Contributed by Jing Zhao.
(cherry picked from commit be7a0add8b)
2015-10-14 16:24:58 -07:00
Xiaoyu Yao 88e67a9583 Revert "HDFS-9210. Fix some misuse of %n in VolumeScanner#printStats. Contributed by Xiaoyu Yao."
This reverts commit c1f68b3cd9.
2015-10-14 14:42:02 -07:00
Xiaoyu Yao c1f68b3cd9 HDFS-9210. Fix some misuse of %n in VolumeScanner#printStats. Contributed by Xiaoyu Yao.
(cherry picked from commit 3d50855952)
2015-10-14 14:08:02 -07:00
Lei Xu 8651677446 HDFS-9238. Update TestFileCreation.testLeaseExpireHardLimit() to avoid using DataNodeTestUtils.getFile(). (Tony Wu via lei) 2015-10-14 13:11:09 -07:00
Jing Zhao d6fbd4124c HDFS-1172. Blocks in newly completed files are considered under-replicated too quickly. Contributed by Masatake Iwasaki.
(cherry picked from commit 2a98724342)
2015-10-13 23:07:08 -07:00
Colin Patrick Mccabe fea7e472c8 Add CHANGES.txt entry for HDFS-9187 2015-10-13 16:22:23 -07:00
Haohui Mai ee04add696 HDFS-9167. Update pom.xml in other modules to depend on hdfs-client instead of hdfs. Contributed by Mingliang Liu. 2015-10-13 15:24:29 -07:00
Haohui Mai 65d41fd896 HDFS-8779. WebUI fails to display block IDs that are larger than 2^53 - 1. Contributed by Haohui Mai. 2015-10-13 13:51:32 -07:00
Haohui Mai 016d9fa9b9 HDFS-9235. hdfs-native-client build getting errors when built with cmake 2.6. Contributed by Eric Payne. 2015-10-13 13:42:50 -07:00
Haohui Mai 5c5362980c HDFS-9145. Tracking methods that hold FSNamesytemLock for too long. Contributed by Mingliang Liu. 2015-10-13 13:20:17 -07:00
Jitendra Pandey e7203b6954 HDFS-8855. Webhdfs client leaks active NameNode connections. Contributed by Xiaobing Zhou. 2015-10-13 09:14:01 -07:00
Kihwal Lee f203b84cf4 HDFS-8676. Delayed rolling upgrade finalization can cause heartbeat expiration. Contributed by Walter Su.
(cherry picked from commit 5b43db47a3)
2015-10-13 10:07:47 -05:00
Vinayakumar B b0b97dfbef HDFS-9139. Enable parallel JUnit tests for HDFS Pre-commit (Contributed by Chris Nauroth and Vinayakumar B)
(cherry picked from commit 39581e3be2)

 Conflicts:
	hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestEditLogTailer.java
	hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestSeveralNameNodes.java
2015-10-13 19:29:51 +05:30
Vinayakumar B b01eaa3b46 HDFS-9160. [OIV-Doc] : Missing details of 'delimited' for processor options (Contributed by nijel)
(cherry picked from commit caa711b660)
2015-10-13 18:14:04 +05:30
Vinayakumar B 50253c43f0 HDFS-9224. TestFileTruncate fails intermittently with BindException (Contributed by Brahma Reddy Battula)
(cherry picked from commit 69b025dbba)
2015-10-13 11:43:32 +05:30
Lei Xu 218aa7bba1 HDFS-9006. Provide BlockPlacementPolicy that supports upgrade domain. (Ming Ma via lei)
(cherry picked from commit 0f5f9846ed)
2015-10-12 16:24:46 -07:00
yliu 85b5481d87 HDFS-8988. Use LightWeightHashSet instead of LightWeightLinkedSet in BlockManager#excessReplicateMap. (yliu) 2015-10-12 14:55:58 +08:00
yliu 5e2a44a7fe HDFS-9221. HdfsServerConstants#ReplicaState#getState should avoid calling values() since it creates a temporary array. (Staffan Friberg via yliu) 2015-10-12 14:30:01 +08:00
Haohui Mai d578165b99 HDFS-9222. Add hadoop-hdfs-client as a dependency of hadoop-hdfs-native-client. Contributed by Mingliang Liu. 2015-10-09 22:31:23 -07:00
Haohui Mai ce0bb73c10 HDFS-9215. Suppress the RAT warnings in hdfs-native-client module. Contributed by Haohui Mai. 2015-10-09 22:20:55 -07:00
Andrew Wang 12d3b69217 HDFS-8941. DistributedFileSystem listCorruptFileBlocks API should resolve relative path. Contributed by Rakesh R.
(cherry picked from commit c32614f410)
2015-10-09 11:57:07 -07:00
Andrew Wang 673f301408 HDFS-9110. Use Files.walkFileTree in NNUpgradeUtil#doPreUpgrade for better efficiency. Contributed by Charlie Helin.
(cherry picked from commit 357b1fd082)
2015-10-09 11:49:27 -07:00
Ming Ma 02380e0156 HDFS-9142. Separating Configuration object for namenode(s) in MiniDFSCluster. (Siqi Li via mingma)
(cherry picked from commit de8efc65a4)
2015-10-09 11:41:54 -07:00
Yongjun Zhang 61988f8016 HDFS-9181. Better handling of exceptions thrown during upgrade shutdown. Contributed by Wei-Chiu Chuang.
(cherry picked from commit c11fc8a1be)
2015-10-09 09:24:37 -07:00
Yongjun Zhang aaf7b73fe4 HDFS-8164. cTime is 0 in VERSION file for newly formatted NameNode. Contributed by Xiao Chen.
(cherry picked from commit 1107bd399c)
2015-10-07 23:23:36 -07:00
yliu 22ed1471bd HDFS-9137. DeadLock between DataNode#refreshVolumes and BPOfferService#registrationSucceeded. (Uma Maheswara Rao G via yliu) 2015-10-08 10:26:30 +08:00
Andrew Wang 2f4bcdef8c HDFS-9211. Fix incorrect version in hadoop-hdfs-native-client/pom.xml from HDFS-9170 branch-2 backport. Contributed by Eric Payne. 2015-10-07 18:04:19 -07:00
Lei Xu ad1f0f307b HDFS-9176. Fix TestDirectoryScanner#testThrottling often fails. (Daniel Templeton via lei)
(cherry picked from commit 6dd47d754c)
2015-10-07 14:34:18 -07:00
Kihwal Lee c43181d8a7 HDFS-9178. Slow datanode I/O can cause a wrong node to be marked bad. Contributed by Kihwal Lee.
(cherry picked from commit 99e5204ff5)
2015-10-07 10:18:35 -05:00
Vinayakumar B 2b6fe90764 HDFS-9159. [OIV] : return value of the command is not correct if invalid value specified in '-p (processor)' option (Contributed by nijel)
(cherry picked from commit 61b3547c46)
2015-10-07 14:30:07 +05:30
Haohui Mai 960b19edf6 HDFS-9170. Move libhdfs / fuse-dfs / libwebhdfs to hdfs-client. Contributed by Haohui Mai. 2015-10-07 00:15:52 -07:00
Jing Zhao a4b8dc48f1 HDFS-9196. Fix TestWebHdfsContentLength. Contributed by Masatake Iwasaki.
(cherry picked from commit 239d119c67)
2015-10-06 23:55:33 -07:00
Vinayakumar B 96fbe42bd7 HDFS-7899. Improve EOF error message (Contributed by Jagadesh Kiran N)
(cherry picked from commit 874c8ed239)
2015-10-06 15:55:12 +05:30
Colin Patrick Mccabe 05b88080b6 HDFS-9155. OEV should treat .XML files as XML even when the file name extension is uppercase (nijel via cmccabe)
(cherry picked from commit 2fc2b50534)
2015-10-05 13:02:55 -07:00
Vinayakumar B d843c50d58 HDFS-9158. [OEV-Doc] : Document does not mention about '-f' and '-r' options (Contributed by nijel)
(cherry picked from commit b925cf1006)
2015-10-05 18:23:37 +05:30
Vinayakumar B dc72ed7218 HDFS-9151. Mover should print the exit status/reason on console like balancer tool. (Contributed by Surendra singh lilhore)
(cherry picked from commit 0faa4efa3d)
2015-10-05 13:23:30 +05:30
Tsuyoshi Ozawa e6514c6a3b HADOOP-11098. [JDK8] Max Non Heap Memory default changed between JDK7 and 8.
(cherry picked from commit 30e2f836a2)
2015-10-05 08:15:40 +09:00
Haohui Mai 460b5db9ff HDFS-9193. Fix incorrect references the usages of the DN in dfshealth.js. Contributed by Chang Li. 2015-10-03 11:44:40 -07:00