HDFS-16109. Fix flaky some unit tests since they offen timeout (#3172)

Reviewed-by: Ayush Saxena <ayushsaxena@apache.org>
Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
This commit is contained in:
litao 2021-07-05 07:14:37 +08:00 committed by GitHub
parent 35570e414a
commit b87bac13e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -877,7 +877,7 @@ public void run() {
* 2. close file with decommissioning
* @throws Exception
*/
@Test(timeout=180000)
@Test(timeout=360000)
public void testDecommissionWithCloseFileAndListOpenFiles()
throws Exception {
LOG.info("Starting test testDecommissionWithCloseFileAndListOpenFiles");

View File

@ -358,7 +358,7 @@ public void testDfsReservedPercentageForDifferentStorageTypes()
assertEquals(200, volume5.getAvailable());
}
@Test(timeout = 60000)
@Test(timeout = 300000)
public void testAddRplicaProcessorForAddingReplicaInMap() throws Exception {
BlockPoolSlice.reInitializeAddReplicaThreadPool();
Configuration cnf = new Configuration();

View File

@ -241,7 +241,7 @@ public void testOtherNodeNotActive() throws Exception {
* {@link DFSConfigKeys#DFS_IMAGE_TRANSFER_BOOTSTRAP_STANDBY_RATE_KEY}
* created by HDFS-8808.
*/
@Test(timeout=30000)
@Test(timeout=180000)
public void testRateThrottling() throws Exception {
cluster.getConfiguration(0).setLong(
DFSConfigKeys.DFS_IMAGE_TRANSFER_RATE_KEY, 1);