mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-26 14:54:56 +00:00
Core: Upgrade to lucene-5.0.0-snapshot-1642891.
The only required change was to add a description to our index outputs. Close #8743
This commit is contained in:
parent
a8a5391255
commit
eba2bd51c1
4
pom.xml
4
pom.xml
@ -32,7 +32,7 @@
|
||||
|
||||
<properties>
|
||||
<lucene.version>5.0.0</lucene.version>
|
||||
<lucene.maven.version>5.0.0-snapshot-1641343</lucene.maven.version>
|
||||
<lucene.maven.version>5.0.0-snapshot-1642891</lucene.maven.version>
|
||||
<tests.jvms>auto</tests.jvms>
|
||||
<tests.shuffle>true</tests.shuffle>
|
||||
<tests.output>onerror</tests.output>
|
||||
@ -54,7 +54,7 @@
|
||||
</repository>
|
||||
<repository>
|
||||
<id>Lucene snapshots</id>
|
||||
<url>https://download.elasticsearch.org/lucenesnapshots/1641343</url>
|
||||
<url>https://download.elasticsearch.org/lucenesnapshots/1642891</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
|
@ -98,7 +98,8 @@ public abstract class MetaDataStateFormat<T> {
|
||||
final Path tmpStatePath = stateLocation.resolve(fileName + ".tmp");
|
||||
final Path finalStatePath = stateLocation.resolve(fileName);
|
||||
try {
|
||||
try (OutputStreamIndexOutput out = new OutputStreamIndexOutput(Files.newOutputStream(tmpStatePath), BUFFER_SIZE)) {
|
||||
final String resourceDesc = "MetaDataStateFormat.write(path=\"" + tmpStatePath + "\")";
|
||||
try (OutputStreamIndexOutput out = new OutputStreamIndexOutput(resourceDesc, Files.newOutputStream(tmpStatePath), BUFFER_SIZE)) {
|
||||
CodecUtil.writeHeader(out, STATE_FILE_CODEC, STATE_FILE_VERSION);
|
||||
out.writeInt(format.index());
|
||||
out.writeLong(version);
|
||||
|
@ -33,6 +33,7 @@ public abstract class VerifyingIndexOutput extends IndexOutput {
|
||||
|
||||
/** Sole constructor */
|
||||
VerifyingIndexOutput(IndexOutput out) {
|
||||
super("VerifyingIndexOutput(in=" + out + ")");
|
||||
this.out = out;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user