7919 Commits

Author SHA1 Message Date
Hui Fei
6e215953e6
HDFS-15240. Erasure Coding: dirty buffer causes reconstruction block error. Contributed by HuangTao. 2020-12-04 17:11:21 +08:00
Ahmed Hussein
91310102d7 HDFS-15703. Don't generate edits for set operations that are no-op (#2508). Contributed by Daryn Sharp and Ahmed Hussein
(cherry picked from commit 60201cbf69044a0770390f674d93f57e4bab3880)
2020-12-02 21:52:52 +00:00
Ahmed Hussein
6cc0824072 HDFS-15695. NN should not let the balancer run in safemode (#2489). Contributed by Daryn Sharp and Ahmed Hussein
(cherry picked from commit 2b5b556dd7f17f095548b4a4485e7b7218af74be)
2020-12-02 20:31:04 +00:00
Ahmed Hussein
625f85f40f HDFS-15694. Avoid calling UpdateHeartBeatState inside DataNodeDescriptor. (#2487) Contributed by Kuhu Shukla and Ahmed Hussein
(cherry picked from commit 918ba9e82fb0bc6f96301c7ca74a32018b60c49e)
2020-12-01 21:31:18 +00:00
Takanobu Asanuma
3ee0a174dd HDFS-15538. Fix the documentation for dfs.namenode.replication.max-streams in hdfs-default.xml. Contributed by Xieming Li.
(cherry picked from commit f56cd88d7d9381d13329d25bb4f367e5378b6b5b)
2020-11-13 11:08:57 +09:00
Yizhong Zhang
52c2ce53c2 HADOOP-17142. Fix outdated properties of JournalNode when performing rollback. Contributed by Deegue.
(cherry picked from commit 82de07c794fe119946bec2e563c1937f312e8ac9)
(cherry picked from commit 12bfd9194a1b6ff89fb31f1f49e69c727f844155)
2020-11-10 09:14:25 -08:00
Ayush Saxena
ce883fe1bb HDFS-15643. EC: Fix checksum computation in case of native encoders. (#2424). Contributed by Ayush Saxena. 2020-11-04 09:53:28 +05:30
Konstantin V Shvachko
23dcd8edb6 HDFS-15665. Balancer logging improvements. Contributed by Konstantin V Shvachko.
(cherry picked from commit d07dc7afb4aa0d6cc9f9be530802e54610776a4d)
2020-11-03 12:04:38 -08:00
Ahmed Hussein
dedf0d42bc
HDFS-9776. testMultipleAppendsDuringCatchupTailing is flaky (#2410)
Co-authored-by: ahussein <ahmed.hussein@verizonmedia.com>
(cherry picked from commit ae74407ac43a480a010d40c182c1d4cc5346db8f)
2020-10-27 20:52:23 +09:00
Ahmed Hussein
244fd5eed2
HDFS-15461. TestDFSClientRetries testGetFileChecksum fails (#2404)
Co-authored-by: ahussein <ahmed.hussein@verizonmedia.com>
(cherry picked from commit afaab3d3325e0b454475fa01cc50f68007b0e15c)
2020-10-27 17:09:20 +09:00
Hui Fei
b32926f110 HDFS-15641. DataNode could meet deadlock if invoke refreshNameNode. Contributed by Hongbing Wang.
(cherry picked from commit 12c908c827c80ea37ed5207a65831d0b699c8381)
2020-10-26 22:34:06 +08:00
Wei-Chiu Chuang
87666e2438 HDFS-15644. Failed volumes can cause DNs to stop block reporting. Contributed by Ahmed Hussein.
(cherry picked from commit 74634eb002717a9684d00f0e9dc263ab7eb49246)
(cherry picked from commit c8eb86ee3d4f997b72e87e139e6a4dafa1ff4941)
2020-10-23 12:06:36 -07:00
Inigo Goiri
7119af2c6d HDFS-15459. TestBlockTokenWithDFSStriped fails intermittently. Contributed by Ahmed Hussein.
(cherry picked from commit e7aa4da0a26988fcf5880311067e62a15e05fc1e)
2020-10-23 09:49:46 -07:00
Kihwal Lee
f363c3b315 HDFS-15622. Deleted blocks linger in the replications queue. Contributed by Ahmed Hussein.
(cherry picked from commit da1b6e3cc286db00b385f3280627d2b2063b4e59)
2020-10-22 19:48:42 -05:00
Kihwal Lee
f3b2d85690 HDFS-15618. Improve datanode shutdown latency. Contributed by Ahmed Hussein.
(cherry picked from commit cf932a7e2d6182471df4eba1333737912a32534b)
2020-10-22 14:59:09 -05:00
Kihwal Lee
7e4572e56a HDFS-15627. Log delete audits before collecting blocks.
(cherry picked from commit 740a2c46353f8005dbed6f5bc15f21acfc4a6a23)
2020-10-16 11:17:34 -05:00
He Xiaoqiao
3274fd139d
Preparing for 3.2.3 development 2020-10-16 14:52:41 +08:00
Konstantin V Shvachko
23b6ab67f7 HDFS-15567. [SBN Read] HDFS should expose msync() API to allow downstream applications call it explicitly. Contributed by Konstantin V Shvachko.
(cherry picked from commit b3786d6c3cc13b0b92b9f42da1731c4ce35c9ded)
2020-10-12 17:42:58 -07:00
Stephen O'Donnell
71d006130e HDFS-15415. Reduce locking in Datanode DirectoryScanner. Contributed by Stephen O'Donnell.
Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org>
2020-09-28 12:45:28 -07:00
S O'Donnell
5f34e3214e HDFS-15583. Backport DirectoryScanner improvements HDFS-14476, HDFS-14751 and HDFS-15048 to branch 3.2 and 3.1. Contributed by Stephen O'Donnell 2020-09-22 10:34:05 +01:00
hemanthboyina
aa582ccc2a HDFS-15574. Remove unnecessary sort of block list in DirectoryScanner. Contributed by Stephen O'Donnell. 2020-09-17 10:15:18 +05:30
Ayush Saxena
544d6da3ab HDFS-15117. EC: Add getECTopologyResultForPolicies to DistributedFileSystem. Contributed by Ayush Saxena. (#2261) 2020-09-06 07:56:16 +05:30
Kitti Nanasi
9b8eaa0572 HDFS-14188. Make hdfs ec -verifyClusterSetup command accept an erasure coding policy as a parameter. Contributed by Kitti Nanasi.
Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org>
(cherry picked from commit 14282e311be6ffcaddd2f74fa8e67c4e98a32291)
2020-08-30 10:21:53 +05:30
Kitti Nanasi
3ba40d0ccf HDFS-14125. Use parameterized log format in ECTopologyVerifier. Contributed by Kitti Nanasi.
Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org>
(cherry picked from commit 5f15a60e329b8d0a495a977dc5255126814c5271)
2020-08-30 10:21:53 +05:30
Kitti Nanasi
0dbcb81a41 HDFS-14061. Check if the cluster topology supports the EC policy before setting, enabling or adding it. Contributed by Kitti Nanasi.
Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org>
(cherry picked from commit 951cdd7e4cbe68284620f6805f85c51301150c58)
2020-08-30 10:21:53 +05:30
Kitti Nanasi
a78430abf4 HDFS-12946. Add a tool to check rack configuration against EC policies. Contributed by Kitti Nanasi.
Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org>
(cherry picked from commit dd5e7c6b7239a93f2391beaa11181e442a387db4)
2020-08-30 10:21:35 +05:30
Uma Maheswara Rao G
0512b27172 HDFS-8631. WebHDFS : Support setQuota. Contributed by Chao Sun. (Backported) 2020-08-26 09:33:51 -07:00
Uma Maheswara Rao G
978ce5a1ee HDFS-15515: mkdirs on fallback should throw IOE out instead of suppressing and returning false (#2205)
* HDFS-15515: mkdirs on fallback should throw IOE out instead of suppressing and returning false

* Used LambdaTestUtils#intercept in test

(cherry picked from commit 99b120a06e27add0b9070c829cd828d41a150e8c)
2020-08-25 12:05:31 -07:00
S O'Donnell
a3f12f7f20 HDFS-14852. Removing from LowRedundancyBlocks does not remove the block from all queues. Contributed by Fei Hui.
(cherry picked from commit 6a49bf9bffbe9bad1c719fc3a3b734f0060df70a)
2020-08-25 15:49:54 +01:00
Chen Liang
4ab14692e6 HDFS-15290. NPE in HttpServer during NameNode startup. Contributed by Simbarashe Dzinamarira.
(cherry picked from commit f734455e5d76c75b7d3a0b751023f5bd02ba38d2)
2020-08-20 15:26:44 -07:00
Ayush Saxena
d6a9ed8140 HDFS-15514. Remove useless dfs.webhdfs.enabled. Contributed by Fei Hui. 2020-08-07 22:23:02 +05:30
Uma Maheswara Rao G
cd5efe91d9 HDFS-15478: When Empty mount points, we are assigning fallback link to self. But it should not use full URI for target fs. (#2160). Contributed by Uma Maheswara Rao G.
(cherry picked from commit ac9a07b51aefd0fd3b4602adc844ab0f172835e3)
2020-07-31 01:39:41 -07:00
Uma Maheswara Rao G
65778cdd47 HDFS-15464: ViewFsOverloadScheme should work when -fs option pointing to remote cluster without mount links (#2132). Contributed by Uma Maheswara Rao G.
(cherry picked from commit 3e700066394fb9f516e23537d8abb4661409cae1)
2020-07-31 01:39:06 -07:00
Uma Maheswara Rao G
1369e41c65 HDFS-15449. Optionally ignore port number in mount-table name when picking from initialized uri. Contributed by Uma Maheswara Rao G.
(cherry picked from commit dc0626b5f2f2ba0bd3919650ea231cedd424f77a)
2020-07-31 01:38:45 -07:00
Uma Maheswara Rao G
512d1d6d27 HDFS-15450. Fix NN trash emptier to work if ViewFSOveroadScheme enabled. Contributed by Uma Maheswara Rao G.
(cherry picked from commit 55a2ae80dc9b45413febd33840b8a653e3e29440)
2020-07-31 01:38:18 -07:00
Uma Maheswara Rao G
655b39cc30 HDFS-15430. create should work when parent dir is internalDir and fallback configured. Contributed by Uma Maheswara Rao G.
(cherry picked from commit 1f2a80b5e5024aeb7fb1f8c31b8fdd0fdb88bb66)
2020-07-31 01:37:14 -07:00
Ayush Saxena
27a97e4f28 HADOOP-17100. Replace Guava Supplier with Java8+ Supplier in Hadoop. Contributed by Ahmed Hussein. 2020-07-22 18:39:49 +05:30
Chen Liang
370efc6d95 HDFS-15404. ShellCommandFencer should expose info about source. Contributed by Chen Liang.
(cherry picked from commit 3833c616e087518196bcb77ac2479c66a0b188d8)
2020-07-20 14:07:10 -07:00
Akira Ajisaka
0d949d375e HADOOP-16753. Refactor HAAdmin. Contributed by Xieming Li.
(cherry picked from commit 1defe3a65af5faf5117978f4f2cf6a24d17a2e76)
2020-07-20 13:20:34 -07:00
He Xiaoqiao
6d003f67dd HDFS-14498. LeaseManager can loop forever on the file for which create has failed. Contributed by Stephen O'Donnell. 2020-07-16 23:59:05 +08:00
Ahmed Hussein
8fd3dcc9ce HADOOP-17099. Replace Guava Predicate with Java8+ Predicate
Signed-off-by: Jonathan Eagles <jeagles@gmail.com>
(cherry picked from commit 1f71c4ae71427a8a7476eaef64187a5643596552)
2020-07-15 12:05:49 -05:00
Ahmed Hussein
43a865dc07 HADOOP-17101. Replace Guava Function with Java8+ Function
Signed-off-by: Jonathan Eagles <jeagles@gmail.com>
(cherry picked from commit 98fcffe93f9ef910654574f69591fcdc621523af)
2020-07-15 10:18:47 -05:00
Shashikant Banerjee
acaee85a69 HDFS-15313. Ensure inodes in active filesytem are not deleted during snapshot delete. Contributed by Shashikant Banerjee.
(cherry picked from commit 82343790eebc3ebe7ef81f6b89260e5bbf121d83)
2020-07-15 13:38:29 +01:00
Eric Badger
37032bcaf6 Revert "HDFS-14498 LeaseManager can loop forever on the file for which create has failed. Contributed by Stephen O'Donnell."
This reverts commit edb45cac8216648fa2a121944ae4499397efd26f.
2020-07-13 21:08:12 +00:00
He Xiaoqiao
edb45cac82 HDFS-14498 LeaseManager can loop forever on the file for which create has failed. Contributed by Stephen O'Donnell. 2020-07-13 14:40:21 +08:00
Uma Maheswara Rao G
7607f24c9e HDFS-15394. Add all available fs.viewfs.overload.scheme.target.<scheme>.impl classes in core-default.xml bydefault. Contributed by Uma Maheswara Rao G.
(cherry picked from commit 3ca15292c5584ec220b3eeaf76da85d228bcbd8b)
2020-07-09 16:29:02 -07:00
Shanyu Zhao
8d4028864d HDFS-15451. Do not discard non-initial block report for provided storage. (#2119). Contributed by Shanyu Zhao.
Signed-off-by: He Xiaoqiao <hexiaoqiao@apache.org>
2020-07-07 11:53:29 +08:00
Ayush Saxena
642aafb106 HDFS-15446. CreateSnapshotOp fails during edit log loading for /.reserved/raw/path with error java.io.FileNotFoundException: Directory does not exist: /.reserved/raw/path. Contributed by Stephen O'Donnell. 2020-07-04 12:25:54 +05:30
Akira Ajisaka
37e0a1208c
HDFS-15421. IBR leak causes standby NN to be stuck in safe mode.
(cherry picked from commit c71ce7ac3370e220995bad0ae8b59d962c8d30a7)
2020-06-28 16:16:49 +09:00
Virajith Jalaparti
704b273ec8 HDFS-15436. Default mount table name used by ViewFileSystem should be configurable (#2100)
* HDFS-15436. Default mount table name used by ViewFileSystem should be configurable

* Replace Constants.CONFIG_VIEWFS_DEFAULT_MOUNT_TABLE use in tests

* Address Uma's comments on PR#2100

* Sort lists in test to match without concern to order

* Address comments, fix checkstyle and fix failing tests

* Fix checkstyle

(cherry picked from commit bed0a3a37404e9defda13a5bffe5609e72466e46)
2020-06-27 16:25:04 -07:00