4275 Commits

Author SHA1 Message Date
Xiaoyu Yao
590d19c0a8 HDFS-11011. Add unit tests for HDFS command 'dfsadmin -set/clrSpaceQuota'. Contributed by Xiaobing Zhou.
(cherry picked from commit 85f6fec0370b3cd94d6c2f19920c0b6d33f127c6)
2016-10-25 11:24:27 -07:00
Zhe Zhang
ff806cbfc7 HDFS-11015. Enforce timeout in balancer. Contributed by Kihwal Lee.
(cherry picked from commit f6367c5f44a88cb5eb7edffb015b10b657504a61)
2016-10-25 10:45:31 -07:00
Kihwal Lee
086577c67a HDFS-11042. Add missing cleanupSSLConfig() call for tests that use setupSSLConfig(). Contributed by Kuhu Shukla.
(cherry picked from commit b18f35f097a3ee33f449e506676961f9b9456bbd)

Conflicts:
	hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/balancer/TestBalancer.java
2016-10-24 08:56:14 -05:00
Chris Douglas
25f4327f0b HADOOP-13702. Add instrumented ReadWriteLock. Contributed by Jingcheng Du
(cherry picked from commit ae8bccd5090d8b42dae9a8e0c13a9766a7c42ecb)
2016-10-21 13:01:08 -07:00
Brahma Reddy Battula
2ab149f0e4 HADOOP-13236. truncate will fail when we use viewfilesystem. Contributed by Brahma Reddy Battula
(cherry picked from commit f872c6bc0390415f13e95b99749b0b1a690991b7)
2016-10-21 16:19:18 +05:30
Mingliang Liu
c37c00b061 HDFS-10998. Add unit tests for HDFS command 'dfsadmin -fetchImage' in HA. Contributed by Xiaobing Zhou
(cherry picked from commit d7d87deece66333c188e9b7c10b4b56ddb529ce9)
2016-10-20 19:54:35 -07:00
Aaron T. Myers
0f616cefeb HDFS-10423. Increase default value of httpfs maxHttpHeaderSize. Contributed by Nicolae Popa.
(cherry picked from commit aa1b583cf99d1a7cfe554d1769fc4af252374663)

Conflicts:
	hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/libexec/httpfs-config.sh
2016-10-20 13:34:52 -07:00
Wei-Chiu Chuang
6f4192d77d HDFS-11018. Incorrect check and message in FsDatasetImpl#invalidate. Contributed by Yiqun Lin.
(cherry picked from commit 6d2da38d16cebe9b82f1048f87127eecee33664c)

Conflicts:
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsDatasetImpl.java
2016-10-20 11:58:46 -07:00
Steve Loughran
ab36519b6f Revert "HADOOP-13236. truncate will fail when we use viewfilesystem. Contributed by Brahma Reddy Battula"
This reverts commit bf6379fdd2eef2fed30414559190afa8ccd963d5.
2016-10-20 19:32:10 +01:00
Brahma Reddy Battula
bf6379fdd2 HADOOP-13236. truncate will fail when we use viewfilesystem. Contributed by Brahma Reddy Battula
(cherry picked from commit f872c6bc0390415f13e95b99749b0b1a690991b7)
2016-10-20 21:48:23 +05:30
Kihwal Lee
cacf83b6c3 HDFS-10627. Volume Scanner marks a block as "suspect" even if the exception is network-related. Contributed by Rushabh S Shah.
(cherry picked from commit 5c0bffddc0cb824a8a2751bcd0dc3e15ce081727)
2016-10-20 11:02:02 -05:00
Brahma Reddy Battula
69a4b0c7d2 HDFS-10699. Log object instance get incorrectly in TestDFSAdmin. Contributed by Yiqun Lin
(cherry picked from commit f5e401de3e7ad6e73b07fef1cb5915753b08fbdb)
2016-10-20 21:08:39 +05:30
Brahma Reddy Battula
df5671db74 HDFS-9480. Expose nonDfsUsed via StorageTypeStats. Contributed by Brahma Reddy Battula
(cherry picked from commit 4c73be135ca6ee2ba0b075a507097900db206b09)
2016-10-20 20:47:37 +05:30
Brahma Reddy Battula
5a37668d1b HDFS-11025. TestDiskspaceQuotaUpdate fails in trunk due to Bind exception. Contributed by Yiqun Lin
(cherry picked from commit 73504b1bdc4b93c64741de5eb9d022817fdfa22f)
2016-10-20 10:42:34 +05:30
Arpit Agarwal
a3cbaf0c04 HDFS-10752. Several log refactoring/improvement suggestion in HDFS. Contributed by Hanisha Koneru. 2016-10-19 17:20:15 -07:00
Xiao Chen
ad7d3c4db8 HDFS-11009. Add a tool to reconstruct block meta file from CLI.
(cherry picked from commit bc4a32aea50e86819730312e89315c0244ce64bf)

Conflicts:
	hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsDatasetImpl.java
	hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsDatasetUtil.java
2016-10-18 22:40:58 -07:00
Xiaoyu Yao
74f1c49d76 HDFS-10906. Add unit tests for Trash with HDFS encryption zones. Contributed by Hanisha Koneru.
(cherry picked from commit 0c79d5af74944363f3d04f7e1702411db564bbfd)
2016-10-18 14:07:57 -07:00
Kai Zheng
3972bb3bba HDFS-10920. TestStorageMover#testNoSpaceDisk is failing intermittently. Contributed by Rakesh R 2016-10-18 15:08:15 +06:00
Akira Ajisaka
b2618685fb HADOOP-13522. Add %A and %a formats for fs -stat command to print permissions. Contributed by Alex Garbarini.
(cherry picked from commit bedfec0c10144087168bc79501ffd5ab4fa52606)
2016-10-18 15:03:33 +09:00
Vinitha Reddy Gankidi
278eeb1056 HDFS-10712. TestDataNodeVolumeFailure should pass not null BlockReportContext. Contributed by Vinitha Gankidi. 2016-10-17 18:55:26 -07:00
Ming Ma
d55a7f8935 HDFS-9390. Block management for maintenance states. 2016-10-17 17:46:29 -07:00
Xiaoyu Yao
61aceb87df HDFS-10922. Adding additional unit tests for Trash (II). Contributed by Weiwei Yang.
(cherry picked from commit f1802d0be05ecc0b3248690b6f9efedbc7784112)
2016-10-17 14:21:51 -07:00
Brahma Reddy Battula
64e532393b HDFS-11003. Expose XmitsInProgress through DataNodeMXBean. Contributed By Brahma Reddy Battula
(cherry picked from commit 5f4ae85bd8a20510948696467873498723b06477)
2016-10-15 22:29:55 +05:30
Akira Ajisaka
35832901e8 HDFS-11012. Unnecessary INFO logging on DFSClients for InvalidToken. Contributed by Harsh J.
(cherry picked from commit 5ad037df25ab3206509083276b7ef4ef001be48b)
2016-10-15 22:17:55 +09:00
Vinitha Reddy Gankidi
863e1020c0 HDFS-10301. Remove FBR tracking state to fix false zombie storage detection for interleaving block reports. Contributed by Vinitha Gankidi.
(cherry picked from commit 391ce535a739dc92cb90017d759217265a4fd969)
2016-10-14 18:25:52 -07:00
Lei Xu
78cb79fa91 HDFS-10960. TestDataNodeHotSwapVolumes#testRemoveVolumeBeingWritten fails at disk error verification after volume remove. (Manoj Govindassamy via lei) 2016-10-14 15:00:27 -07:00
Mingliang Liu
bbcbf78f0f HDFS-11008. Change unit test for testing parsing "-source" parameter in Balancer CLI. Contributed by Mingliang Liu
(cherry picked from commit 76cc84e6d41c2b02218c2c98d60481cd565e067c)
2016-10-14 14:43:58 -07:00
Kihwal Lee
1c0f2ef82f Revert "HDFS-10960. TestDataNodeHotSwapVolumes#testRemoveVolumeBeingWritten fails at disk error verification after volume remove. (Manoj Govindassamy via lei)"
This reverts commit aa8593f923e5686d8baa11bd00d227e48a860c13.
2016-10-14 16:38:25 -05:00
Lei Xu
aa8593f923 HDFS-10960. TestDataNodeHotSwapVolumes#testRemoveVolumeBeingWritten fails at disk error verification after volume remove. (Manoj Govindassamy via lei)
(cherry picked from commit 8c520a27cbd9daba05367d3a83017a2eab5258eb)
2016-10-14 13:43:26 -07:00
Andrew Wang
86325e4346 HDFS-10883. 's behavior is not consistent in DFS after enabling EZ. Contributed by Yuanbo Liu.
(cherry picked from commit 0007360c3344b3485fa17de0fd2015a628de947c)
2016-10-14 11:41:36 -07:00
Benoy Antony
156b92e36b HDFS-10735 Distcp using webhdfs on secure HA clusters fails with StandbyException
(cherry picked from commit 701c27a7762294e1a5fb2b3ac81f5534aa37f667)
2016-10-14 10:29:42 -07:00
Kihwal Lee
6e0b55fe79 HDFS-10990. TestPendingInvalidateBlock should wait for IBRs. Contributed by Yiqun Lin.
(cherry picked from commit 8a9f6635a33e9648e9396e9ec5571fa34aa0c773)
2016-10-14 11:40:11 -05:00
Andrew Wang
dc78e0e7fc Revert "HDFS-10990. TestPendingInvalidateBlock should wait for IBRs. Contributed by Yiqun Lin."
This reverts commit 2e153bc8abc3fe2f50660136af32711c50e7e7e7.
2016-10-13 13:23:04 -07:00
Kihwal Lee
c5a1303704 HDFS-10987. Make Decommission less expensive when lot of blocks present. Contributed by Brahma Reddy Battula.
(cherry picked from commit 332a61fd74fd2a9874319232c583ab5d2c53ff03)

Conflicts:
	hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/DecommissionManager.java
2016-10-13 14:55:22 -05:00
Andrew Wang
2e153bc8ab HDFS-10990. TestPendingInvalidateBlock should wait for IBRs. Contributed by Yiqun Lin.
(cherry picked from commit fdce515091f0a61ffd6c9ae464a68447dedf1124)
2016-10-13 11:42:03 -07:00
Brahma Reddy Battula
b60e545a08 10986. DFSAdmin should log detailed error message if any. Contributed by MingLiang Liu
(cherry picked from commit 29aa11b1a252e007ed62fad362096ca43aa408af)
2016-10-13 21:41:25 +05:30
Kihwal Lee
a6197c1fa8 HDFS-11000. webhdfs PUT does not work if requests are routed to call queue. Contributed by Kihwal Lee.
(cherry picked from commit 9454dc5e8091354cd0a4b8c8aa5f4004529db5d5)
2016-10-13 08:48:33 -05:00
Akira Ajisaka
43cf0b2973 HDFS-11002. Fix broken attr/getfattr/setfattr links in ExtendedAttributes.md. Contributed by Mingliang Liu.
(cherry picked from commit 901eca004d0e7e413b109a93128892176c808d61)
2016-10-13 14:30:45 +09:00
Mingliang Liu
b36aaa913c HDFS-10903. Replace config key literal strings with config key names II: hadoop hdfs. Contributed by Chen Liang 2016-10-12 17:26:11 -07:00
Kihwal Lee
5305a392c3 HDFS-10789. Route webhdfs through the RPC call queue. Contributed by Daryn Sharp and Rushabh S Shah.
(cherry picked from commit 85cd06f6636f295ad1f3bf2a90063f4714c9cca7)

Conflicts:
	hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/web/resources/NamenodeWebHdfsMethods.java
	hadoop-hdfs-project/hadoop-hdfs/src/main/resources/hdfs-default.xml
2016-10-12 15:22:51 -05:00
Mingliang Liu
e341e5151a HDFS-10965. Add unit test for HDFS command 'dfsadmin -printTopology'. Contributed by Xiaobing Zhou
(cherry picked from commit f340d286d441d78c847722b529939b78abf9d2f3)
2016-10-11 19:59:36 -07:00
Xiaoyu Yao
2c77aca782 HDFS-10984. Expose nntop output as metrics. Contributed by Siddharth Wagle.
(cherry picked from commit 61f0490a73085bbaf6639d9234277e59dc1145db)
2016-10-11 15:56:12 -07:00
Andrew Wang
a52c33fdb8 HDFS-10991. Export hdfsTruncateFile symbol in libhdfs. Contributed by Surendra Singh Lilhore.
(cherry picked from commit dacd3ec66b111be24131957c986f0c748cf9ea26)
2016-10-11 15:07:22 -07:00
Wei-Chiu Chuang
402856a8a7 HDFS-10933. Refactor TestFsck. Contributed by Takanobu Asanuma. 2016-10-11 13:18:48 -07:00
Mingliang Liu
11e748394d HDFS-10988. Refactor TestBalancerBandwidth. Contributed by Brahma Reddy Battula
(cherry picked from commit b963818621c200160bb37624f177bdcb059de4eb)
2016-10-10 13:23:10 -07:00
Mingliang Liu
6c137ea94e HDFS-10972. Add unit test for HDFS command 'dfsadmin -getDatanodeInfo'. Contributed by Xiaobing Zhou
(cherry picked from commit 3441c746b5f35c46fca5a0f252c86c8357fe932e)
2016-10-10 11:45:43 -07:00
Xiao Chen
5c96ef365d HDFS-10797. Disk usage summary of snapshots causes renamed blocks to get counted twice. Contributed by Sean Mackrory.
(cherry picked from commit 3ea027e970ec7c95a10e581435cdb6c3a6b64abb)
2016-10-07 17:37:23 -07:00
Kihwal Lee
7f05306895 HDFS-10980. Optimize check for existence of parent directory. Contributed by Daryn Sharp.
(cherry picked from commit e57fa81d9559a93d77fd724f7792326c31a490be)
2016-10-07 17:21:28 -05:00
Kihwal Lee
5ea87e4aeb HDFS-10979. Pass IIP for FSDirDeleteOp methods. Contributed by Daryn Sharp.
(cherry picked from commit 3565c9af17ab05bf9e7f68b71b6c6850df772bb9)
2016-10-07 14:35:28 -05:00
Kihwal Lee
76c03acc6d HDFS-10939. Reduce performance penalty of encryption zones. Contributed by Daryn Sharp. 2016-10-07 13:20:05 -05:00