Coaleshing of refresh operations can save some disk reads on SharingBufferReaderProvider.PerDirectoryLatestReader.refreshAndGet()

Description

The locking acquisition in SharingBufferReaderProvider is designed to prevent duplicate IO operations, but it should avoid checking for freshness again if it has been waiting for the lock.

Does not affect NRT.

Environment

None
Fixed

Assignee

Sanne Grinovero

Reporter

Sanne Grinovero

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Components

Fix versions

Priority

Major
Configure