Skip to content

Commit

Permalink
Upgrade to Lucene-7.4.0-snapshot-59f2b7aec2 (#30726)
Browse files Browse the repository at this point in the history
This snapshot resolves issues related to ShrinkIndexIT.
  • Loading branch information
dnhatn authored May 18, 2018
1 parent 994405a commit 67d8fc2
Show file tree
Hide file tree
Showing 55 changed files with 31 additions and 41 deletions.
2 changes: 1 addition & 1 deletion buildSrc/version.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
elasticsearch = 7.0.0-alpha1
lucene = 7.4.0-snapshot-6705632810
lucene = 7.4.0-snapshot-59f2b7aec2

# optional dependencies
spatial4j = 0.7
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a3dba337d06e1f5930cb7ae638c1655b99ce0cb7

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
473a7f4d955f132bb498482648266653f8da85bd

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
c5a72b9a790e2552248c8bbb36af47c4c399ba27

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
14f680ab9b886c7c5224ff682a7fa70b6df44a05

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e033c68c9ec1ba9cd8439758adf7eb5fee22acef

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
08df0a5029f11c109b22064dec78c05dfa25f9e3

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a9d1819b2b13f134f6a605ab5a59ce3c602c0460

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
47bc91ccb0cdf0c1c404646ffe0d5fd6b020a4ab

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
b70d03784d06a643e096fae4d959200aa246ba16

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d660a63ac0f7ab2772a45ae518518472bf620620

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bf8f9e8284a54af18545574cb4a530da0deb968a

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9eaae9dcd4ec88227475cb81d3be9afa767f1b22

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cd15f0008742c84899d678cb0cecda06d0a6d63e

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5ce38b8610a7f402f2da3b0e408e508151d979c5

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
53819f03a07050a4af28361d64395c86f2cea008

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8cdc0e2b65d146ed11f4d2507109e530d59ff33d

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e56090463703112ad64ad457d18bae9a5b2966b8

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9faf974b77058e44a6d35e956db4f5fb67389dfa

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
b852b1fe70ef70736b2b1a9ad57eb93cbaed0423

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d2fa99ec7140fcf35db16ac1feb78ef142750d39

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
c9963f60d3a0924b877a6f910650c5f2384822a0

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3f33ba54da5e0e125f4c5ef7dd800dd6185e4f61

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bb3c18c987395dae6fe63744f5a50fd367ea5a74

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
package org.elasticsearch.index.shard;

import org.apache.logging.log4j.Logger;
import org.apache.lucene.index.FilterMergePolicy;
import org.apache.lucene.index.IndexWriter;
import org.apache.lucene.index.MergePolicy;
import org.apache.lucene.index.MergePolicyWrapper;
import org.apache.lucene.index.SegmentCommitInfo;
import org.apache.lucene.index.SegmentInfos;
import org.elasticsearch.Version;
Expand All @@ -44,7 +44,7 @@
* For now, this {@link MergePolicy} takes care of moving versions that used to
* be stored as payloads to numeric doc values.
*/
public final class ElasticsearchMergePolicy extends MergePolicyWrapper {
public final class ElasticsearchMergePolicy extends FilterMergePolicy {

private static Logger logger = Loggers.getLogger(ElasticsearchMergePolicy.class);

Expand Down
11 changes: 0 additions & 11 deletions server/src/main/java/org/elasticsearch/index/store/Store.java
Original file line number Diff line number Diff line change
Expand Up @@ -759,17 +759,6 @@ private void innerClose() throws IOException {
public String toString() {
return "store(" + in.toString() + ")";
}

@Override
public boolean checkPendingDeletions() throws IOException {
if (super.checkPendingDeletions()) {
deletesLogger.warn("directory has still pending deletes");
}
// we skip this check since our IW usage always goes forward.
// we still might run into situations where we have pending deletes ie. in shrink / split case
// and that will cause issues on windows since we open multiple IW instance one after another during the split/shrink recovery
return false;
}
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import org.apache.lucene.search.SortField;
import org.apache.lucene.search.SortedSetSelector;
import org.apache.lucene.search.SortedSetSortField;
import org.apache.lucene.util.LuceneTestCase.AwaitsFix;
import org.elasticsearch.Version;
import org.elasticsearch.action.admin.cluster.reroute.ClusterRerouteResponse;
import org.elasticsearch.action.admin.cluster.state.ClusterStateRequest;
Expand Down Expand Up @@ -84,7 +83,6 @@ protected Collection<Class<? extends Plugin>> nodePlugins() {
return Arrays.asList(InternalSettingsPlugin.class);
}

@AwaitsFix(bugUrl = "https://issues.apache.org/jira/browse/LUCENE-8318")
public void testCreateShrinkIndexToN() {
int[][] possibleShardSplits = new int[][] {{8,4,2}, {9, 3, 1}, {4, 2, 1}, {15,5,1}};
int[] shardSplits = randomFrom(possibleShardSplits);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@ private static String toCamelCase(String s) {
// should we expose it, or maybe think about higher level integration of the
// fake term frequency feature (LUCENE-7854)
.put("delimitedtermfrequency", Void.class)
// LUCENE-8273: ConditionalTokenFilter allows analysis chains to skip
// particular token filters based on the attributes of the current token.
.put("termexclusion", Void.class)

.immutableMap();

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bf8f9e8284a54af18545574cb4a530da0deb968a

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bf8f9e8284a54af18545574cb4a530da0deb968a

This file was deleted.

0 comments on commit 67d8fc2

Please sign in to comment.