Skip to content

Commit

Permalink
fix: time out interval
Browse files Browse the repository at this point in the history
  • Loading branch information
shengquanhu committed Dec 13, 2024
1 parent ec46bc5 commit 7bb408c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/main/java/org/apache/hadoop/fs/CosNFileSystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ public class CosNFileSystem extends FileSystem {
private boolean createOpCheckExistFile = true;

private boolean directoryFirstEnabled;
private String uuid;

// todo: flink or some other case must replace with inner structure.
public CosNFileSystem() {
Expand Down
6 changes: 0 additions & 6 deletions src/main/java/org/apache/hadoop/fs/CosNUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import java.nio.file.Paths;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.TimeUnit;
import java.io.File;
import java.io.FileInputStream;
Expand Down Expand Up @@ -354,9 +353,4 @@ public static boolean checkDirectoryRWPermissions(String directoryPath) {

return isReadable && isWritable;
}

public static String generateUUID() {
UUID uuid = UUID.randomUUID();
return uuid.toString();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class CosNFileSystemTestBase extends CosNFileSystemTestWithTimeout {
protected static Configuration configuration;
protected static FileSystem fs;

protected static final Path unittestDirPath = new Path("/unittest-dir");
protected static final Path unittestDirPath = new Path("/unittest-dir" + RandomStringUtils.randomAlphanumeric(8));
protected final Path testDirPath = new Path(unittestDirPath, "test-dir");
protected final Path testFilePath = new Path(unittestDirPath, "test-file");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void nameThread() {
* @return a timeout in milliseconds
*/
protected int getTestTimeoutMillis() {
return 60 * 2 * 1000;
return 60 * 10 * 1000;
}

}

0 comments on commit 7bb408c

Please sign in to comment.