You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Jason Rutherglen (JIRA)" <ji...@apache.org> on 2009/07/14 01:22:14 UTC

[jira] Created: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Add expungeDeletes to DirectUpdateHandler2
------------------------------------------

                 Key: SOLR-1275
                 URL: https://issues.apache.org/jira/browse/SOLR-1275
             Project: Solr
          Issue Type: Improvement
          Components: update
    Affects Versions: 1.3
            Reporter: Jason Rutherglen
            Priority: Trivial
             Fix For: 1.4


expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752696#action_12752696 ] 

Grant Ingersoll commented on SOLR-1275:
---------------------------------------

What's the status on this one?

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Jason Rutherglen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12739744#action_12739744 ] 

Jason Rutherglen commented on SOLR-1275:
----------------------------------------

Sure, I'll have time at some point to post it, we can use the one from Lucene.  Basically create deletes in multiple segments, then call expungeDeletes, check the number of segments left.  

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12747788#action_12747788 ] 

Noble Paul commented on SOLR-1275:
----------------------------------

bq.Do we need to? We should be testing that the method is called and look for evidence that it has done it's work.

I guess , we should only test if the message indeed got called . Whether the call really does the work need not be tested

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Noble Paul reassigned SOLR-1275:
--------------------------------

    Assignee:     (was: Noble Paul)

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Mark Miller (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12753142#action_12753142 ] 

Mark Miller commented on SOLR-1275:
-----------------------------------

bq. Hey, there aren't any benevolent dictators around here

I always suspected we were being guided by selfish dictators :)

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12753132#action_12753132 ] 

Yonik Seeley commented on SOLR-1275:
------------------------------------

bq. Yonik may have a final word on this 

Hey, there aren't any benevolent dictators around here ;-)  Arguments should stand on their own.

I was just confused why the test was so complicated, and didn't look forward to maintaining it in the face of future changes.  But I guess we can always cross that bridge when we come to it.

Are the current tests failing for anyone?

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Noble Paul reopened SOLR-1275:
------------------------------


> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch, SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12755322#action_12755322 ] 

Noble Paul commented on SOLR-1275:
----------------------------------

solrconfig-serialms.xml is not in the trunk. which testcase and patch has this?

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yonik Seeley updated SOLR-1275:
-------------------------------

    Fix Version/s:     (was: 1.4)
                   1.5

Pushing this off to 1.5 given that it's very expert use, and it's not even clear what the use cases are.

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.5
>
>         Attachments: SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12753628#action_12753628 ] 

Grant Ingersoll commented on SOLR-1275:
---------------------------------------

Tests pass for me, Noble, can this be resolved now?

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Jason Rutherglen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12755339#action_12755339 ] 

Jason Rutherglen commented on SOLR-1275:
----------------------------------------

The latest patch dated 2009-08-24 03:44 PM.

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12740994#action_12740994 ] 

Yonik Seeley commented on SOLR-1275:
------------------------------------

Apologies - my brain went the wrong way when I saw "expungeDeletes" and I temporarily thought it meant throwing away the deletedDocs BitVector (i.e. undeleting all previously deleted documents).  So there are definitely use cases for this.  Seems simple enough, I'll move it back to 1.4


> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12753179#action_12753179 ] 

Noble Paul commented on SOLR-1275:
----------------------------------

the tests never failed in my box or in the nightly builds. 
Jason , did you observe it failing?

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yonik Seeley updated SOLR-1275:
-------------------------------

    Fix Version/s:     (was: 1.5)
                   1.4

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12745468#action_12745468 ] 

Yonik Seeley commented on SOLR-1275:
------------------------------------

Hmmm, it's harder to see in diff format... the test just boils down to this:

{code}
  public void testExpungeDeletes() throws Exception {
    assertU(adoc("id","1"));
    assertU(adoc("id","2"));
    assertU(commit());

    assertU(adoc("id","3"));
    assertU(adoc("id","2"));
    assertU(adoc("id","4"));
    assertU(commit());

    SolrQueryRequest sr = req("q","foo");
    SolrIndexReader r = sr.getSearcher().getReader();
    assertTrue(r.maxDoc() > r.numDocs());   // should have deletions
    assertTrue(r.getLeafReaders().length > 1);  // more than 1 segment
    sr.close();

    assertU(commit("expungeDeletes","true"));

    sr = req("q","foo");
    r = sr.getSearcher().getReader();
    assertEquals(r.maxDoc(), r.numDocs());  // no deletions
    assertTrue(r.getLeafReaders().length > 1);  // still more than 1 segment
    sr.close();
  }
{code}

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12745150#action_12745150 ] 

Noble Paul commented on SOLR-1275:
----------------------------------

The tests are passing ,but for the time being I wish to keep this open . Let us review the change in DUH2#commit() once again and ensure that the fix is right

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch, SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Jason Rutherglen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12740992#action_12740992 ] 

Jason Rutherglen commented on SOLR-1275:
----------------------------------------

Given the simplicity of the functionality I don't see a reason to put this off.  expungeDeletes has been in INdexWriter since 2.4?  

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.5
>
>         Attachments: SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12731302#action_12731302 ] 

Noble Paul commented on SOLR-1275:
----------------------------------

So , this should be an extra option in the CommitUpdateComand ?

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Priority: Trivial
>             Fix For: 1.4
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12747446#action_12747446 ] 

Yonik Seeley commented on SOLR-1275:
------------------------------------

bq. if we don't test to insure the segments with deletes are in fact gone, we're unfortunately not testing the functionality of the method.

Do we need to?  We should be testing that the method is called and look for evidence that it has done it's work.  All of the corner cases of testing if it did it's work correctly would seem to belong in Lucene unit tests?

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Jason Rutherglen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason Rutherglen updated SOLR-1275:
-----------------------------------

    Attachment: SOLR-1275.patch

* Added solrconfig-serialms.xml which uses a
SerialMergeScheduler (instead of ConcurrentMergeScheduler).
Otherwise we get inconsistent numbers of segments at variable
times (because the merging is happening asynchronously)

* Commit is called every 500 docs to insure we get enough
segments

* Test passes

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Jason Rutherglen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12755234#action_12755234 ] 

Jason Rutherglen commented on SOLR-1275:
----------------------------------------

The DirectUpdateHandlerTest fails as solrconfig-serialms.xml didn't make it into trunk.  Which patch was committed?

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Noble Paul updated SOLR-1275:
-----------------------------

    Attachment: SOLR-1275.patch

Untested patch. for review

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12745952#action_12745952 ] 

Yonik Seeley commented on SOLR-1275:
------------------------------------

bq. Calling SR.undelete would remove the deletes and the test would pass?

Simple to fix... check against the exact number of documents instead of checking that there are no deletes.


> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12745128#action_12745128 ] 

Noble Paul commented on SOLR-1275:
----------------------------------

the testcase fails

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch, SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Noble Paul resolved SOLR-1275.
------------------------------

    Resolution: Fixed

committed: r805774
thanks Jason

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch, SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12738942#action_12738942 ] 

Noble Paul commented on SOLR-1275:
----------------------------------

json, is there a way to test if expungeDeletes is indeed called?



> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Jason Rutherglen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12745249#action_12745249 ] 

Jason Rutherglen commented on SOLR-1275:
----------------------------------------

Because maxBufferedDocs=10, and the previous patch was creating
3000 docs, a lot of merging was happening in the background. SMS
gives predictable merging for any number of documents which is
more suitable for testing.

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Jason Rutherglen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason Rutherglen updated SOLR-1275:
-----------------------------------

    Attachment: SOLR-1275.patch

* Reduced the num docs indexed to make the test faster

* expungeDeletes merges away segments with deletes, if we don't
  test to insure the segments with deletes are in fact gone, we're 
  unfortunately not testing the functionality of the method

* Incorporated Yonik's additions

* commit("expungeDeletes","true");  // doesn't work 

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yonik Seeley updated SOLR-1275:
-------------------------------

    Attachment: SOLR-1275.patch

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12744951#action_12744951 ] 

Noble Paul commented on SOLR-1275:
----------------------------------

The patch looks fine to me . I plan to commit this shortly

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch, SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12745135#action_12745135 ] 

Noble Paul commented on SOLR-1275:
----------------------------------

committed r805888

The test passes now.

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch, SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yonik Seeley updated SOLR-1275:
-------------------------------

    Attachment: SOLR-1275.patch

How about this much simpler test that's faster to execute, and should be very easy to fix if/when behavior changes in the future (which it certainly could with NRT stuff).  It also tests more of the complete loop too by going through the XML update command.

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Jason Rutherglen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason Rutherglen updated SOLR-1275:
-----------------------------------

    Attachment: SOLR-1275.patch

* Added DirectUpdateHandlerTest.testExpungeDeletes which creates
a bunch of docs (i.e. several segments), terms known to be in
specific segments are found and deleted. Expunge deletes is
called, the segments are fewer and the segments with the deleted
terms no longer exist.

* Added expungeDeletes functionality to DirectUpdateHandler2

* The patch randomly didn't create enough of the expected
segments, this could be due to ConcurrentMergeScheduler. I
couldn't reproduce consistently.

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch, SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Jason Rutherglen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12745643#action_12745643 ] 

Jason Rutherglen commented on SOLR-1275:
----------------------------------------

I like using XML, I was wondering why in
TermVectorComponentTest.testDistributed we're manually creating
the distributed part? I'm currently picking art
TestDistributedSearch to test out a distributed component (a bit
of work). 

expungeDeletes is supposed to remove segments that contains
deletes. The patch posted does this by checking the segment
names. This will work fine with NRT.

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12745214#action_12745214 ] 

Yonik Seeley commented on SOLR-1275:
------------------------------------

The standard solrconfig.xml in the test directory has a LogDocMergePolicy and maxBufferedDocs=10 to generate more segments.
In some other Solr tests, I add a few docs, then do a commit, add a few docs, then do another commit to get 2 segments for example.  Shouldn't that work to get a fixed number of segments?

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Otis Gospodnetic (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12731999#action_12731999 ] 

Otis Gospodnetic commented on SOLR-1275:
----------------------------------------

Patch looks good to me (also not tested it)

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Jason Rutherglen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12745731#action_12745731 ] 

Jason Rutherglen commented on SOLR-1275:
----------------------------------------

I'll check in a new patch that's faster (i.e. indexes fewer docs).

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Jason Rutherglen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12745717#action_12745717 ] 

Jason Rutherglen commented on SOLR-1275:
----------------------------------------

> Isn't it much simpler 

Calling SR.undelete would remove the deletes and the test would
pass?

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12745695#action_12745695 ] 

Yonik Seeley commented on SOLR-1275:
------------------------------------

Isn't it much simpler to just check that the segments have no deletes after expungeDeletes is called?
Is there something my proposed patch doesn't test that you think it should?

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Noble Paul resolved SOLR-1275.
------------------------------

    Resolution: Fixed

marking this as resolved. let us open another issue if the testcase needs to be changed

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Jason Rutherglen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12732032#action_12732032 ] 

Jason Rutherglen commented on SOLR-1275:
----------------------------------------

I can add some tests? (would like to get familiar with Solr's test framework)

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752880#action_12752880 ] 

Noble Paul commented on SOLR-1275:
----------------------------------

here is some confusion on whether the testcase is right/good enough. Yonik may have a final word on this

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch, SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12738942#action_12738942 ] 

Noble Paul edited comment on SOLR-1275 at 8/4/09 5:29 AM:
----------------------------------------------------------

jason, is there a way to test if expungeDeletes is indeed called?



      was (Author: noble.paul):
    json, is there a way to test if expungeDeletes is indeed called?


  
> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-1275.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (SOLR-1275) Add expungeDeletes to DirectUpdateHandler2

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Noble Paul reassigned SOLR-1275:
--------------------------------

    Assignee: Noble Paul

> Add expungeDeletes to DirectUpdateHandler2
> ------------------------------------------
>
>                 Key: SOLR-1275
>                 URL: https://issues.apache.org/jira/browse/SOLR-1275
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
>            Assignee: Noble Paul
>            Priority: Trivial
>             Fix For: 1.4
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> expungeDeletes is a useful method somewhat like optimize is offered by IndexWriter that can be implemented in DirectUpdateHandler2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.