Andrew Wang
9b7e079d4b
HDFS-10833. Fix JSON errors in WebHDFS.md examples.
...
(cherry picked from commit cbd909ce2a5ac1da258f756fa1f93e84dd20b926)
(cherry picked from commit 40eab775629f5968348983ac5bc1d2cf5b9b228b)
2016-09-02 14:51:12 -07:00
Kihwal Lee
16c166249c
HDFS-10772. Reduce byte/string conversions for get listing. Contributed by Daryn Sharp.
...
(cherry picked from commit a1f3293762dddb0ca953d1145f5b53d9086b25b8)
2016-09-02 12:32:34 -05:00
Kihwal Lee
1c946a2665
HDFS-10768. Optimize mkdir ops. Contributed by Daryn Sharp.
...
(cherry picked from commit 442dfd1bbe0d6c6fe836bd0e0b0151b52faf8582)
2016-09-02 12:28:11 -05:00
Kihwal Lee
bf350e4480
HDFS-10762. Pass IIP for file status related methods
...
(cherry picked from commit a30f6a68fabf80d2db5868bcc031266986d93b03)
2016-09-02 12:23:21 -05:00
Kihwal Lee
c2708bc5fb
HDFS-9621. Consolidate FSDirStatAndListingOp#createFileStatus to let its INodesInPath parameter always include the target INode. Contributed by Jing Zhao.
...
(cherry picked from commit 313f03bfdab32cf365bc3470c5f9b6928a24f099)
Conflicts:
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java
2016-09-02 12:16:08 -05:00
Kihwal Lee
69bdcd9b1e
HDFS-10745. Directly resolve paths into INodesInPath. Contributed by Daryn Sharp.
...
(cherry picked from commit 922d045e1194e5290c24ec9dc8735f0be4efb953)
Conflicts:
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirWriteFileOp.java
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFsck.java
2016-09-02 11:44:01 -05:00
Kihwal Lee
3dac73080a
HDFS-10744. Internally optimize path component resolution. Contributed by Daryn Sharp.
...
(cherry picked from commit 1ef8d7a638df5150b8426755af034839d5f88ca2)
2016-09-02 11:31:48 -05:00
Kihwal Lee
5a779cce8e
HDFS-10711. Optimize FSPermissionChecker group membership check. Contributed by Daryn Sharp.
...
(cherry picked from commit 43d1279df048b96553fb98bc404a661ca15c4611)
2016-09-02 11:24:20 -05:00
Kihwal Lee
f09b04b3f5
HDFS-10673. Optimize FSPermissionChecker's internal path usage. Contributed by Daryn Sharp.
...
(cherry picked from commit 438a9f047eb6af2a4b916a4f6ef6f68adeab8068)
(cherry picked from commit 09b06a6e9e873ad05fc2ebfaf0e9e9eba71516d2)
2016-09-01 17:03:48 -07:00
Zhe Zhang
08b6808489
Addendum fix for HDFS-10817 to fix failure of the added testFSReadLockLongHoldingReport in branch-2.
...
(cherry picked from commit 6c600360ca469d5fe0f017d681585db06c80c9cc)
(cherry picked from commit 776eccd87391767272371586fe7b0ed11b263319)
2016-08-31 23:45:45 -07:00
Zhe Zhang
7adbd569a6
HDFS-10817. Add Logging for Long-held NN Read Locks. Contributed by Erik Krogen.
...
(cherry picked from commit 6f4b0d33ca339e3724623a1d23c101f8cfd3cdd5)
(cherry picked from commit f87e2f5d05bdb54ce5028d2651c8947fa0f80539)
2016-08-31 15:54:46 -07:00
Kihwal Lee
e53f6fde46
HDFS-10674. Optimize creating a full path from an inode. Contributed by Daryn Sharp.
...
(cherry picked from commit 22ef5286bc8511ddee9594b7cecc598bf41a850b)
(cherry picked from commit a5d12d9c1f2c0e6fcd918ee8e614dcaf203e77de)
2016-08-31 15:16:07 -07:00
Kihwal Lee
7b5e12229d
HDFS-10656. Optimize conversion of byte arrays back to path string. Contributed by Daryn Sharp.
...
(cherry picked from commit bebf10d2455cad1aa8985553417d4d74a61150ee)
(cherry picked from commit ab7072838f8bb848b5f7b3b10ed36f7480da8683)
2016-08-31 15:11:27 -07:00
Kihwal Lee
ce902fc80a
HDFS-10729. Improve log message for edit loading failures caused by FS limit checks. Contributed by Wei-Chiu Chuang.
...
(cherry picked from commit 01721dd88ee532d20eda841254437da4dfd69db5)
2016-08-31 14:12:02 -05:00
Wei-Chiu Chuang
80bb9ffb67
HDFS-10760. DataXceiver#run() should not log InvalidToken exception as an error. Contributed by Pan Yuxuan.
...
(cherry picked from commit c4ee6915a14e00342755d7cdcbf2d61518f306aa)
2016-08-30 10:44:48 -07:00
Zhe Zhang
ee28034a8a
HDFS-10814. Add assertion for getNumEncryptionZones when no EZ is created. Contributed by Vinitha Reddy Gankidi.
...
(cherry picked from commit 4bd45f54eedd449a98a90540698c6ceb47454fec)
2016-08-29 23:43:04 -07:00
Xiao Chen
a291306510
HDFS-4210. Throw helpful exception when DNS entry for JournalNode cannot be resolved. Contributed by Charles Lamb and John Zhuge.
...
(cherry picked from commit 046f6bf0f944311fc70de3a96fc6ab8211cbbbd8)
2016-08-29 17:42:30 -07:00
Yongjun Zhang
18f7628664
HDFS-10625. VolumeScanner to report why a block is found bad. Contributed by Rushabh S Shah and Yiqun Lin.
...
(cherry picked from commit 5d1609ddf275e4907bd224bf618e2aad4b262888)
2016-08-29 14:15:23 -07:00
Mingliang Liu
f84ae6f091
HDFS-10807. Doc about upgrading to a version of HDFS with snapshots may be confusing. (Contributed by Mingliang Liu)
...
(cherry picked from commit 6742fb6e68d349055f985eb640d845e689d75384)
2016-08-29 10:19:53 -07:00
Yongjun Zhang
6f10a0a87b
HDFS-10652. Add a unit test for HDFS-4660. Contributed by Vinayakumar B., Wei-Chiu Chuang, Yongjun Zhang.
...
(cherry picked from commit c25817159af17753b398956cfe6ff14984801b01)
2016-08-27 23:11:57 -07:00
Andrew Wang
42e03d7bfe
HDFS-10793. Fix HdfsAuditLogger binary incompatibility introduced by HDFS-9184. Contributed by Manoj Govindassamy.
...
(cherry picked from commit a445b82baaa58dcaaa3831e724a9915e9dde57c5)
(cherry picked from commit 1c47a356d8a29d95f9f991379d3bec92d28a728c)
2016-08-26 15:40:13 -07:00
Zhe Zhang
96cf681b5d
HDFS-10798. Make the threshold of reporting FSNamesystem lock contention configurable. Contributed by Erik Krogen.
...
(cherry picked from commit 407b519fb14f79f19ebc4fbdf08204336a7acf77)
(cherry picked from commit f3a4cbcc60572c73e0d15580bae42a36c92fe247)
2016-08-26 14:23:51 -07:00
Kihwal Lee
1c5ecb6cc4
HDFS-8915. TestFSNamesystem.testFSLockGetWaiterCount fails intermittently. Contributed by Masatake Iwasaki.
...
(cherry picked from commit 13fb1b50e608558b2970184908ee5b9fcd7eb7b6)
2016-08-26 10:01:19 -05:00
Xiaoyu Yao
db415ea166
HDFS-10748. TestFileTruncate#testTruncateWithDataNodesRestart runs sometimes timeout. Contributed by Yiqun Lin.
...
(cherry picked from commit 4da5000dd33cf013e7212848ed2c44f1e60e860e)
2016-08-25 09:22:16 -07:00
Wei-Chiu Chuang
bd729af8a8
HDFS-8986. Add option to -du to calculate directory space usage excluding snapshots. Contributed by Xiao Chen.
2016-08-24 08:53:43 -07:00
Zhe Zhang
8bc33bf343
HADOOP-12765. HttpServer2 should switch to using the non-blocking SslSelectChannelConnector to prevent performance degradation when handling SSL connections. Contributed by Min Shen. Branch-2 patch contributed by Wei-Chiu Chuang.
...
(cherry picked from commit dfcbc12026b591745a7d7279f2b840152cb53a91)
2016-08-23 14:46:47 -07:00
Jason Lowe
f57a26378e
HDFS-9745. TestSecureNNWithQJM#testSecureMode sometimes fails with timeouts. Contributed by Xiao Chen
...
(cherry picked from commit 126d165efd80e266a8309241f3cf059e358f5019)
2016-08-23 14:49:27 +00:00
Akira Ajisaka
dde3eaed62
HDFS-10783. The option '-maxSize' and '-step' fail in OfflineImageViewer. Contributed by Yiqun Lin.
...
(cherry picked from commit e90f3359de299ef5e3a54ca71070e3dfe1dbb98c)
(cherry picked from commit 94a844b4f61d4a47b2a5885e3db065a07ed29d97)
2016-08-23 19:59:07 +09:00
Vinod Kumar Vavilapalli (I am also known as @tshooter.)
c0c4cc8ee8
HDFS-10692. Update JDiff report's base version for HDFS from 2.6.0 to 2.7.2. Contributed by Wangda Tan.
...
(cherry picked from commit dc7a1c54f4447fb01980ae61d5d67e90c4f52f00)
2016-08-22 11:37:14 -07:00
Kihwal Lee
c9199095f8
HDFS-10738. Fix TestRefreshUserMappings.testRefreshSuperUserGroupsConfiguration test failure. Contributed by Rakesh R.
...
(cherry picked from commit 0f701f433dd3be233bf53e856864c82349e8274e)
(cherry picked from commit 7f1879abe642219fce0328a8e96c983601d202b0)
2016-08-22 11:04:03 -05:00
Jing Zhao
8628ad0790
HDFS-10764. Fix INodeFile#getBlocks to not return null. Contributed by Arpit Agarwal.
...
(cherry picked from commit 0faee62a0c8c1b8fd83227babfd00fbc2b26bddf)
(cherry picked from commit fff0418458b23c3096384082f8f387b451efad09)
2016-08-19 22:27:24 -07:00
Kihwal Lee
4f3df8e22a
HDFS-7959. WebHdfs logging is missing on Datanode (Kihwal Lee via sjlee)
...
(cherry picked from commit ae90d4dd908cf3f9e9ff26fa8e92f028057a9ca1)
Conflicts:
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/web/webhdfs/WebHdfsHandler.java
2016-08-19 15:32:11 -05:00
Arpit Agarwal
1fe08c919a
HDFS-10682. Replace FsDatasetImpl object lock with a separate lock object. (Contributed by Chen Liang)
2016-08-17 16:22:07 -07:00
Xiao Chen
b89d79ca1d
HDFS-10549. Correctly revoke file leases when closing files. Contributed by Yiqun Lin.
...
(cherry picked from commit 85aacaadb5a3f8c78b191867c0bde09b3c4b3c3c)
Conflicts:
hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSStripedOutputStream.java
(cherry picked from commit a20b943cf951cf38eb4950177c826bbcf424aade)
2016-08-17 16:00:33 -07:00
Vinod Kumar Vavilapalli (I am also known as @tshooter.)
d65024eddc
Revert "HDFS-9395. Make HDFS audit logging consistant. Contributed by Kuhu Shukla."
...
Reverting this on branch-2.* as it's an incompatible change.
This reverts commit 83f7f62be379045ad6933689b21b76c7086f919d.
(cherry picked from commit 2486c4c63a35fcef7338ea63f0d8aafa778cd05d)
2016-08-17 13:34:35 -07:00
Kihwal Lee
b76f6e5de3
HDFS-10342. BlockManager#createLocatedBlocks should not check corrupt replicas if none are corrupt. Contributed by Kuhu Shukla.
...
(cherry picked from commit b10c936020e2616609dcb3b2126e8c34328c10ca)
Conflicts:
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManager.java
(cherry picked from commit 65a41696b2a22834f4592bcb49e40fffd2dbb96e)
2016-08-16 09:39:33 -05:00
Mingliang Liu
54c9743263
HDFS-10641. TestBlockManager#testBlockReportQueueing fails intermittently. (Contributed by Daryn Sharp)
2016-08-15 20:46:48 -07:00
Mingliang Liu
e9eaad0e67
HDFS-10747. o.a.h.hdfs.tools.DebugAdmin usage message is misleading. (Contributed by Mingliang Liu)
2016-08-15 20:46:34 -07:00
Mingliang Liu
0b934c375e
HDFS-10678. Documenting NNThroughputBenchmark tool. (Contributed by Mingliang Liu)
2016-08-15 20:46:28 -07:00
Kihwal Lee
1a8280edde
HDFS-10763. Open files can leak permanently due to inconsistent lease update. Contributed by Kihwal Lee.
...
(cherry picked from commit 864f878d5912c82f3204f1582cfb7eb7c9f1a1da)
(cherry picked from commit e78db7d2a430983807750666fb72ebd5c97ce867)
Conflicts:
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
2016-08-15 17:37:39 -05:00
Kihwal Lee
579709fc22
HDFS-9696. Garbage snapshot records linger forever. Contributed by Kihwal Lee
...
(cherry picked from commit 83e57e083f2cf6c0de8a46966c5492faeabd8f2a)
Conflicts:
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestSaveNamespace.java
(cherry picked from commit 4766a3153dd517ac832d4761c884ed88a83a6c09)
2016-08-15 13:13:49 -05:00
Wei-Chiu Chuang
53f097a474
HDFS-10731. FSDirectory#verifyMaxDirItems does not log path name. Contributed by Wei-Chiu Chuang.
...
(cherry picked from commit 9019606b69bfb7019c8642b6cbcbb93645cc19e3)
(cherry picked from commit 20a8ff0a8d17c05305f712da887ad6665eb654b5)
2016-08-12 06:11:22 -07:00
Zhe Zhang
9c1c48c0d4
HDFS-9888. Allow reseting KerberosName in unit tests. Contributed by Xiao Chen.
...
(cherry picked from commit 3e8099a45a4cfd4c5c0e3dce4370514cb2c90da9)
(cherry picked from commit 00ff3d737c71e1a228ede64a6b9abd5227ef2117)
2016-08-11 12:42:17 -07:00
Akira Ajisaka
f29d0739d7
HDFS-10336. TestBalancer failing intermittently because of not reseting UserGroupInformation completely. Contributed by Yiqun Lin.
...
(cherry picked from commit 932aed64d77edcc8483a95c1ce31a4c9ae679446)
(cherry picked from commit 0529da723966e03c7dfa8201a515320c904d32a7)
2016-08-11 12:42:17 -07:00
Zhe Zhang
b8b4ea67d8
HDFS-9804. Allow long-running Balancer to login with keytab. Contributed by Xiao Chen.
...
(cherry picked from commit ccff6035f50769eb69701128ae61efc69e82609d)
(cherry picked from commit 7d402692b4b06af0459ea81129e93a5182291a27)
2016-08-11 12:42:17 -07:00
Wei-Chiu Chuang
65e3657149
HDFS-8897. Balancer should handle fs.defaultFS trailing slash in HA. Contributed by John Zhuge.
...
(cherry picked from commit f1d5a95cf31f593f362a4e9c0afa7587f6e14957)
2016-08-10 22:30:06 -07:00
Xiaoyu Yao
7a1a3f7754
HDFS-10643. Namenode should use loginUser(hdfs) to generateEncryptedKey. Contributed by Xiaoyu Yao.
...
(cherry picked from commit ec289bbeceff064ad24e189db20a3e0a296822c1)
2016-08-10 15:56:56 -07:00
Xiaoyu Yao
8808df09c6
Revert "Namenode should use loginUser(hdfs) to generateEncryptedKey. Contributed by Xiaoyu Yao."
...
This reverts commit 9f816d7ca74c6e6c43ecfc8770228c518620c9cb.
(cherry picked from commit fdafd0cb4f1626ee41539f4b80711c4e78e3e16c)
2016-08-10 15:56:43 -07:00
Xiaoyu Yao
c0e331935d
Namenode should use loginUser(hdfs) to generateEncryptedKey. Contributed by Xiaoyu Yao.
...
(cherry picked from commit 9f816d7ca74c6e6c43ecfc8770228c518620c9cb)
2016-08-10 15:19:10 -07:00
Wei-Chiu Chuang
753edc4931
HDFS-8224. Schedule a block for scanning if its metadata file is corrupt. Contributed by Rushabh S Shah.
...
(cherry picked from commit 8efd4959f3fd48fe281aa26a46668071461dee8b)
2016-08-10 11:39:12 -07:00