[jira] Updated: (SOLR-658) Allow Solr to load index from arbitrary directory in dataDir and Commit point
[ https://issues.apache.org/jira/browse/SOLR-658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shalin Shekhar Mangar updated SOLR-658: --- Attachment: SOLR-658.patch Instead of comparing path strings, we should compare the corresponding File objects to handle relative and absolute paths correctly. Patch to cover the above case. Allow Solr to load index from arbitrary directory in dataDir and Commit point - Key: SOLR-658 URL: https://issues.apache.org/jira/browse/SOLR-658 Project: Solr Issue Type: Improvement Affects Versions: 1.4 Reporter: Noble Paul Assignee: Shalin Shekhar Mangar Fix For: 1.4 Attachments: SOLR-658.patch, SOLR-658.patch, SOLR-658.patch, SOLR-658.patch, SOLR-658.patch, SOLR-658.patch This is a requirement for java based Solr replication Usecase for arbitrary index directory: if the slave has a corrupted index and the filesystem does not allow overwriting files in use (NTFS) replication will fail. The solution is to copy the index from master to an alternate directory on slave and load indexreader/indexwriter from this alternate directory. Usecase for arbitrary commitpoint : Replication can also provide rollback feature . The rollback should be able to mention a comitpoint /generation so that rollback is possible. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (SOLR-658) Allow Solr to load index from arbitrary directory in dataDir and Commit point
[ https://issues.apache.org/jira/browse/SOLR-658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shalin Shekhar Mangar updated SOLR-658: --- Attachment: SOLR-658.patch Updated with a bug fix: {code} if (result != null result.trim().length() 0) { File tmp = new File(dataDir + s); if (tmp.exists() tmp.isDirectory()) result = dataDir + s; } {code} should be: {code} if (s != null s.trim().length() 0) { File tmp = new File(dataDir + s); if (tmp.exists() tmp.isDirectory()) result = dataDir + s; } {code} I'll commit shortly. Allow Solr to load index from arbitrary directory in dataDir and Commit point - Key: SOLR-658 URL: https://issues.apache.org/jira/browse/SOLR-658 Project: Solr Issue Type: Improvement Affects Versions: 1.4 Reporter: Noble Paul Assignee: Shalin Shekhar Mangar Fix For: 1.4 Attachments: SOLR-658.patch, SOLR-658.patch, SOLR-658.patch, SOLR-658.patch, SOLR-658.patch This is a requirement for java based Solr replication Usecase for arbitrary index directory: if the slave has a corrupted index and the filesystem does not allow overwriting files in use (NTFS) replication will fail. The solution is to copy the index from master to an alternate directory on slave and load indexreader/indexwriter from this alternate directory. Usecase for arbitrary commitpoint : Replication can also provide rollback feature . The rollback should be able to mention a comitpoint /generation so that rollback is possible. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (SOLR-658) Allow Solr to load index from arbitrary directory in dataDir and Commit point
[ https://issues.apache.org/jira/browse/SOLR-658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shalin Shekhar Mangar updated SOLR-658: --- Attachment: SOLR-658.patch Thanks Akshay. Updated patch which calls getNewIndexDir before calling IndexReader#reopen so that if the new index directory is different from the old index directory, we always create a new SolrIndexSearcher with the new index directory. I'd like to commit this in the next two or three days if there are no objections. Allow Solr to load index from arbitrary directory in dataDir and Commit point - Key: SOLR-658 URL: https://issues.apache.org/jira/browse/SOLR-658 Project: Solr Issue Type: Improvement Affects Versions: 1.4 Reporter: Noble Paul Assignee: Shalin Shekhar Mangar Fix For: 1.4 Attachments: SOLR-658.patch, SOLR-658.patch, SOLR-658.patch, SOLR-658.patch This is a requirement for java based Solr replication Usecase for arbitrary index directory: if the slave has a corrupted index and the filesystem does not allow overwriting files in use (NTFS) replication will fail. The solution is to copy the index from master to an alternate directory on slave and load indexreader/indexwriter from this alternate directory. Usecase for arbitrary commitpoint : Replication can also provide rollback feature . The rollback should be able to mention a comitpoint /generation so that rollback is possible. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (SOLR-658) Allow Solr to load index from arbitrary directory in dataDir and Commit point
[ https://issues.apache.org/jira/browse/SOLR-658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Akshay K. Ukey updated SOLR-658: Attachment: SOLR-658.patch Patch in sync with the trunk. Allow Solr to load index from arbitrary directory in dataDir and Commit point - Key: SOLR-658 URL: https://issues.apache.org/jira/browse/SOLR-658 Project: Solr Issue Type: Improvement Affects Versions: 1.4 Reporter: Noble Paul Assignee: Shalin Shekhar Mangar Fix For: 1.4 Attachments: SOLR-658.patch, SOLR-658.patch, SOLR-658.patch This is a requirement for java based Solr replication Usecase for arbitrary index directory: if the slave has a corrupted index and the filesystem does not allow overwriting files in use (NTFS) replication will fail. The solution is to copy the index from master to an alternate directory on slave and load indexreader/indexwriter from this alternate directory. Usecase for arbitrary commitpoint : Replication can also provide rollback feature . The rollback should be able to mention a comitpoint /generation so that rollback is possible. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (SOLR-658) Allow Solr to load index from arbitrary directory in dataDir and Commit point
[ https://issues.apache.org/jira/browse/SOLR-658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Akshay K. Ukey updated SOLR-658: Attachment: SOLR-658.patch Patch in sync with trunk and with a test case (loading arbitrary commit point feature not supported in this patch). Allow Solr to load index from arbitrary directory in dataDir and Commit point - Key: SOLR-658 URL: https://issues.apache.org/jira/browse/SOLR-658 Project: Solr Issue Type: Improvement Affects Versions: 1.4 Reporter: Noble Paul Assignee: Shalin Shekhar Mangar Fix For: 1.4 Attachments: SOLR-658.patch, SOLR-658.patch This is a requirement for java based Solr replication Usecase for arbitrary index directory: if the slave has a corrupted index and the filesystem does not allow overwriting files in use (NTFS) replication will fail. The solution is to copy the index from master to an alternate directory on slave and load indexreader/indexwriter from this alternate directory. Usecase for arbitrary commitpoint : Replication can also provide rollback feature . The rollback should be able to mention a comitpoint /generation so that rollback is possible. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (SOLR-658) Allow Solr to load index from arbitrary directory in dataDir and Commit point
[ https://issues.apache.org/jira/browse/SOLR-658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shalin Shekhar Mangar updated SOLR-658: --- Attachment: SOLR-658.patch This is cut out of the SOLR-561 patch supports loading index from an arbitrary directory. *Changes* # A new method SolrCore#getNewIndexDir() is introduced which tries to read the latest indexDir from index.properties file. If that file is not present the default value (dataDir + index/) # SolrIndexSearcher now stores the path (indexDir) on which it is opened and has a getter for it. # When SolrCore#getIndexDir() is called, it gives the current searcher's index directory, failing which the default value is given # SolrIndexSearcher is always created with getNewIndexDir() and UpdateHandler also uses getNewIndexDir() to open IndexWriter instances. TODO: * Add a test * Add feature for loading arbitrary commit point. Allow Solr to load index from arbitrary directory in dataDir and Commit point - Key: SOLR-658 URL: https://issues.apache.org/jira/browse/SOLR-658 Project: Solr Issue Type: Improvement Affects Versions: 1.4 Reporter: Noble Paul Assignee: Shalin Shekhar Mangar Fix For: 1.4 Attachments: SOLR-658.patch This is a requirement for java based Solr replication Usecase for arbitrary index directory: if the slave has a corrupted index and the filesystem does not allow overwriting files in use (NTFS) replication will fail. The solution is to copy the index from master to an alternate directory on slave and load indexreader/indexwriter from this alternate directory. Usecase for arbitrary commitpoint : Replication can also provide rollback feature . The rollback should be able to mention a comitpoint /generation so that rollback is possible. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.