From d1254367b07c61fd1d2d08fda290789adcad2afc Mon Sep 17 00:00:00 2001 From: Sunjeet Singh Date: Wed, 21 Jun 2023 15:26:13 -0700 Subject: [PATCH] Change unexpected read from exception to warn --- .../netflix/hollow/core/memory/encoding/BlobByteBuffer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hollow/src/main/java/com/netflix/hollow/core/memory/encoding/BlobByteBuffer.java b/hollow/src/main/java/com/netflix/hollow/core/memory/encoding/BlobByteBuffer.java index 184770e74b..47a4e46df4 100644 --- a/hollow/src/main/java/com/netflix/hollow/core/memory/encoding/BlobByteBuffer.java +++ b/hollow/src/main/java/com/netflix/hollow/core/memory/encoding/BlobByteBuffer.java @@ -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)); } }