You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: master/src/test/java/org/apache/celeborn/service/deploy/master/clustermeta/ha/RatisMasterStatusSystemSuiteJ.java
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -119,6 +119,15 @@ public static void resetRaftServer(
119
119
120
120
while (!serversStarted) {
121
121
try {
122
+
// Re-point each server to a fresh storage directory on every attempt. Ratis releases the
123
+
// storage directory lock asynchronously on close(), so a failed attempt (e.g. a random
124
+
// ratis port collision) can leave the previous directory locked. Reusing the same
125
+
// directory on retry then fails with "directory is already locked"; allocating a clean
126
+
// directory each time avoids contending for a lock that has not been released yet.
0 commit comments