FilterDirectory not delegate method copyFrom
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
### Description
`org.apache.lucene.store.FilterDirectory` not delegate method `copyFrom`, which causes `org.apache.lucene.store.HardlinkCopyDirectoryWrapper` to be ineffective in the middle layer of the delegate chain.
such as delegate chain:
org.elasticsearch.index.store.Store$StoreDirectory
org.elasticsearch.index.store.ByteSizeCachingDirectory
org.apache.lucene.store.HardlinkCopyDirectoryWrapper
org.elasticsearch.index.store.FsDirectoryFactory$HybridDirectory
the wapper `org.apache.lucene.store.HardlinkCopyDirectoryWrapper` not effect,because `org.elasticsearch.index.store.Store$StoreDirectory`‘s method `copyFrom` extends from `org.apache.lucene.store.Directory`
### Version and environment details
_No response_
Contributor guide
Research direction
Start with org.apache.lucene.store.FilterDirectory and its copyFrom method, then trace the delegate chain through HardlinkCopyDirectoryWrapper and the Elasticsearch directory classes named in the report. Confirm how the missing delegation prevents the hardlink wrapper from taking effect and identify the relevant storage tests; done means copyFrom reaches the wrapper correctly through the chain.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100