Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-7330

Infinite loop in StreamReader.read during exception condition while running repair

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Severity:
      Low

      Description

      InputStream.skip is returning -1 during exception conditions which leads the following logic to infinite loop:

      loop
      protected void drain(InputStream dis, long bytesRead) throws IOException
      {
          long toSkip = totalSize() - bytesRead;
          toSkip = toSkip - dis.skip(toSkip);
          while (toSkip > 0)
              toSkip = toSkip - dis.skip(toSkip);
      }
      

        Attachments

          Activity

            People

            • Assignee:
              JoshuaMcKenzie Joshua McKenzie Assign to me
              Reporter:
              JoshuaMcKenzie Joshua McKenzie
              Authors:
              Joshua McKenzie
              Reviewers:
              Marcus Eriksson

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment