7601 Commits

Author SHA1 Message Date
Ahmed Hussein
5f5d7ecf59 HDFS-15706. HttpFS: Log more information on request failures. (#2515)
(cherry picked from commit 07655a7040806c4c9687288de89e42cfacf0365e)
(cherry picked from commit a7dbd3b6f978d28ef7e046add2e3270ae3d9d9f6)
(cherry picked from commit f547cd43d140dc680fab1782cda071f4a41dddc5)
2020-12-03 15:15:47 -08:00
Jim Brennan
521d5b381a HDFS-15703. Don't generate edits for set operations that are no-op (#2508). Contributed by Daryn Sharp and Ahmed Hussein 2020-12-02 22:25:12 +00:00
Ahmed Hussein
a63a30ff99 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:54:32 +00:00
Ahmed Hussein
2331f86dfb HDFS-15694. Avoid calling UpdateHeartBeatState inside DataNodeDescriptor. (#2487) Contributed by Kuhu Shukla and Ahmed Hussein
(cherry picked from commit 918ba9e82fb0bc6f96301c7ca74a32018b60c49e)
2020-12-01 21:43:37 +00:00
Takanobu Asanuma
cbc352ea2d 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:10:32 +09:00
Yizhong Zhang
e2d7e72c1b HADOOP-17142. Fix outdated properties of JournalNode when performing rollback. Contributed by Deegue.
(cherry picked from commit 82de07c794fe119946bec2e563c1937f312e8ac9)
(cherry picked from commit 12bfd9194a1b6ff89fb31f1f49e69c727f844155)
(cherry picked from commit 52c2ce53c25738713c6bc2b710249dd708c3d9de)
2020-11-10 09:14:37 -08:00
Ayush Saxena
76a7c0c0ef HDFS-15643. EC: Fix checksum computation in case of native encoders. (#2424). Contributed by Ayush Saxena. 2020-11-04 09:57:13 +05:30
Konstantin V Shvachko
079f1bb2f9 HDFS-15665. Balancer logging improvements. Contributed by Konstantin V Shvachko.
(cherry picked from commit d07dc7afb4aa0d6cc9f9be530802e54610776a4d)
2020-11-03 12:34:01 -08:00
Ahmed Hussein
34915b0373
HDFS-9776. testMultipleAppendsDuringCatchupTailing is flaky (#2410)
Co-authored-by: ahussein <ahmed.hussein@verizonmedia.com>
(cherry picked from commit ae74407ac43a480a010d40c182c1d4cc5346db8f)
2020-10-27 20:55:16 +09:00
Hui Fei
eb909fd726 HDFS-15641. DataNode could meet deadlock if invoke refreshNameNode. Contributed by Hongbing Wang.
(cherry picked from commit 12c908c827c80ea37ed5207a65831d0b699c8381)
2020-10-26 22:41:24 +08:00
Wei-Chiu Chuang
7f3645ec5b 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)
(cherry picked from commit 87666e243899e4cd706cfdcf037f3c0a623b85de)
2020-10-23 12:06:47 -07:00
Inigo Goiri
5f4a12c8a3 HDFS-15459. TestBlockTokenWithDFSStriped fails intermittently. Contributed by Ahmed Hussein.
(cherry picked from commit e7aa4da0a26988fcf5880311067e62a15e05fc1e)
2020-10-23 09:50:36 -07:00
Kihwal Lee
7a3085d552 HDFS-15622. Deleted blocks linger in the replications queue. Contributed by Ahmed Hussein.
(cherry picked from commit da1b6e3cc286db00b385f3280627d2b2063b4e59)
2020-10-22 21:01:09 -05:00
Kihwal Lee
33db7c140b HDFS-15618. Improve datanode shutdown latency. Contributed by Ahmed Hussein.
(cherry picked from commit cf932a7e2d6182471df4eba1333737912a32534b)
(cherry picked from commit f3b2d85690aeb65da7540f48edd52ca7315d0b02)
2020-10-22 15:26:34 -05:00
Takanobu Asanuma
c808a21550 HDFS-15639. [JDK 11] Fix Javadoc errors in hadoop-hdfs-client. (#2394)
(cherry picked from commit 30f06e0c742806c7b9edf00a92c98b1e9cfcb0e1)
2020-10-20 19:13:59 +09:00
Kihwal Lee
ffe6e39c96 HDFS-15628. HttpFS server throws NPE if a file is a symlink. Contributed by Ahmed Hussein.
(cherry picked from commit e45407128d4e9a9804c777c8f845ad41e1280177)
2020-10-16 11:41:17 -05:00
Kihwal Lee
9aefc1759b HDFS-15627. Log delete audits before collecting blocks.
(cherry picked from commit 740a2c46353f8005dbed6f5bc15f21acfc4a6a23)
2020-10-16 11:18:42 -05:00
Konstantin V Shvachko
2667fbd085 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:52:37 -07:00
Doroszlai, Attila
dd17772b53 HADOOP-16990. Update Mockserver. Contributed by Attila Doroszlai.
Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org>
(cherry picked from commit 8675a0d283bcf1f6a0c1e5953d28f7497c63ba66)
2020-10-08 23:44:43 -07:00
S O'Donnell
4a8b59df59 HDFS-15415. Reduce locking in Datanode DirectoryScanner. Contributed by Stephen O'Donnell 2020-09-30 09:39:34 +01:00
S O'Donnell
27b2c1ea7b HDFS-15583. Backport DirectoryScanner improvements HDFS-14476, HDFS-14751 and HDFS-15048 to branch 3.2 and 3.1. Contributed by Stephen O'Donnell
(cherry picked from commit 5f34e3214e42098c7515f0441697980303aab643)
2020-09-22 10:51:16 +01:00
hemanthboyina
43b113de69 HDFS-15574. Remove unnecessary sort of block list in DirectoryScanner. Contributed by Stephen O'Donnell.
(cherry picked from commit aa582ccc2a2d7fa08cfa1a04d4cfa28c40183f14)
2020-09-17 10:17:30 +05:30
Uma Maheswara Rao G
0808cb6355 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:16:47 -07:00
S O'Donnell
0f234667dd 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 16:05:00 +01:00
Chen Liang
e54128205c HDFS-15290. NPE in HttpServer during NameNode startup. Contributed by Simbarashe Dzinamarira. 2020-08-20 16:28:46 -07:00
Ayush Saxena
4af5fc86b2 HDFS-15514. Remove useless dfs.webhdfs.enabled. Contributed by Fei Hui. 2020-08-07 22:24:41 +05:30
Mingliang Liu
1a53bc6ecf
HDFS-15499. Clean up httpfs/pom.xml to remove aws-java-sdk-s3 exclusion (#2188)
Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
2020-08-04 23:13:41 -07:00
Uma Maheswara Rao G
1768618ab9 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:42:22 -07:00
Uma Maheswara Rao G
544602e3d1 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:42:03 -07:00
Uma Maheswara Rao G
7084b273ac 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:41:45 -07:00
Uma Maheswara Rao G
ab43b7bcfb 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:41:21 -07:00
Uma Maheswara Rao G
49a7f9ff7b 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:40:57 -07:00
Ayush Saxena
4592af898b HADOOP-17100. Replace Guava Supplier with Java8+ Supplier in Hadoop. Contributed by Ahmed Hussein. 2020-07-22 19:05:13 +05:30
Chen Liang
1e33696bc8 HDFS-15404. ShellCommandFencer should expose info about source. Contributed by Chen Liang.
(cherry picked from commit 3833c616e087518196bcb77ac2479c66a0b188d8)
(cherry picked from commit 370efc6d95fde8065dd5ba742446d0e9e570a5e9)
2020-07-20 15:24:07 -07:00
Akira Ajisaka
635067d03d HADOOP-16753. Refactor HAAdmin. Contributed by Xieming Li.
(cherry picked from commit 1defe3a65af5faf5117978f4f2cf6a24d17a2e76)
(cherry picked from commit 0d949d375e3e7602978f094f7ef7952783ab8421)
2020-07-20 13:37:08 -07:00
He Xiaoqiao
b611559755 HDFS-14498. LeaseManager can loop forever on the file for which create has failed. Contributed by Stephen O'Donnell. 2020-07-17 00:08:42 +08:00
S O'Donnell
1a11c4bc71 HDFS-15313. Ensure inodes in active filesytem are not deleted during snapshot delete. Contributed by Shashikant Banerjee. 2020-07-16 12:43:29 +01:00
Ahmed Hussein
b7b9bd32db 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:19:42 -05:00
Ahmed Hussein
34a6cbb5bb HADOOP-17101. Replace Guava Function with Java8+ Function
Signed-off-by: Jonathan Eagles <jeagles@gmail.com>
(cherry picked from commit 98fcffe93f9ef910654574f69591fcdc621523af)
(cherry picked from commit 43a865dc07437e0f767a902c4cfe6ca0472bf57f)
2020-07-15 11:01:34 -05:00
Eric Badger
2de0f99539 Revert "HDFS-14498 LeaseManager can loop forever on the file for which create has failed. Contributed by Stephen O'Donnell."
This reverts commit 0bfd1b5a945ec341a36678aa3c5318f1598fc716.
2020-07-13 21:12:04 +00:00
He Xiaoqiao
0bfd1b5a94 HDFS-14498 LeaseManager can loop forever on the file for which create has failed. Contributed by Stephen O'Donnell. 2020-07-13 14:41:22 +08:00
Uma Maheswara Rao G
4e1abe61a2 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:36 -07:00
Shanyu Zhao
d787b9373a 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 12:01:23 +08:00
Ayush Saxena
1e0424f39a 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:27:12 +05:30
Akira Ajisaka
d26dcf6686
HDFS-15421. IBR leak causes standby NN to be stuck in safe mode.
(cherry picked from commit c71ce7ac3370e220995bad0ae8b59d962c8d30a7)
2020-06-28 16:43:32 +09:00
Virajith Jalaparti
c4e0098bd6 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:26 -07:00
Uma Maheswara Rao G
30d1d29076 HDFS-15429. mkdirs should work when parent dir is an internalDir and fallback configured. Contributed by Uma Maheswara Rao G.
(cherry picked from commit d5e1bb6155496cf9d82e121dd1b65d0072312197)
2020-06-27 16:09:36 -07:00
Uma Maheswara Rao G
81e62613fb HDFS-15427. Merged ListStatus with Fallback target filesystem and InternalDirViewFS. Contributed by Uma Maheswara Rao G.
(cherry picked from commit 7c02d1889bbeabc73c95a4c83f0cd204365ff410)
2020-06-27 16:09:16 -07:00
Uma Maheswara Rao G
e17770dec6 HDFS-15418. ViewFileSystemOverloadScheme should represent mount links as non symlinks. Contributed by Uma Maheswara Rao G.
(cherry picked from commit b27810aa6015253866ccc0ccc7247ad7024c0730)
2020-06-27 16:08:57 -07:00
Uma Maheswara Rao G
208701329c HADOOP-17060. Clarify listStatus and getFileStatus behaviors inconsistent in the case of ViewFs implementation for isDirectory. Contributed by Uma Maheswara Rao G.
(cherry picked from commit 93b121a9717bb4ef5240fda877ebb5275f6446b4)
2020-06-27 16:08:38 -07:00