[Remote Cluster State] Ensure proper closure of IndexInput created in ChecksumBlobStoreFormat #10978
Labels
bug
Something isn't working
Cluster Manager
ClusterManager:RemoteState
Storage
Issues and PRs relating to data and metadata storage
Is your feature request related to a problem? Please describe.
In the following code, IndexInput is opened and closed right after remote async calls are triggered. Currently, these streams have no-op close but if in future these are replaced with streams which require close then they can potentially throw errors (segment faults in case of MMap directories) because by the time async calls are made streams would have been already closed.
Describe the solution you'd like
All close calls should be made in the listener passed to
asyncBlobUpload
. Reference code fromRemoteDirectory.java
The text was updated successfully, but these errors were encountered: