[ https://issues.apache.org/jira/browse/LUCENE-10457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17503322#comment-17503322 ]
Dawid Weiss edited comment on LUCENE-10457 at 3/9/22, 6:32 AM: --------------------------------------------------------------- On the one hand I'm with Mike – it should really work, symlink in path or not. On the other hand - I confirm what Robert says: on Windows links in the file system are even more complicated (try googling for reparse point, junctions)... It may be very difficult to make this randomized. Perhaps an explicit method createTempDirOrLink() would be better - this can be used explicitly from tests that cover tools and utilities (and not the core). was (Author: dweiss): On the one hand I'm with Mike – it should really work, symlink in path or not. On the other hang - I confirm what Robert says: on Windows links in the file system are even more complicated (try googling for reparse point, junctions)... It may be very difficult to make this randomized. Perhaps an explicit method createTempDirOrLink() would be better - this can be used explicitly from tests that cover tools and utilities (and not the core). > LuceneTestCase.createTempDir could randomly return symbolic links > ----------------------------------------------------------------- > > Key: LUCENE-10457 > URL: https://issues.apache.org/jira/browse/LUCENE-10457 > Project: Lucene - Core > Issue Type: Task > Components: general/test > Reporter: Mike Drob > Priority: Major > > When we are creating temporary directories to use for other Lucene functions, > we could occasionally provide symbolic links instead of direct references to > directories. If the system running tests doesn't support symbolic links, then > we should ignore this option. > Providing links would be useful to test scenarios for example where users > have a symbolic link for the "current" index directory and then rotate that > over time but applications still use the same link. -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org