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

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

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            JoshuaMcKenzie Joshua McKenzie Assign to me
            JoshuaMcKenzie Joshua McKenzie
            Joshua McKenzie
            Marcus Eriksson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment