Skip to content

Commit 8e413f8

Browse files
paulward24dnhatn
authored andcommitted
Ensure to access RecoveryState#fileDetails under lock
Closes #43840
1 parent 0a41b13 commit 8e413f8

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
@@ -954,7 +954,7 @@ public synchronized String toString() {
954954
}
955955
}
956956

957-
public File getFileDetails(String dest) {
957+
public synchronized File getFileDetails(String dest) {
958958
return fileDetails.get(dest);
959959
}
960960
}

0 commit comments

Comments
 (0)