You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2017/10/26 21:13:31 UTC
[2/2] lucene-solr:master: Don't add sorted indexes for
non-back-compat versions
Don't add sorted indexes for non-back-compat versions
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/8388b195
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/8388b195
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/8388b195
Branch: refs/heads/master
Commit: 8388b195cfe4469ccc5bce71b2873059fadea291
Parents: 4e99388
Author: Steve Rowe <sa...@gmail.com>
Authored: Thu Oct 26 17:11:54 2017 -0400
Committer: Steve Rowe <sa...@gmail.com>
Committed: Thu Oct 26 17:13:26 2017 -0400
----------------------------------------------------------------------
dev-tools/scripts/addBackcompatIndexes.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/8388b195/dev-tools/scripts/addBackcompatIndexes.py
----------------------------------------------------------------------
diff --git a/dev-tools/scripts/addBackcompatIndexes.py b/dev-tools/scripts/addBackcompatIndexes.py
index 645dc26..9ca26b3 100644
--- a/dev-tools/scripts/addBackcompatIndexes.py
+++ b/dev-tools/scripts/addBackcompatIndexes.py
@@ -245,7 +245,9 @@ def main():
current_version = scriptutil.Version.parse(scriptutil.find_current_version())
create_and_add_index(source, 'cfs', c.version, current_version, c.temp_dir)
create_and_add_index(source, 'nocfs', c.version, current_version, c.temp_dir)
- if c.version.major > 6 or (c.version.major == 6 and c.version.minor >= 2):
+ should_make_sorted = current_version.is_back_compat_with(c.version) \
+ and (c.version.major > 6 or (c.version.major == 6 and c.version.minor >= 2))
+ if should_make_sorted:
create_and_add_index(source, 'sorted', c.version, current_version, c.temp_dir)
if c.version.minor == 0 and c.version.bugfix == 0 and c.version.major < current_version.major:
create_and_add_index(source, 'moreterms', c.version, current_version, c.temp_dir)
@@ -255,7 +257,7 @@ def main():
print('\nAdding backwards compatibility tests')
update_backcompat_tests(['cfs', 'nocfs'], c.version, current_version)
- if c.version.major > 6 or (c.version.major == 6 and c.version.minor >= 2):
+ if should_make_sorted:
update_backcompat_tests(['sorted'], c.version, current_version)
print('\nTesting changes')