Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-110

FileCacheStore.fromStreamLockSafe() should only read available bytes or streamBufferSize

XMLWordPrintable

      With VAM, that uses JBoss Marshaller underneath, FileCacheStore.fromStreamLockSafe() should only
      try to read as many bytes as "int numBytes = objectInput.readInt();" returned or streamBufferSize if bigger,
      otherwise it will read too much. Remember that to safe payload space, JBMAR avoided adding markers
      at the end of each object so we should make sure only the required number of bytes are read.

            rh-ee-galder Galder ZamarreƱo
            rh-ee-galder Galder ZamarreƱo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: