velee commented on issue #14985:
URL: https://github.com/apache/lucene/issues/14985#issuecomment-3111662205

   eg. delegate chain: 
`org.apache.lucene.misc.store.ByteWritesTrackingDirectoryWrapper` -> 
`org.apache.lucene.misc.store.HardlinkCopyDirectoryWrapper` -> 
`org.apache.lucene.store.MMapDirectory`
   
   The expectation is to use hardlink instead of copy, but in fact copy is 
still used, because the call method `copyFrom` from 
`org.apache.lucene.misc.store.ByteWritesTrackingDirectoryWrapper` (it extend 
from `org.apache.lucene.store.Directory`). 
   
   If the `org.apache.lucene.store.FilterDirectory`'s method `copyFrom` is 
decorated, the `org.apache.lucene.misc.store.HardlinkCopyDirectoryWrapper`'s 
method `copyFrom` will be used.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to