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:
Adrien Grand 2014-12-02 17:26:34 +01:00
parent a8a5391255
commit eba2bd51c1
3 changed files with 5 additions and 3 deletions

View File

@ -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>

View File

@ -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);

View File

@ -33,6 +33,7 @@ public abstract class VerifyingIndexOutput extends IndexOutput {
/** Sole constructor */
VerifyingIndexOutput(IndexOutput out) {
super("VerifyingIndexOutput(in=" + out + ")");
this.out = out;
}