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>
(cherry picked from commit b87bac13e4
)
This commit is contained in:
parent
f1a14df9e6
commit
aec8c9188a
@ -877,7 +877,7 @@ public void run() {
|
|||||||
* 2. close file with decommissioning
|
* 2. close file with decommissioning
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
@Test(timeout=180000)
|
@Test(timeout=360000)
|
||||||
public void testDecommissionWithCloseFileAndListOpenFiles()
|
public void testDecommissionWithCloseFileAndListOpenFiles()
|
||||||
throws Exception {
|
throws Exception {
|
||||||
LOG.info("Starting test testDecommissionWithCloseFileAndListOpenFiles");
|
LOG.info("Starting test testDecommissionWithCloseFileAndListOpenFiles");
|
||||||
|
@ -331,7 +331,7 @@ public void testDfsReservedPercentageForDifferentStorageTypes()
|
|||||||
assertEquals(600, volume4.getReserved());
|
assertEquals(600, volume4.getReserved());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 60000)
|
@Test(timeout = 300000)
|
||||||
public void testAddRplicaProcessorForAddingReplicaInMap() throws Exception {
|
public void testAddRplicaProcessorForAddingReplicaInMap() throws Exception {
|
||||||
BlockPoolSlice.reInitializeAddReplicaThreadPool();
|
BlockPoolSlice.reInitializeAddReplicaThreadPool();
|
||||||
Configuration cnf = new Configuration();
|
Configuration cnf = new Configuration();
|
||||||
|
@ -241,7 +241,7 @@ public void testOtherNodeNotActive() throws Exception {
|
|||||||
* {@link DFSConfigKeys#DFS_IMAGE_TRANSFER_BOOTSTRAP_STANDBY_RATE_KEY}
|
* {@link DFSConfigKeys#DFS_IMAGE_TRANSFER_BOOTSTRAP_STANDBY_RATE_KEY}
|
||||||
* created by HDFS-8808.
|
* created by HDFS-8808.
|
||||||
*/
|
*/
|
||||||
@Test(timeout=30000)
|
@Test(timeout=180000)
|
||||||
public void testRateThrottling() throws Exception {
|
public void testRateThrottling() throws Exception {
|
||||||
cluster.getConfiguration(0).setLong(
|
cluster.getConfiguration(0).setLong(
|
||||||
DFSConfigKeys.DFS_IMAGE_TRANSFER_RATE_KEY, 1);
|
DFSConfigKeys.DFS_IMAGE_TRANSFER_RATE_KEY, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user