Skip to content

Commit

Permalink
fix lock path error
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinKirs committed Sep 19, 2023
1 parent c80bf87 commit 8c764fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fe/fe-core/src/main/java/org/apache/doris/DorisFE.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ public class DorisFE {


private static String LOCK_FILE_PATH;

private static final String LOCK_FILE_NAME = "process.lock";
private static FileChannel processLockFileChannel;
private static FileLock processFileLock;

Expand Down Expand Up @@ -110,7 +112,7 @@ public static void start(String dorisHomeDir, String pidDir, String[] args, Star
// Must init custom config after init config, separately.
// Because the path of custom config file is defined in fe.conf
config.initCustom(Config.custom_config_dir + "/fe_custom.conf");
LOCK_FILE_PATH = Config.meta_dir + "/process.lock";
LOCK_FILE_PATH = Config.meta_dir + "/" + LOCK_FILE_NAME;
try {
tryLockProcess();
} catch (Exception e) {
Expand Down

0 comments on commit 8c764fb

Please sign in to comment.