kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nehanarkh...@apache.org
Subject git commit: Minor logging improvement
Date Mon, 04 Nov 2013 00:18:19 GMT
Updated Branches:
  refs/heads/trunk df7f7a255 -> 7d1ac1d80


Minor logging improvement


Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/7d1ac1d8
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/7d1ac1d8
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/7d1ac1d8

Branch: refs/heads/trunk
Commit: 7d1ac1d806ea893a1503c35dbd6087941dc5c25c
Parents: df7f7a2
Author: Neha Narkhede <neha.narkhede@gmail.com>
Authored: Sun Nov 3 16:18:11 2013 -0800
Committer: Neha Narkhede <neha.narkhede@gmail.com>
Committed: Sun Nov 3 16:18:11 2013 -0800

----------------------------------------------------------------------
 core/src/main/scala/kafka/log/OffsetIndex.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/7d1ac1d8/core/src/main/scala/kafka/log/OffsetIndex.scala
----------------------------------------------------------------------
diff --git a/core/src/main/scala/kafka/log/OffsetIndex.scala b/core/src/main/scala/kafka/log/OffsetIndex.scala
index 80dd430..2f4e303 100644
--- a/core/src/main/scala/kafka/log/OffsetIndex.scala
+++ b/core/src/main/scala/kafka/log/OffsetIndex.scala
@@ -211,7 +211,7 @@ class OffsetIndex(@volatile var file: File, val baseOffset: Long, val
maxIndexSi
         require(entries * 8 == mmap.position, entries + " entries but file position in index
is " + mmap.position + ".")
       } else {
         throw new InvalidOffsetException("Attempt to append an offset (%d) to position %d
no larger than the last offset appended (%d) to %s."
-          .format(offset, entries, lastOffset, file.getName))
+          .format(offset, entries, lastOffset, file.getAbsolutePath))
       }
     }
   }


Mime
View raw message