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
Uma Maheswara Rao G
100c13967e
HDFS-15387. FSUsage#DF should consider ViewFSOverloadScheme in processPath. Contributed by Uma Maheswara Rao G.
...
(cherry picked from commit 785b1def959fab6b8b7ffff66410bcd240feee13)
(cherry picked from commit 120ee793fc4bcbf9d1945d5e38e3ad5b2b290a0e)
2020-06-27 16:07:28 -07:00
Ayush Saxena
f7e590aaff
HDFS-15389. DFSAdmin should close filesystem and dfsadmin -setBalancerBandwidth should work with ViewFSOverloadScheme. Contributed by Ayush Saxena
...
(cherry picked from commit cc671b16f7b0b7c1ed7b41b96171653dc43cf670)
(cherry picked from commit bee2846bee4ae676bdc14585f8a3927a9dd7df37)
2020-06-27 16:06:52 -07:00
Uma Maheswara Rao G
64dbb39e71
HDFS-15330. Document the ViewFSOverloadScheme details in ViewFS guide. Contributed by Uma Maheswara Rao G.
...
(cherry picked from commit 76fa0222f0d2e2d92b4a1eedba8b3e38002e8c23)
(cherry picked from commit 418580446b65be3a0674762e76fc2cb9a1e5629a)
2020-06-27 16:06:25 -07:00
Uma Maheswara Rao G
2e1dfc152b
HDFS-15321. Make DFSAdmin tool to work with ViewFileSystemOverloadScheme. Contributed by Uma Maheswara Rao G.
...
(cherry picked from commit ed83c865dd0b4e92f3f89f79543acc23792bb69c)
(cherry picked from commit 0b5e202614f0bc20a0db6656f924fa4d2741d00c)
2020-06-27 16:06:04 -07:00
Uma Maheswara Rao G
6ae92962d9
HDFS-15322. Make NflyFS to work when ViewFsOverloadScheme's scheme and target uris schemes are same. Contributed by Uma Maheswara Rao G.
...
(cherry picked from commit 4734c77b4b64b7c6432da4cc32881aba85f94ea1)
(cherry picked from commit 8e71e85af70c17f2350f794f8bc2475eb1e3acea)
2020-06-27 16:05:36 -07:00
Abhishek Das
7015589f58
HADOOP-17024. ListStatus on ViewFS root (ls "/") should list the linkFallBack root (configured target root). Contributed by Abhishek Das.
...
(cherry picked from commit ce4ec7445345eb94c6741d416814a4eac319f0a6)
(cherry picked from commit 5b248de42d2ae42710531a1514a21d60a1fca4b2)
2020-06-27 16:05:09 -07:00
Uma Maheswara Rao G
c4857bb9c1
HDFS-15306. Make mount-table to read from central place ( Let's say from HDFS). Contributed by Uma Maheswara Rao G.
...
(cherry picked from commit ac4a2e11d98827c7926a34cda27aa7bcfd3f36c1)
(cherry picked from commit 544996c85702af7ae241ef2f18e2597e2b4050be)
2020-06-27 16:04:23 -07:00
S O'Donnell
9d891f08c2
HDFS-15406. Improve the speed of Datanode Block Scan. Contributed by hemanthboyina
...
(cherry picked from commit 123777823edc98553fcef61f1913ab6e4cd5aa9a)
2020-06-18 12:59:47 +01:00
Eric Yang
a8d3d4a2a8
SPNEGO TLS verification
...
Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
(cherry picked from commit 81d8a887b0406380e469c76ed2e41022a6372dd7)
2020-06-15 11:13:06 +09:00
Takanobu Asanuma
c2f908482f
HDFS-15403. NPE in FileIoProvider#transferToSocketFully. Contributed by hemanthboyina.
...
(cherry picked from commit f41a144077fc0e2d32072e0d088c1abd1897cee5)
2020-06-15 09:18:55 +09:00
Ayush Saxena
9f02fea756
HDFS-15211. EC: File write hangs during close in case of Exception during updatePipeline. Contributed by Ayush Saxena.
...
*Added missed test file.
2020-06-09 18:49:17 +05:30
Toshihiro Suzuki
f701d7bdd1
HDFS-15386. ReplicaNotFoundException keeps happening in DN after removing multiple DN's data directories ( #2052 )
...
Contributed by Toshihiro Suzuki.
(cherry picked from commit 545a0a147c5256c44911ba57b4898e01d786d836)
Conflicts:
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/TestFsDatasetImpl.java
(cherry picked from commit e5a02a7499cb124e166fc2765c082efe3b92fe29)
2020-06-05 12:36:05 +01:00
Takanobu Asanuma
7168938223
HDFS-15363. BlockPlacementPolicyWithNodeGroup should validate if it is initialized by NetworkTopologyWithNodeGroup. Contributed by hemanthboyina.
...
(cherry picked from commit 4d22d1c58f0eb093775f0fe4f39ef4be639ad752)
2020-05-23 17:35:30 +09:00
Chen Liang
8f53545f9d
HDFS-15293. Relax the condition for accepting a fsimage when receiving a checkpoint. Contributed by Chen Liang
2020-05-18 12:08:08 -07:00
Akira Ajisaka
de4ac41528
Revert "SPNEGO TLS verification"
...
This reverts commit 4b7d6667fdc1e252c717fb98a01015f046910672.
2020-05-13 17:16:15 +09:00
Uma Maheswara Rao G
fda93334dc
HDFS-15305. Extend ViewFS and provide ViewFileSystemOverloadScheme implementation with scheme configurable. Contributed by Uma Maheswara Rao G.
...
(cherry picked from commit 9c8236d04dfc3d4cefe7a00b63625f60ee232cfe)
2020-05-12 21:33:49 -07:00
Virajith Jalaparti
bec5d7baa0
HADOOP-15565. Add an inner FS cache to ViewFileSystem, separate from the global cache, to avoid file system leaks. Contributed by Jinglun.
2020-05-12 19:37:40 -07:00
Ayush Saxena
d24e1bc388
HDFS-14367. EC: Parameter maxPoolSize in striped reconstruct thread pool isn't affecting number of threads. Contributed by Guo Lei.
2020-05-12 18:45:52 +05:30
Babneet Singh
42997d14a9
HDFS-15270. Account for *env == NULL in hdfsThreadDestructor ( #1951 )
...
OpenJ9 JVM properly terminates the thread before hdfsThreadDestructor is
invoked. JNIEnv is a mirror of J9VMThread in OpenJ9. After proper thread
termination, accessing JNIEnv in hdfsThreadDestructor (*env)->GetJavaVM,
yields a SIGSEGV since *env is NULL after thread cleanup is performed.
The main purpose of hdfsThreadDestructor is to invoke
DetachCurrentThread, which performs thread cleanup in OpenJ9. Since
OpenJ9 performs thread cleanup before hdfsThreadDestructor is invoked,
hdfsThreadDestructor should account for *env == NULL and skip
DetachCurrentThread.
Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
(cherry picked from commit 1996351b0b7be6866eda73223ab6ef1ec78d30cd)
(cherry picked from commit d1e5e393c30ef25212be365651404c1034532338)
(cherry picked from commit 44fdee351dfaecb4012fc47761054cf84d67a667)
2020-05-11 10:46:21 -07:00
Ayush Saxena
86c15b8287
HDFS-15250. Setting dfs.client.use.datanode.hostname
to true can crash the system because of unhandled UnresolvedAddressException. Contributed by Ctest.
2020-05-10 11:45:13 +05:30
Ayush Saxena
8988f33ac3
HDFS-15339. TestHDFSCLI fails for user names with the dot/dash character. Contributed by Yan Xiaole.
2020-05-08 00:57:41 +05:30
He Xiaoqiao
dbb2809026
HDFS-15272. Backport HDFS-12862 to branch-3.1. Contributed by Xiaoqiao He, Wang XL.
...
Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org>
2020-05-04 18:13:01 -07:00
Inigo Goiri
5612537df0
HDFS-14599. HDFS-12487 breaks test TestDiskBalancer.testDiskBalancerWithFedClusterWithOneNameServiceEmpty. Contributed by He Xiaoqiao.
...
(cherry picked from commit 4a212242d99071d028b40c2f5d40afb7f337e471)
2020-05-04 18:03:57 -07:00
Konstantin V Shvachko
8358d7c175
HDFS-15323. StandbyNode fails transition to active due to insufficient transaction tailing. Contributed by Konstantin V Shvachko.
...
(cherry picked from commit ebb878bab991c242b5089a18881aa10abf318ea0)
2020-05-04 10:50:14 -07:00
Ayush Saxena
69163f5e5d
Erasure Coding: metrics xmitsInProgress become to negative. Contributed by maobaolong and Toshihiko Uchida.
2020-05-03 19:18:04 +05:30
Eric Yang
4b7d6667fd
SPNEGO TLS verification
...
Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
(cherry picked from commit ba66f3b454a5f6ea84f2cf7ac0082c555e2954a7)
2020-05-02 21:52:06 +09:00
Gabor Bota
ec6d2a8402
Preparing for 3.1.5 development
...
Change-Id: Iabc64aba7392e3b6f9e4e18109fcaa2cfc01d1f9
2020-04-29 11:18:18 +02:00
Akira Ajisaka
74ec3c001d
HDFS-15286. Concat on a same file deleting the file. Contributed by hemanthboyina.
...
(cherry picked from commit 5e0eda5d5f696aba7fc209874d232baf2a50d547)
2020-04-28 06:30:38 +09:00
Mingliang Liu
75354285e6
HDFS-15297. TestNNHandlesBlockReportPerStorage::blockReport_02 fails intermittently. Contributed by Ayush Saxena
2020-04-25 15:49:29 -07:00
Dhiraj
68dcdad666
HDFS-15281. Make sure ZKFC uses dfs.namenode.rpc-address to bind to host address ( #1964 )
...
Contributed by Dhiraj Hegde.
Signed-off-by: Mingliang Liu <liuml07@apache.org>
Signed-off-by: Inigo Goiri <inigoiri@apache.org>
2020-04-25 13:53:32 -07:00
Wei-Chiu Chuang
6f7a30fd71
HDFS-15295. AvailableSpaceBlockPlacementPolicy should use chooseRandomWithStorageTypeTwoTrial() for better performance. Contributed by Jinglun.
...
(cherry picked from commit 453771f170a062265b7687b31b2a3735827958fb)
(cherry picked from commit d6c48f81009eaf9462cb6ad1ec1cbe609b223cb2)
(cherry picked from commit 9e3b4c9ebd926aa7a5766fcc22239a4951982fc7)
2020-04-24 11:54:29 -07:00
Mingliang Liu
03ff1d3bd8
HDFS-15276. Concat on INodeRefernce fails with illegal state exception. Contributed by hemanthboyina
2020-04-22 14:14:19 -07:00
Inigo Goiri
3938aa422e
HDFS-14004. TestLeaseRecovery2#testCloseWhileRecoverLease fails intermittently in trunk. Contributed by Ayush Saxena.
...
(cherry picked from commit efdfe679d64ce9de4ba6aaf2afa34e180f68d969)
(cherry picked from commit 7d64d44515045bb3dedd91a4a0351bc5a6178a14)
2020-04-21 09:50:31 -07:00
Stephen O'Donnell
0ea8f3a19c
HDFS-15283. Cache pool MAXTTL is not persisted and restored on cluster restart. Contributed by Stephen O'Donnell.
...
Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org>
(cherry picked from commit 3481895f8a9ea9f6e217a0ba158c48da89b3faf2)
(cherry picked from commit aaad947c740c91c36139f3f0569ae78b53bca682)
(cherry picked from commit 041c93a26cd0ff705bea9d6283951702cf2cf1c2)
2020-04-16 20:19:26 -07:00
Ayush Saxena
6a4c3fad66
HDFS-14647. NPE during secure namenode startup. Contributed by Fengnan Li.
...
(cherry picked from commit 62deab17a33cef723d73f8d8b9e37e5bddbc1813)
(cherry picked from commit 6cd9290401735a2c33a0ff0ae7324876ef9615e9)
2020-03-25 17:14:24 -07:00
Eric Yang
b837431a08
HDFS-14434. Ignore user.name query parameter in secure WebHDFS.
...
Contributed by KWON BYUNGCHANG
(cherry picked from commit d78854b928bb877f26b11b5b212a100a79941f35)
Conflicts:
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/web/TestWebHdfsTokens.java
(cherry picked from commit ba6b3a384863b57bc7eeeb736950f544e6ed8d6d)
2020-03-25 17:14:18 -07:00
Giovanni Matteo Fumarola
4aa7734fc7
HDFS-14006. Refactor name node to allow different token verification implementations. Contributed by CR Hota.
...
(cherry picked from commit 00d5e631b596f8712600879366e5283829e7ee5d)
(cherry picked from commit eca7bc7ac4292ff08b9e1ea2e22116d6e58e8b95)
Conflicts:
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java
2020-03-25 17:13:58 -07:00