-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use DirectoryFactory interface to create remote directory #6970
Use DirectoryFactory interface to create remote directory #6970
Conversation
Signed-off-by: Sachin Kale <kalsac@amazon.com>
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @sachinpkale! I actually noticed this a couple months ago so thanks for doing this.
Is it possible/is there a plan to evolve this code so that IndexService doesn't need to hold two directory factories and a single implementation can do the local+remote mirroring functionality offered by the two factories now?
* Use DirectoryFactory interface to create remote directory Signed-off-by: Sachin Kale <kalsac@amazon.com> * Fix tests Signed-off-by: Sachin Kale <kalsac@amazon.com> --------- Signed-off-by: Sachin Kale <kalsac@amazon.com> Co-authored-by: Sachin Kale <kalsac@amazon.com> (cherry picked from commit 56a2bed) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…-project#6970) * Use DirectoryFactory interface to create remote directory Signed-off-by: Sachin Kale <kalsac@amazon.com> * Fix tests Signed-off-by: Sachin Kale <kalsac@amazon.com> --------- Signed-off-by: Sachin Kale <kalsac@amazon.com> Co-authored-by: Sachin Kale <kalsac@amazon.com> Signed-off-by: Valentin Mitrofanov <mitrofmep@gmail.com>
Description
RemoteDirectoryFactory
interface to create an instance ofRemoteDirectory
.Repository
instance as an input. But in [Remote Store] Inject remote store in IndexShard instead of RemoteStoreRefreshListener #3703, we changed the parameter type fromRepository
toString
(repository name).DirectoryFactory
interface,RemoteDirectoryFactory
becomes redundant.Issues Resolved
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.