Fix incorrect ByteBuffer read logic in PartitionManager. Modified Consumer Code.