[jira] [Commented] (SOLR-9902) StandardDirectoryFactory should use Files API for it's move implementation.
[ https://issues.apache.org/jira/browse/SOLR-9902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15812950#comment-15812950 ] Mark Miller commented on SOLR-9902: --- I think it probably makes sense to throw an exception. For index integrity we really need a move rather than creating a new file unless the directory factory is ephemeral - so we don't want to easily hide move not working when using local fs or make it a normal path that we try multiple ways to move a file (beyond attempting an atomic move first). If neither an atomic or std move work, something should be very wrong. > StandardDirectoryFactory should use Files API for it's move implementation. > --- > > Key: SOLR-9902 > URL: https://issues.apache.org/jira/browse/SOLR-9902 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) >Reporter: Mark Miller >Assignee: Mark Miller > Fix For: master (7.0), 6.4 > > Attachments: SOLR-9902.patch > > > It's done in a platform independent way as opposed to the old File API. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-9902) StandardDirectoryFactory should use Files API for it's move implementation.
[ https://issues.apache.org/jira/browse/SOLR-9902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15812925#comment-15812925 ] Mike Drob commented on SOLR-9902: - One more clarification I'd be interested in here... If {{Files.move}} fails for whatever reason, would it make sense to fall back to the {{super.move}} implementation or is throwing the exception sufficient for a best effort attempt here? > StandardDirectoryFactory should use Files API for it's move implementation. > --- > > Key: SOLR-9902 > URL: https://issues.apache.org/jira/browse/SOLR-9902 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) >Reporter: Mark Miller >Assignee: Mark Miller > Fix For: master (7.0), 6.4 > > Attachments: SOLR-9902.patch > > > It's done in a platform independent way as opposed to the old File API. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-9902) StandardDirectoryFactory should use Files API for it's move implementation.
[ https://issues.apache.org/jira/browse/SOLR-9902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15809832#comment-15809832 ] ASF subversion and git services commented on SOLR-9902: --- Commit 8fca7442716ad3397096fc271b1b9c22dd436d53 in lucene-solr's branch refs/heads/branch_6x from markrmiller [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=8fca744 ] SOLR-9902: Fix move impl. > StandardDirectoryFactory should use Files API for it's move implementation. > --- > > Key: SOLR-9902 > URL: https://issues.apache.org/jira/browse/SOLR-9902 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) >Reporter: Mark Miller >Assignee: Mark Miller > Fix For: master (7.0), 6.4 > > Attachments: SOLR-9902.patch > > > It's done in a platform independent way as opposed to the old File API. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-9902) StandardDirectoryFactory should use Files API for it's move implementation.
[ https://issues.apache.org/jira/browse/SOLR-9902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15809557#comment-15809557 ] ASF subversion and git services commented on SOLR-9902: --- Commit 8bc151d1c61932dda26c682cf2281535f0c36058 in lucene-solr's branch refs/heads/master from markrmiller [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=8bc151d ] SOLR-9902: Fix move impl. > StandardDirectoryFactory should use Files API for it's move implementation. > --- > > Key: SOLR-9902 > URL: https://issues.apache.org/jira/browse/SOLR-9902 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) >Reporter: Mark Miller >Assignee: Mark Miller > Fix For: master (7.0), 6.4 > > Attachments: SOLR-9902.patch > > > It's done in a platform independent way as opposed to the old File API. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-9902) StandardDirectoryFactory should use Files API for it's move implementation.
[ https://issues.apache.org/jira/browse/SOLR-9902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15796420#comment-15796420 ] ASF subversion and git services commented on SOLR-9902: --- Commit cbf96e0d7572a28141226d92f978b8aef8bd2509 in lucene-solr's branch refs/heads/branch_6x from markrmiller [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=cbf96e0 ] SOLR-9902: StandardDirectoryFactory should use Files API for it's move implementation. > StandardDirectoryFactory should use Files API for it's move implementation. > --- > > Key: SOLR-9902 > URL: https://issues.apache.org/jira/browse/SOLR-9902 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) >Reporter: Mark Miller >Assignee: Mark Miller > Fix For: master (7.0), 6.4 > > Attachments: SOLR-9902.patch > > > It's done in a platform independent way as opposed to the old File API. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-9902) StandardDirectoryFactory should use Files API for it's move implementation.
[ https://issues.apache.org/jira/browse/SOLR-9902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15785071#comment-15785071 ] ASF subversion and git services commented on SOLR-9902: --- Commit 2781145eb3760489922530fd92d5f1d4c35215a9 in lucene-solr's branch refs/heads/master from markrmiller [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=2781145 ] SOLR-9902: StandardDirectoryFactory should use Files API for it's move implementation. > StandardDirectoryFactory should use Files API for it's move implementation. > --- > > Key: SOLR-9902 > URL: https://issues.apache.org/jira/browse/SOLR-9902 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) >Reporter: Mark Miller >Assignee: Mark Miller > Fix For: master (7.0), 6.4 > > Attachments: SOLR-9902.patch > > > It's done in a platform independent way as opposed to the old File API. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-9902) StandardDirectoryFactory should use Files API for it's move implementation.
[ https://issues.apache.org/jira/browse/SOLR-9902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15785039#comment-15785039 ] Mark Miller commented on SOLR-9902: --- Probably because I cut and pasted it from the Path javadoc. Not the only code that offers more than one way to do the same thing. {noformat} Accessing Files Paths may be used with the Files class to operate on files, directories, and other types of files. For example, suppose we want a BufferedReader to read text from a file "access.log". The file is located in a directory "logs" relative to the current working directory and is UTF-8 encoded. Path path = FileSystems.getDefault().getPath("logs", "access.log"); BufferReader reader = Files.newBufferedReader(path, StandardCharsets.UTF_8); {noformat} > StandardDirectoryFactory should use Files API for it's move implementation. > --- > > Key: SOLR-9902 > URL: https://issues.apache.org/jira/browse/SOLR-9902 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) >Reporter: Mark Miller >Assignee: Mark Miller > Fix For: master (7.0), 6.4 > > Attachments: SOLR-9902.patch > > > It's done in a platform independent way as opposed to the old File API. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-9902) StandardDirectoryFactory should use Files API for it's move implementation.
[ https://issues.apache.org/jira/browse/SOLR-9902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15784562#comment-15784562 ] David Smiley commented on SOLR-9902: Why does your patch do this: {code}FileSystems.getDefault().getPath(path1.toString(), fileName){code} Instead of simply: {code}path1.resolve(fileName){code} > StandardDirectoryFactory should use Files API for it's move implementation. > --- > > Key: SOLR-9902 > URL: https://issues.apache.org/jira/browse/SOLR-9902 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) >Reporter: Mark Miller >Assignee: Mark Miller > Fix For: master (7.0), 6.4 > > Attachments: SOLR-9902.patch > > > It's done in a platform independent way as opposed to the old File API. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org