Skip to content

Commit eba2bd5

Browse files
committed
Core: Upgrade to lucene-5.0.0-snapshot-1642891.
The only required change was to add a description to our index outputs. Close #8743
1 parent a8a5391 commit eba2bd5

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
<properties>
3434
<lucene.version>5.0.0</lucene.version>
35-
<lucene.maven.version>5.0.0-snapshot-1641343</lucene.maven.version>
35+
<lucene.maven.version>5.0.0-snapshot-1642891</lucene.maven.version>
3636
<tests.jvms>auto</tests.jvms>
3737
<tests.shuffle>true</tests.shuffle>
3838
<tests.output>onerror</tests.output>
@@ -54,7 +54,7 @@
5454
</repository>
5555
<repository>
5656
<id>Lucene snapshots</id>
57-
<url>https://download.elasticsearch.org/lucenesnapshots/1641343</url>
57+
<url>https://download.elasticsearch.org/lucenesnapshots/1642891</url>
5858
</repository>
5959
</repositories>
6060

src/main/java/org/elasticsearch/gateway/local/state/meta/MetaDataStateFormat.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ public final void write(final T state, final String prefix, final long version,
9898
final Path tmpStatePath = stateLocation.resolve(fileName + ".tmp");
9999
final Path finalStatePath = stateLocation.resolve(fileName);
100100
try {
101-
try (OutputStreamIndexOutput out = new OutputStreamIndexOutput(Files.newOutputStream(tmpStatePath), BUFFER_SIZE)) {
101+
final String resourceDesc = "MetaDataStateFormat.write(path=\"" + tmpStatePath + "\")";
102+
try (OutputStreamIndexOutput out = new OutputStreamIndexOutput(resourceDesc, Files.newOutputStream(tmpStatePath), BUFFER_SIZE)) {
102103
CodecUtil.writeHeader(out, STATE_FILE_CODEC, STATE_FILE_VERSION);
103104
out.writeInt(format.index());
104105
out.writeLong(version);

src/main/java/org/elasticsearch/index/store/VerifyingIndexOutput.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public abstract class VerifyingIndexOutput extends IndexOutput {
3333

3434
/** Sole constructor */
3535
VerifyingIndexOutput(IndexOutput out) {
36+
super("VerifyingIndexOutput(in=" + out + ")");
3637
this.out = out;
3738
}
3839

0 commit comments

Comments
 (0)