-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
* Update Apache Lucene to 9.12.0 Signed-off-by: Andriy Redko <andriy.redko@aiven.io> * change to IOContext READONCE in locations where the file is not expected to be read multiple times. Signed-off-by: Marc Handalian <marc.handalian@gmail.com> * Use READ IOContext for all non Segment* files when copying node-node Signed-off-by: Marc Handalian <marc.handalian@gmail.com> * Fixing more test failures Signed-off-by: Andriy Redko <andriy.redko@aiven.io> * Move Composite912Codec under org.opensearch.index.codec.composite.composite912 package Signed-off-by: Andriy Redko <andriy.redko@aiven.io> --------- Signed-off-by: Andriy Redko <andriy.redko@aiven.io> Signed-off-by: Marc Handalian <marc.handalian@gmail.com> Co-authored-by: Marc Handalian <marc.handalian@gmail.com> (cherry picked from commit 146b0f7) Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
opensearch = 2.18.0 | ||
lucene = 9.11.1 | ||
lucene = 9.12.0 | ||
|
||
bundled_jdk_vendor = adoptium | ||
bundled_jdk = 21.0.4+7 | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fdb055d569bb20bfce9618fe2b01c29bab7f290c |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
5ba843374a0aab3dfe0b11cb28b251844d85bf5b |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
a9232b6a4882979118d3281b98dfdb6e0e1cb5ca |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
a3a6950ffc22e76a082e1b3cefb022b9f7870d29 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
e71f85b72ed3939039ba8897b28b065dd11918b9 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
6baa3ae7ab20d6e644cf0bedb271c50a44c0e259 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
f183e1e8b1eaaa4dec444774a285bb8b66518522 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
b81a609934e65d12ab9d2d84bc2ea6f56a360e57 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
bec069f286b45f20b743c81e84202369cd0467e7 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
4c2503cfaba37249e20ea877555cb52ee89d1ae1 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
68fe98c94e9644a584ea1bf525e68d9406fc61ec |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fdb055d569bb20bfce9618fe2b01c29bab7f290c |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ccf99f8db57aa97b2c1f95c5cc2a11156a043921 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
e93429f66fbcd3b58d81f01223d6ce5688047296 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
14c802d6955eaf11107375a2ada8fe8ec53b3e01 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ffe090339540876b40df792aee51a42af6b3f37f |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ad17704ee90eb926b6d3105f7027485cdadbecd9 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3ac2a62b0b55c5725bb65f0c5454f9f8a401cf43 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
55959399373876f4c184944315458dc6b88fbd81 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
f65882536d681c11a1cbc920e5679201101e3603 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
9d00cc7cc2279822ef6740f0677cafacfb439fa8 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
e3092632ca1d4427d3ebb2c866ac89d90f5b61ec |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
e1c6636499317ebe498f3490a1ec8b86b8a363dd |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
*/ | ||
|
||
package org.opensearch.index.codec.composite.composite912; | ||
|
||
import org.apache.logging.log4j.Logger; | ||
import org.apache.lucene.codecs.Codec; | ||
import org.apache.lucene.codecs.DocValuesFormat; | ||
import org.apache.lucene.codecs.FilterCodec; | ||
import org.apache.lucene.codecs.lucene912.Lucene912Codec; | ||
import org.opensearch.common.annotation.ExperimentalApi; | ||
import org.opensearch.index.codec.PerFieldMappingPostingFormatCodec; | ||
import org.opensearch.index.codec.composite.composite99.Composite99DocValuesFormat; | ||
import org.opensearch.index.mapper.MapperService; | ||
|
||
/** | ||
* Extends the Codec to support new file formats for composite indices eg: star tree index | ||
* based on the mappings. | ||
* | ||
* @opensearch.experimental | ||
*/ | ||
@ExperimentalApi | ||
public class Composite912Codec extends FilterCodec { | ||
public static final String COMPOSITE_INDEX_CODEC_NAME = "Composite912Codec"; | ||
private final MapperService mapperService; | ||
|
||
// needed for SPI - this is used in reader path | ||
public Composite912Codec() { | ||
this(COMPOSITE_INDEX_CODEC_NAME, new Lucene912Codec(), null); | ||
} | ||
|
||
public Composite912Codec(Lucene912Codec.Mode compressionMode, MapperService mapperService, Logger logger) { | ||
this(COMPOSITE_INDEX_CODEC_NAME, new PerFieldMappingPostingFormatCodec(compressionMode, mapperService, logger), mapperService); | ||
} | ||
|
||
/** | ||
* Sole constructor. When subclassing this codec, create a no-arg ctor and pass the delegate codec and a unique name to | ||
* this ctor. | ||
* | ||
* @param name name of the codec | ||
* @param delegate codec delegate | ||
* @param mapperService mapper service instance | ||
*/ | ||
protected Composite912Codec(String name, Codec delegate, MapperService mapperService) { | ||
super(name, delegate); | ||
this.mapperService = mapperService; | ||
} | ||
|
||
@Override | ||
public DocValuesFormat docValuesFormat() { | ||
return new Composite99DocValuesFormat(mapperService); | ||
} | ||
} |