Skip to content

Commit

Permalink
Change unexpected read from exception to warn
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunjeet committed Jun 21, 2023
1 parent 8770271 commit d125436
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ public int getBytes(long index, long len, byte[] bytes, boolean restorePos) {
// extends past the buffer capacity by upto Long.BYTES bytes. To handle this case,
// return 0 for (index >= capacity - Long.BYTES && index < capacity )
// these zero bytes will be discarded anyway when the returned long value is shifted to get the queried bits
throw new UnsupportedOperationException(String.format("Unexpected read past the end, index=%s, capacity=%s", index, capacity));
// throw new UnsupportedOperationException(String.format("Unexpected read past the end, index=%s, capacity=%s", index, capacity)); // SNAP: TODO: in mceviewables on vmstransformer
LOG.warning(String.format("Unexpected read past the end, index=%s, capacity=%s", index, capacity));
}
}

Expand Down

0 comments on commit d125436

Please sign in to comment.