You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jason Rutherglen (JIRA)" <ji...@apache.org> on 2011/01/10 21:32:45 UTC

[jira] Created: (LUCENE-2856) Create IndexWriter event listener, specifically for merges

Create IndexWriter event listener, specifically for merges
----------------------------------------------------------

                 Key: LUCENE-2856
                 URL: https://issues.apache.org/jira/browse/LUCENE-2856
             Project: Lucene - Java
          Issue Type: Improvement
          Components: Index
    Affects Versions: 4.0
            Reporter: Jason Rutherglen


The issue will allow users to monitor merges occurring within IndexWriter using a callback notifier event listener.  This can be used by external applications such as Solr to monitor large segment merges.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Updated: (LUCENE-2856) Create IndexWriter event listener, specifically for merges

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

Jason Rutherglen updated LUCENE-2856:
-------------------------------------

    Attachment: LUCENE-2856.patch

The aborted merge event is now generated and tested for.

> Create IndexWriter event listener, specifically for merges
> ----------------------------------------------------------
>
>                 Key: LUCENE-2856
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2856
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>    Affects Versions: 4.0
>            Reporter: Jason Rutherglen
>         Attachments: LUCENE-2856.patch, LUCENE-2856.patch, LUCENE-2856.patch
>
>
> The issue will allow users to monitor merges occurring within IndexWriter using a callback notifier event listener.  This can be used by external applications such as Solr to monitor large segment merges.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Commented: (LUCENE-2856) Create IndexWriter event listener, specifically for merges

Posted by "Earwin Burrfoot (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-2856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12980390#action_12980390 ] 

Earwin Burrfoot commented on LUCENE-2856:
-----------------------------------------

A CompositeSegmentListener niftily removes the need for collection.

> Create IndexWriter event listener, specifically for merges
> ----------------------------------------------------------
>
>                 Key: LUCENE-2856
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2856
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>    Affects Versions: 4.0
>            Reporter: Jason Rutherglen
>         Attachments: LUCENE-2856.patch
>
>
> The issue will allow users to monitor merges occurring within IndexWriter using a callback notifier event listener.  This can be used by external applications such as Solr to monitor large segment merges.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Updated: (LUCENE-2856) Create IndexWriter event listener, specifically for merges

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

Jason Rutherglen updated LUCENE-2856:
-------------------------------------

    Attachment: LUCENE-2856.patch

I added a SegmentListener class which is set on IWC.  I still need to write unit tests and add an event for aborted merges.

Perhaps we want to enable a collection of segment listeners instead of only one?

> Create IndexWriter event listener, specifically for merges
> ----------------------------------------------------------
>
>                 Key: LUCENE-2856
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2856
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>    Affects Versions: 4.0
>            Reporter: Jason Rutherglen
>         Attachments: LUCENE-2856.patch
>
>
> The issue will allow users to monitor merges occurring within IndexWriter using a callback notifier event listener.  This can be used by external applications such as Solr to monitor large segment merges.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Commented: (LUCENE-2856) Create IndexWriter event listener, specifically for merges

Posted by "Shai Erera (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-2856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12980547#action_12980547 ] 

Shai Erera commented on LUCENE-2856:
------------------------------------

I think start/endTime can be long and not Long?

Maybe instead of adding init/start/endTime to OneMerge, you can pass a 'time' parameter to MergeEvent. So its signature will be MergeEvent(Type type, long time, OneMerge merge). The 'time' parameter can then be interpreted according to Type.
Even better, I think you can remove that parameter entirely, and have MergeEvent call System.currentTimeMillis() and set its internal member according to Type?

About this:
{code}
public long getMergeSegmentSize(boolean includeDocStores) throws IOException {
  // nocommit: cache this?
  return mergeInfo.sizeInBytes(includeDocStores);
}
{code}

SegmentInfo caches sizeInBytes, so I think the 'nocommit' can go away.

However, I did notice that SegmentInfo's cache is potentially buggy -- it doesn't take into account 'includeDocStores'. I.e., if you call it once w/ 'false' and then with 'true' (or vice versa), you won't get the right sizeInBytes. I'll open a separate issue to fix this.

> Create IndexWriter event listener, specifically for merges
> ----------------------------------------------------------
>
>                 Key: LUCENE-2856
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2856
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>    Affects Versions: 4.0
>            Reporter: Jason Rutherglen
>         Attachments: LUCENE-2856.patch
>
>
> The issue will allow users to monitor merges occurring within IndexWriter using a callback notifier event listener.  This can be used by external applications such as Solr to monitor large segment merges.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Commented: (LUCENE-2856) Create IndexWriter event listener, specifically for merges

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

Jason Rutherglen commented on LUCENE-2856:
------------------------------------------

I'll added events for flush, open, clone, close and the CompositeSegmentsListener.  

> Create IndexWriter event listener, specifically for merges
> ----------------------------------------------------------
>
>                 Key: LUCENE-2856
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2856
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>    Affects Versions: 4.0
>            Reporter: Jason Rutherglen
>         Attachments: LUCENE-2856.patch
>
>
> The issue will allow users to monitor merges occurring within IndexWriter using a callback notifier event listener.  This can be used by external applications such as Solr to monitor large segment merges.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Commented: (LUCENE-2856) Create IndexWriter event listener, specifically for merges

Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-2856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12983155#action_12983155 ] 

Michael McCandless commented on LUCENE-2856:
--------------------------------------------

The ReaderEvent is never generated?  Is that still work-in-progress?
When would this be invoked? Only if IW is pooling readers?  Maybe we
should hold off on that for a separate issue?

Why were the added checks needed in SegmentInfo?  Oh I see, it's
because you compute the sizeInBytes of the merged segment before the
merge completes... hmm.  I think I'd prefer that this SegmentInfo not
be published until the Type == COMPLETE.

How come merge is not also final in MergeEvent?

I agree we should change the name.  IndexEventListener?

I don't think we need CompositeSegmentListener?  Why not an API to
just add/remove listeners?  Also: are we sure this belongs in IWC?
This is analogous to "infoStream", which is on IW.  It's not a config
parameter that affects indexing.

Should we also track "segment flushed/aborted" events?

Can you add some jdocs and mark the API as experimental?


> Create IndexWriter event listener, specifically for merges
> ----------------------------------------------------------
>
>                 Key: LUCENE-2856
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2856
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>    Affects Versions: 4.0
>            Reporter: Jason Rutherglen
>         Attachments: LUCENE-2856.patch, LUCENE-2856.patch, LUCENE-2856.patch
>
>
> The issue will allow users to monitor merges occurring within IndexWriter using a callback notifier event listener.  This can be used by external applications such as Solr to monitor large segment merges.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Commented: (LUCENE-2856) Create IndexWriter event listener, specifically for merges

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

Jason Rutherglen commented on LUCENE-2856:
------------------------------------------

bq. I think start/endTime can be long and not Long?

Long's used because it allows null.

{quote}Maybe instead of adding init/start/endTime to OneMerge, you can pass a 'time' parameter to MergeEvent. So its signature will be MergeEvent(Type type, long time, OneMerge merge). The 'time' parameter can then be interpreted according to Type.
Even better, I think you can remove that parameter entirely, and have MergeEvent call System.currentTimeMillis() and set its internal member according to Type?{quote}

I think it's generally useful to keep track of the time(s) in the OneMerge object.  It's implemented this way so that the, likely a user interface does not need to store the various times itself.  Actually, logging applications also need to print the durations.

bq. I did notice that SegmentInfo's cache is potentially buggy - it doesn't take into account 'includeDocStores'. 

Yes, that'd be good to fix.

> Create IndexWriter event listener, specifically for merges
> ----------------------------------------------------------
>
>                 Key: LUCENE-2856
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2856
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>    Affects Versions: 4.0
>            Reporter: Jason Rutherglen
>         Attachments: LUCENE-2856.patch
>
>
> The issue will allow users to monitor merges occurring within IndexWriter using a callback notifier event listener.  This can be used by external applications such as Solr to monitor large segment merges.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Commented: (LUCENE-2856) Create IndexWriter event listener, specifically for merges

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

Jason Rutherglen commented on LUCENE-2856:
------------------------------------------

bq. We could go with a -1 setting also - I see no reason to allocate an object, and use auto-boxing as we do that

That's a style thing.  I prefer null as it's conclusive and doesn't lead to incorrect calculations, just NPEs.

bq. I think SegmentListener is not the proper name? I.e., it does not listen on Segments, right? Maybe a SegmentMergeListener, or simple a MergeListener?

I had MergeListener, then changed it to be more generic.  I think we should add other segment events such as flush, open, clone, close, etc?

> Create IndexWriter event listener, specifically for merges
> ----------------------------------------------------------
>
>                 Key: LUCENE-2856
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2856
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>    Affects Versions: 4.0
>            Reporter: Jason Rutherglen
>         Attachments: LUCENE-2856.patch
>
>
> The issue will allow users to monitor merges occurring within IndexWriter using a callback notifier event listener.  This can be used by external applications such as Solr to monitor large segment merges.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Commented: (LUCENE-2856) Create IndexWriter event listener, specifically for merges

Posted by "Shai Erera (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-2856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12980558#action_12980558 ] 

Shai Erera commented on LUCENE-2856:
------------------------------------

bq. Long's used because it allows null.

I see. We could go with a -1 setting also - I see no reason to allocate an object, and use auto-boxing as we do that :).

bq. I think it's generally useful to keep track of the time(s) in the OneMerge object.

I'm not going to argue too much about that point - was just thinking that OneMerge is already filled with members and it'd be nice if we can add more to it. As for the logging scenario, I think that with the CompositeSegmentsListener an application can easily plug in its SL for logging purposes. But as I said, I don't mind about it too much.

BTW, I think SegmentListener is not the proper name? I.e., it does not listen on Segments, right? Maybe a SegmentMergeListener, or simple a MergeListener? It anyway accepts only a MergeEvent ....

> Create IndexWriter event listener, specifically for merges
> ----------------------------------------------------------
>
>                 Key: LUCENE-2856
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2856
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>    Affects Versions: 4.0
>            Reporter: Jason Rutherglen
>         Attachments: LUCENE-2856.patch
>
>
> The issue will allow users to monitor merges occurring within IndexWriter using a callback notifier event listener.  This can be used by external applications such as Solr to monitor large segment merges.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Updated: (LUCENE-2856) Create IndexWriter event listener, specifically for merges

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

Jason Rutherglen updated LUCENE-2856:
-------------------------------------

    Attachment: LUCENE-2856.patch

Here's another iteration.  Changed the name to IndexEventListener.  Added experimental to the Javadocs, and I probably need to add more.  There are some nocommits still, eg, for the reason a flush kicked off.  Reader events should be in a different issue as reader pool is moving out of IW soon?  All tests pass. 

> Create IndexWriter event listener, specifically for merges
> ----------------------------------------------------------
>
>                 Key: LUCENE-2856
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2856
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>    Affects Versions: 4.0
>            Reporter: Jason Rutherglen
>         Attachments: LUCENE-2856.patch, LUCENE-2856.patch, LUCENE-2856.patch, LUCENE-2856.patch
>
>
> The issue will allow users to monitor merges occurring within IndexWriter using a callback notifier event listener.  This can be used by external applications such as Solr to monitor large segment merges.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Updated: (LUCENE-2856) Create IndexWriter event listener, specifically for merges

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

Jason Rutherglen updated LUCENE-2856:
-------------------------------------

    Attachment: LUCENE-2856.patch

Here's an update, there's one nocommit as I'm not sure how we want to capture and exception and rethrow (a Throwable).  Adding the reason a flush occurred requires quite a bit of refactoring that we can probably leave for later if it's needed.  Updated to trunk, and all tests pass.

> Create IndexWriter event listener, specifically for merges
> ----------------------------------------------------------
>
>                 Key: LUCENE-2856
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2856
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>    Affects Versions: 4.0
>            Reporter: Jason Rutherglen
>         Attachments: LUCENE-2856.patch, LUCENE-2856.patch, LUCENE-2856.patch, LUCENE-2856.patch, LUCENE-2856.patch
>
>
> The issue will allow users to monitor merges occurring within IndexWriter using a callback notifier event listener.  This can be used by external applications such as Solr to monitor large segment merges.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Commented: (LUCENE-2856) Create IndexWriter event listener, specifically for merges

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

Jason Rutherglen commented on LUCENE-2856:
------------------------------------------

I separated out a ReaderListener because it's tied to the ReaderPool which eventually will exist external to IW.  

> Create IndexWriter event listener, specifically for merges
> ----------------------------------------------------------
>
>                 Key: LUCENE-2856
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2856
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>    Affects Versions: 4.0
>            Reporter: Jason Rutherglen
>         Attachments: LUCENE-2856.patch, LUCENE-2856.patch, LUCENE-2856.patch
>
>
> The issue will allow users to monitor merges occurring within IndexWriter using a callback notifier event listener.  This can be used by external applications such as Solr to monitor large segment merges.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Commented: (LUCENE-2856) Create IndexWriter event listener, specifically for merges

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

Jason Rutherglen commented on LUCENE-2856:
------------------------------------------

bq. A CompositeSegmentListener niftily removes the need for collection

How would it look?

> Create IndexWriter event listener, specifically for merges
> ----------------------------------------------------------
>
>                 Key: LUCENE-2856
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2856
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>    Affects Versions: 4.0
>            Reporter: Jason Rutherglen
>         Attachments: LUCENE-2856.patch
>
>
> The issue will allow users to monitor merges occurring within IndexWriter using a callback notifier event listener.  This can be used by external applications such as Solr to monitor large segment merges.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Commented: (LUCENE-2856) Create IndexWriter event listener, specifically for merges

Posted by "Earwin Burrfoot (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-2856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12980448#action_12980448 ] 

Earwin Burrfoot commented on LUCENE-2856:
-----------------------------------------

A SegmentListener that has a number of children SLs and delegates eventHappened() calls to them. 

> Create IndexWriter event listener, specifically for merges
> ----------------------------------------------------------
>
>                 Key: LUCENE-2856
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2856
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>    Affects Versions: 4.0
>            Reporter: Jason Rutherglen
>         Attachments: LUCENE-2856.patch
>
>
> The issue will allow users to monitor merges occurring within IndexWriter using a callback notifier event listener.  This can be used by external applications such as Solr to monitor large segment merges.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Commented: (LUCENE-2856) Create IndexWriter event listener, specifically for merges

Posted by "Shai Erera (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-2856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12980626#action_12980626 ] 

Shai Erera commented on LUCENE-2856:
------------------------------------

I see. I'm ok with both then.

> Create IndexWriter event listener, specifically for merges
> ----------------------------------------------------------
>
>                 Key: LUCENE-2856
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2856
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>    Affects Versions: 4.0
>            Reporter: Jason Rutherglen
>         Attachments: LUCENE-2856.patch
>
>
> The issue will allow users to monitor merges occurring within IndexWriter using a callback notifier event listener.  This can be used by external applications such as Solr to monitor large segment merges.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Updated: (LUCENE-2856) Create IndexWriter event listener, specifically for merges

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

Jason Rutherglen updated LUCENE-2856:
-------------------------------------

    Attachment: LUCENE-2856.patch

Here's a first cut including workarounds to avoid NPEs and file not found exceptions in SegmentInfo (when calling size in bytes).  There's a test case for merge init, start, and complete.  I need to add one for abort.

> Create IndexWriter event listener, specifically for merges
> ----------------------------------------------------------
>
>                 Key: LUCENE-2856
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2856
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>    Affects Versions: 4.0
>            Reporter: Jason Rutherglen
>         Attachments: LUCENE-2856.patch, LUCENE-2856.patch
>
>
> The issue will allow users to monitor merges occurring within IndexWriter using a callback notifier event listener.  This can be used by external applications such as Solr to monitor large segment merges.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org