You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by da...@apache.org on 2018/09/07 07:49:44 UTC

[35/50] [abbrv] lucene-solr:jira/http2: LUCENE-8468: Add sliceDescription to the toString() of ByteBuffersIndexInput.

LUCENE-8468: Add sliceDescription to the toString() of ByteBuffersIndexInput.

This fixes test failures in TestLucene50CompoundFormat#testResourceNameInsideCompoundFile.


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/1a006556
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/1a006556
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/1a006556

Branch: refs/heads/jira/http2
Commit: 1a006556e5999eb17d34bef1db08af0773d4e9b6
Parents: 285b743
Author: Adrien Grand <jp...@gmail.com>
Authored: Thu Sep 6 14:01:25 2018 +0200
Committer: Adrien Grand <jp...@gmail.com>
Committed: Thu Sep 6 14:01:25 2018 +0200

----------------------------------------------------------------------
 .../src/java/org/apache/lucene/store/ByteBuffersIndexInput.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/1a006556/lucene/core/src/java/org/apache/lucene/store/ByteBuffersIndexInput.java
----------------------------------------------------------------------
diff --git a/lucene/core/src/java/org/apache/lucene/store/ByteBuffersIndexInput.java b/lucene/core/src/java/org/apache/lucene/store/ByteBuffersIndexInput.java
index 7c87d24..7b899b0 100644
--- a/lucene/core/src/java/org/apache/lucene/store/ByteBuffersIndexInput.java
+++ b/lucene/core/src/java/org/apache/lucene/store/ByteBuffersIndexInput.java
@@ -63,7 +63,7 @@ public final class ByteBuffersIndexInput extends IndexInput implements RandomAcc
   public ByteBuffersIndexInput slice(String sliceDescription, long offset, long length) throws IOException {
     ensureOpen();
     return new ByteBuffersIndexInput(in.slice(offset, length), 
-        "(sliced) offset=" + offset + ", length=" + length + " " + toString());
+        "(sliced) offset=" + offset + ", length=" + length + " " + toString() + " [slice=" + sliceDescription + "]");
   }
 
   @Override