… with FileCache (opensearch-project#12782)
* Composite Directory POC
Signed-off-by: Shreyansh Ray <rayshrey@amazon.com>
* Refactor TransferManager interface to RemoteStoreFileTrackerAdapter
Signed-off-by: Shreyansh Ray <rayshrey@amazon.com>
* Implement block level fetch for Composite Directory
Signed-off-by: Shreyansh Ray <rayshrey@amazon.com>
* Removed CACHE state from FileTracker
Signed-off-by: Shreyansh Ray <rayshrey@amazon.com>
* Fixes after latest pull
Signed-off-by: Shreyansh Ray <rayshrey@amazon.com>
* Add new setting for warm, remove store type setting, FileTracker and RemoteStoreFileTrackerAdapter, CompositeDirectoryFactory and update Composite Directory implementation
Signed-off-by: Shreyansh Ray <rayshrey@amazon.com>
* Modify TransferManager - replace BlobContainer with Functional Interface to fetch an InputStream instead
Signed-off-by: Shreyansh Ray <rayshrey@amazon.com>
* Reuse OnDemandBlockSnapshotIndexInput instead of OnDemandBlockCompositeIndexInput
Signed-off-by: Shreyansh Ray <rayshrey@amazon.com>
* Modify constructors to avoid breaking public api contract and code review fixes
Signed-off-by: Shreyansh Ray <rayshrey@amazon.com>
* Add experimental annotations for newly created classes and review comment fixes
Signed-off-by: Shreyansh Ray <rayshrey@amazon.com>
* Use ref count as a temporary measure to prevent file from eviction until uploaded to Remote
Signed-off-by: Shreyansh Ray <rayshrey@amazon.com>
* Remove method level locks
Signed-off-by: Shreyansh Ray <rayshrey@amazon.com>
* Handle tmp file deletion
Signed-off-by: Shreyansh Ray <rayshrey@amazon.com>
* Nit fixes
Signed-off-by: Shreyansh Ray <rayshrey@amazon.com>
* Handle delete and close in Composite Directory, log current state of FileCache and correct it's clear method and modify unit and integration tests as per review comments
Signed-off-by: Shreyansh Ray <rayshrey@amazon.com>
* Refactor usages of WRITEABLE_REMOTE_INDEX_SETTING to TIERED_REMOTE_INDEX_SETTING
Signed-off-by: Shreyansh Ray <rayshrey@amazon.com>
* Add tests for FileCachedIndexInput and review comment fixes
Signed-off-by: Shreyansh Ray <rayshrey@amazon.com>
* Add additional IT for feature flag disabled
Signed-off-by: Shreyansh Ray <rayshrey@amazon.com>
* Move setting for Partial Locality type behind Feature Flag, fix bug for ref count via cloneMap in FullFileCachedIndexInput and other review fixes
Signed-off-by: Shreyansh Ray <rayshrey@amazon.com>
* Minor test and nit fixes
Signed-off-by: Shreyansh Ray <rayshrey@amazon.com>
* Add javadocs for FullFileCachedIndexInput
Signed-off-by: Shreyansh Ray <rayshrey@amazon.com>
* Minor precommit fixes
Signed-off-by: Shreyansh Ray <rayshrey@amazon.com>
---------
Signed-off-by: Shreyansh Ray <rayshrey@amazon.com>