n828cl commented on code in PR #882: URL: https://github.com/apache/tomcat/pull/882#discussion_r2282741701
########## java/org/apache/catalina/session/FileStore.java: ########## @@ -217,16 +233,21 @@ public Session load(String id) throws ClassNotFoundException, IOException { @Override public void remove(String id) throws IOException { File file = file(id); - if (file == null) { + if (file == null || !file.exists()) { Review Comment: What if the file is created one CPU cycle after the file.exists() call? I don't know if that's actually possible in this scenario, but this certainly looks like a classic example of double-checked locking. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org