diff --git a/ambry-store/src/main/java/com.github.ambry.store/PersistentIndex.java b/ambry-store/src/main/java/com.github.ambry.store/PersistentIndex.java index e5a24525e5..957aa461d2 100644 --- a/ambry-store/src/main/java/com.github.ambry.store/PersistentIndex.java +++ b/ambry-store/src/main/java/com.github.ambry.store/PersistentIndex.java @@ -1084,7 +1084,7 @@ private long getAbsolutePositionInLogForOffset(Offset offset, ConcurrentSkipListMap indexSegments) { LogSegment logSegment = log.getSegment(offset.getName()); if (logSegment == null || offset.getOffset() > logSegment.getEndOffset()) { - throw new IllegalArgumentException("Offset is invalid: " + offset); + throw new IllegalArgumentException("Offset is invalid: " + offset + "; LogSegment: " + logSegment); } int numPrecedingLogSegments = getLogSegmentToIndexSegmentMapping(indexSegments).headMap(offset.getName()).size(); return numPrecedingLogSegments * log.getSegmentCapacity() + offset.getOffset();