jimczi commented on code in PR #16684:
URL: https://github.com/apache/lucene/pull/16684#discussion_r4146027129


##########
lucene/core/src/java/org/apache/lucene/codecs/lucene90/compressing/Lucene90CompressingStoredFieldsReader.java:
##########
@@ -253,9 +272,12 @@ private void ensureOpen() throws AlreadyClosedException {
 
   /** Close the underlying {@link IndexInput}s. */
   @Override
-  public void close() throws IOException {
+  public synchronized void close() throws IOException {

Review Comment:
   Done in `286e95c`. `close()` wasn't synchronized before this PR, so that was 
mine to undo. Also made `closed` volatile in `3650061`, since it's read under 
the lock.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to