[ 
https://issues.apache.org/jira/browse/LUCENE-9345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17091575#comment-17091575
 ] 

ASF subversion and git services commented on LUCENE-9345:
---------------------------------------------------------

Commit 9598d43bb629b0434e7ce557fe12ea88c19a5d00 in lucene-solr's branch 
refs/heads/branch_8x from Simon Willnauer
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=9598d43 ]

LUCENE-9345: Separate MergeSchedulder from IndexWriter (#1451)

This change extracts the methods that are used by MergeScheduler into
a MergeSource interface. This allows IndexWriter to better ensure
locking, hide internal methods and removes the tight coupling between the two
complex classes. This will also improve future testing.

> Separate IndexWriter from MergeScheduler
> ----------------------------------------
>
>                 Key: LUCENE-9345
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9345
>             Project: Lucene - Core
>          Issue Type: Improvement
>    Affects Versions: master (9.0)
>            Reporter: Simon Willnauer
>            Priority: Major
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> MergeScheduler is tightly coupled with IndexWriter which causes IW to expose 
> unnecessary methods. For instance only the scheduler should call 
> IW#getNextMerge() but it's a public method. With some refactorings we can 
> nicely separate the two. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to