SONAR suggestion - don't ignore stream read() return value

Change-Id: I470d7d5a382f43ae5c6e5e577f23fd69517a69a9
diff --git a/core/store/serializers/src/main/java/org/onosproject/store/serializers/ImmutableByteSequenceSerializer.java b/core/store/serializers/src/main/java/org/onosproject/store/serializers/ImmutableByteSequenceSerializer.java
index 24c0ebe..1cbd021 100644
--- a/core/store/serializers/src/main/java/org/onosproject/store/serializers/ImmutableByteSequenceSerializer.java
+++ b/core/store/serializers/src/main/java/org/onosproject/store/serializers/ImmutableByteSequenceSerializer.java
@@ -46,7 +46,11 @@
     public ImmutableByteSequence read(Kryo kryo, Input input, Class<ImmutableByteSequence> type) {
         int length = input.readInt();
         byte[] data = new byte[length];
-        input.read(data);
+        int bytesRead = input.read(data);
+        if (bytesRead != length) {
+            throw new IllegalStateException("Byte sequence serializer read expected " + length +
+                    " but got " + bytesRead);
+        }
         return ImmutableByteSequence.copyFrom(data);
     }
 }