lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From laimis <...@git.apache.org>
Subject [GitHub] lucenenet pull request: fix LogMergePolicy IsMerged logic
Date Sat, 31 Jan 2015 21:20:59 GMT
GitHub user laimis opened a pull request:

    https://github.com/apache/lucenenet/pull/65

    fix LogMergePolicy IsMerged logic

    This fixes the issue where if LogByteSizeMergePolicy is used, the merges run "forever".
At the end of the day the issue was not with the byte size policy, but with the LogMergePolicy
"IsMerged" logic. segmentIsOriginal check was inverted, forcing the evaluation to continue
and check IsMerged on already merged index and for LogByteSizeMergePolicy that returned false
when in reality that check should have never happened. Changed the code to match Lucene:
    
    https://github.com/apache/lucene-solr/blob/lucene_solr_4_8_0/lucene/core/src/java/org/apache/lucene/index/LogMergePolicy.java#L181

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/laimis/lucenenet log_merge_polixy_fixes

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/lucenenet/pull/65.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #65
    
----
commit 2c566585cb1784a3ab5ea07bf2e349397c93f590
Author: Laimonas Simutis <laimis@gmail.com>
Date:   2015-01-31T21:14:41Z

    fix LogMergePolicy IsMerged logic

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message