Skip to content

Commit cff0274

Browse files
paulward24dnhatn
authored andcommitted
Ensure to access RecoveryState#fileDetails under lock
Closes #43840
1 parent 7059224 commit cff0274

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/indices/recovery/RecoveryState.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ public synchronized String toString() {
956956
}
957957
}
958958

959-
public File getFileDetails(String dest) {
959+
public synchronized File getFileDetails(String dest) {
960960
return fileDetails.get(dest);
961961
}
962962
}

0 commit comments

Comments
 (0)