刘珍 created IOTDB-4114: ------------------------- Summary: ERROR o.a.r.s.s.RaftStorageDirectoryImpl:226 - Unable to acquire file lock on path ..in_use.lock Key: IOTDB-4114 URL: https://issues.apache.org/jira/browse/IOTDB-4114 Project: Apache IoTDB Issue Type: Bug Components: mpp-cluster Affects Versions: 0.14.0-SNAPSHOT Reporter: 刘珍 Assignee: Song Ziyang
master_0811_4c9fa69,3副本3C7D confignode报错: 2022-08-11 14:05:24,420 [pool-2-thread-1] ERROR o.a.r.s.s.RaftStorageDirectoryImpl:226 - Unable to acquire file lock on path /data/iotdb/master_0811_4c9fa69/confignode/sbin/../data/consensus/47474747-4747-4747-4747-000000000000/in_use.lock 2022-08-11 14:05:24,422 [pool-2-thread-1] ERROR o.a.r.s.s.RaftStorageDirectoryImpl:233 - It appears that another process has already locked the storage directory: /data/iotdb/master_0811_4c9fa69/confignode/sbin/../data/consensus/47474747-4747-4747-4747-000000000000 java.nio.channels.OverlappingFileLockException: null at org.apache.ratis.server.storage.RaftStorageDirectoryImpl.tryLock(RaftStorageDirectoryImpl.java:227) at org.apache.ratis.server.storage.RaftStorageDirectoryImpl.lambda$lock$0(RaftStorageDirectoryImpl.java:194) at org.apache.ratis.util.JavaUtils.attempt(JavaUtils.java:166) at org.apache.ratis.util.FileUtils.attempt(FileUtils.java:40) at org.apache.ratis.server.storage.RaftStorageDirectoryImpl.lock(RaftStorageDirectoryImpl.java:194) at org.apache.ratis.server.storage.RaftStorageDirectoryImpl.analyzeStorage(RaftStorageDirectoryImpl.java:153) at org.apache.ratis.server.storage.RaftStorageImpl.analyzeAndRecoverStorage(RaftStorageImpl.java:97) at org.apache.ratis.server.storage.RaftStorageImpl.<init>(RaftStorageImpl.java:67) at org.apache.ratis.server.storage.RaftStorageImpl.<init>(RaftStorageImpl.java:52) at org.apache.ratis.server.impl.ServerState.<init>(ServerState.java:116) at org.apache.ratis.server.impl.RaftServerImpl.<init>(RaftServerImpl.java:201) at org.apache.ratis.server.impl.RaftServerProxy.lambda$newRaftServerImpl$5(RaftServerProxy.java:274) at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) 2022-08-11 14:05:24,423 [pool-2-thread-1] WARN o.a.ratis.util.JavaUtils:172 - FAILED "tryLock /data/iotdb/master_0811_4c9fa69/confignode/sbin/../data/consensus/47474747-4747-4747-4747-000000000000/in_use.lock", attempt #1/5: java.io.IOException: Failed to lock storage /data/iotdb/master_0811_4c9fa69/confignode/sbin/../data/consensus/47474747-4747-4747-4747-000000000000. The directory is already locked, sleep 1s and then retry. java.io.IOException: Failed to lock storage /data/iotdb/master_0811_4c9fa69/confignode/sbin/../data/consensus/47474747-4747-4747-4747-000000000000. The directory is already locked at org.apache.ratis.server.storage.RaftStorageDirectoryImpl.tryLock(RaftStorageDirectoryImpl.java:236) at org.apache.ratis.server.storage.RaftStorageDirectoryImpl.lambda$lock$0(RaftStorageDirectoryImpl.java:194) at org.apache.ratis.util.JavaUtils.attempt(JavaUtils.java:166) at org.apache.ratis.util.FileUtils.attempt(FileUtils.java:40) at org.apache.ratis.server.storage.RaftStorageDirectoryImpl.lock(RaftStorageDirectoryImpl.java:194) at org.apache.ratis.server.storage.RaftStorageDirectoryImpl.analyzeStorage(RaftStorageDirectoryImpl.java:153) at org.apache.ratis.server.storage.RaftStorageImpl.analyzeAndRecoverStorage(RaftStorageImpl.java:97) at org.apache.ratis.server.storage.RaftStorageImpl.<init>(RaftStorageImpl.java:67) at org.apache.ratis.server.storage.RaftStorageImpl.<init>(RaftStorageImpl.java:52) at org.apache.ratis.server.impl.ServerState.<init>(ServerState.java:116) at org.apache.ratis.server.impl.RaftServerImpl.<init>(RaftServerImpl.java:201) at org.apache.ratis.server.impl.RaftServerProxy.lambda$newRaftServerImpl$5(RaftServerProxy.java:274) at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.nio.channels.OverlappingFileLockException: null at org.apache.ratis.server.storage.RaftStorageDirectoryImpl.tryLock(RaftStorageDirectoryImpl.java:227) ... 15 common frames omitted -- This message was sent by Atlassian Jira (v8.20.10#820010)