Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-17000

Potential infinite loop in TestDFSStripedOutputStreamUpdatePipeline.testDFSStripedOutputStreamUpdatePipeline

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.0
    • 3.4.0
    • test
    • Reviewed

    Description

      The method TestDFSStripedOutputStreamUpdatePipeline.testDFSStripedOutputStreamUpdatePipeline contains the following line:

      for (int i = 0; i < Long.MAX_VALUE; i++) {
      

      GitHub source link

      Because i is an int the condition i < Long.MAX_VALUE will always be true and i will simply overflow.

      Attachments

        Issue Links

          Activity

            People

              Marcono1234 Marcono1234
              Marcono1234 Marcono1234
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: