Skip to content

Commit

Permalink
[Upgrade] Lucene-9.3.0-snapshot-b7231bb (#3537) (#3555)
Browse files Browse the repository at this point in the history
Upgrades to latest snapshot of lucene 9.3; including reducing maxFullFlushMergeWaitMillis
in LuceneTest.testWrapLiveDocsNotExposeAbortedDocuments to 0 ms to ensure aborted
docs are not merged away in the test with the new mergeOnRefresh default policy.

Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
  • Loading branch information
nknize authored Jun 10, 2022
1 parent ffc2a73 commit 5e30383
Show file tree
Hide file tree
Showing 47 changed files with 27 additions and 24 deletions.
2 changes: 1 addition & 1 deletion buildSrc/version.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opensearch = 2.1.0
lucene = 9.2.0-snapshot-ba8c3a8
lucene = 9.3.0-snapshot-b7231bb

bundled_jdk_vendor = adoptium
bundled_jdk = 17.0.3+7
Expand Down

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e793761c4a4292de0d52f066787ab5f3133382cd
2 changes: 1 addition & 1 deletion server/src/main/java/org/opensearch/Version.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public class Version implements Comparable<Version>, ToXContentFragment {
public static final Version V_1_3_3 = new Version(1030399, org.apache.lucene.util.Version.LUCENE_8_10_1);
public static final Version V_2_0_0 = new Version(2000099, org.apache.lucene.util.Version.LUCENE_9_1_0);
public static final Version V_2_0_1 = new Version(2000199, org.apache.lucene.util.Version.LUCENE_9_1_0);
public static final Version V_2_1_0 = new Version(2010099, org.apache.lucene.util.Version.LUCENE_9_2_0);
public static final Version V_2_1_0 = new Version(2010099, org.apache.lucene.util.Version.LUCENE_9_3_0);
public static final Version CURRENT = V_2_1_0;

public static Version readVersion(StreamInput in) throws IOException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,9 @@ public void testWrapLiveDocsNotExposeAbortedDocuments() throws Exception {
Directory dir = newDirectory();
IndexWriterConfig config = newIndexWriterConfig().setSoftDeletesField(Lucene.SOFT_DELETES_FIELD)
.setMergePolicy(new SoftDeletesRetentionMergePolicy(Lucene.SOFT_DELETES_FIELD, MatchAllDocsQuery::new, newMergePolicy()));
// override 500ms default introduced in
// https://issues.apache.org/jira/browse/LUCENE-10078
config.setMaxFullFlushMergeWaitMillis(0);
IndexWriter writer = new IndexWriter(dir, config);
int numDocs = between(1, 10);
List<String> liveDocs = new ArrayList<>();
Expand Down

0 comments on commit 5e30383

Please sign in to comment.