Skip to content

Commit a6cad19

Browse files
committed
sometimes
1 parent a925aee commit a6cad19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/index/engine/InternalEngine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2054,7 +2054,7 @@ protected final RefreshResult refresh(String source, SearcherScope scope, boolea
20542054

20552055
// The shard uses a reentrant read/write lock to guard again engine changes, a type of lock that prioritizes the threads
20562056
// waiting for the write lock over the threads trying to acquire a (non-reentrant) read lock. Because refresh listeners
2057-
// are accessing the engine read lock, we need to ensure that they won't block if another thread is waiting for the
2057+
// sometimes access the engine read lock, we need to ensure that they won't block if another thread is waiting for the
20582058
// engine write lock, so we acquire the read lock upfront before the refresh lock.
20592059
final var engineReadLock = engineConfig.getEngineResetLock().readLock();
20602060

0 commit comments

Comments
 (0)