Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1410,7 +1410,7 @@ private void confirmOwner(String owner, String group,
}
}

@Test (timeout = 30000)
@Test (timeout = 60000)
public void testFilePermissions() throws IOException {
Configuration conf = new HdfsConfiguration();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ public void testServerDefaultsWithMinimalCaching() throws Exception {
defaults.getDefaultStoragePolicyId());
doReturn(newDefaults).when(spyNamesystem).getServerDefaults();

// Verify that the value is updated correctly. Wait for 3 seconds.
// Verify that the value is updated correctly. Wait for 6 seconds.
GenericTestUtils.waitFor(()->{
try {
FsServerDefaults currDef = dfsClient.getServerDefaults();
Expand All @@ -282,7 +282,7 @@ public void testServerDefaultsWithMinimalCaching() throws Exception {
// do nothing;
return false;
}
}, 1, 3000);
}, 1, 6000);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment Wait for 3 seconds above also needs to be changed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your help review, I will fix it.


} finally {
cluster.shutdown();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1351,7 +1351,7 @@ public void testSPSWhenFileHasLowRedundancyBlocks() throws Exception {
* 4. Set policy and call satisfyStoragePolicy for file.
* 5. Block should be moved successfully.
*/
@Test(timeout = 300000)
@Test(timeout = 600000)
public void testSPSWhenFileHasExcessRedundancyBlocks() throws Exception {
try {
config.set(DFSConfigKeys
Expand Down