[
https://issues.apache.org/jira/browse/SOLR-670?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Koji Sekiguchi updated SOLR-670:
--------------------------------
Attachment: SOLR-670.patch
Updated patch which includes commit and rollback test. The test looks like:
{code:title=pseudo code}
public void testUncommit() throws Exception {
add(doc("A"));
search("A"); // "A" should not be found.
}
public void testAddCommit() throws Exception {
add(doc("A"));
commit();
search("A"); // "A" should be found.
}
public void testDeleteCommit() throws Exception {
add(doc("A"));
add(doc("B"));
commit();
search("A OR B"); // "A" and "B" should be found.
delete(doc("B"));
search("A OR B"); // "A" and "B" should be found.
commit();
search("A OR B"); // "B" should not be found.
}
public void testAddRollback() throws Exception {
add(doc("A"));
commit();
add(doc("B"));
rollback();
commit();
search("A OR B"); // "B" should not be found.
}
public void testDeleteRollback() throws Exception {
add(doc("A"));
add(doc("B"));
commit();
search("A OR B"); // "A" and "B" should be found.
delete(doc("B"));
rollback();
commit();
search("A OR B"); // "A" and "B" should be found.
}
{code}
> UpdateHandler must provide a rollback feature
> ---------------------------------------------
>
> Key: SOLR-670
> URL: https://issues.apache.org/jira/browse/SOLR-670
> Project: Solr
> Issue Type: New Feature
> Components: search
> Affects Versions: 1.3
> Reporter: Noble Paul
> Assignee: Shalin Shekhar Mangar
> Fix For: 1.4
>
> Attachments: SOLR-670.patch, SOLR-670.patch
>
>
> Lucene IndexWriter already has a rollback method. There should be a
> counterpart for the same in _UpdateHandler_ so that users can do a rollback
> over http
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.