You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Song Ziyang (Jira)" <ji...@apache.org> on 2023/04/25 01:29:00 UTC

[jira] [Created] (RATIS-1837) FileChunkReader.readFileChunk will drain out the inputStream

Song Ziyang created RATIS-1837:
----------------------------------

             Summary: FileChunkReader.readFileChunk will drain out the inputStream
                 Key: RATIS-1837
                 URL: https://issues.apache.org/jira/browse/RATIS-1837
             Project: Ratis
          Issue Type: Bug
          Components: server, snapshot
    Affects Versions: 2.5.0
            Reporter: Song Ziyang
            Assignee: Song Ziyang


FileChunkReader.readChunk is supposed to read up to MaxChunkSize bytes of data. However, ByteString.readFrom(in, chunkLength) will drain out the inputStream



--
This message was sent by Atlassian Jira
(v8.20.10#820010)