Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-13723

AliyunOSSInputStream#read() should update read bytes stat correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-alpha2, 2.9.1
    • tools
    • None

    Description

        @Override
        public synchronized int read() throws IOException {
          ......
          if (statistics != null && byteRead >= 0) {
            statistics.incrementBytesRead(1);
          }
          return byteRead;
        }
      

      I believe it should be statistics.incrementBytesRead(byteRead);?

      Attachments

        1. HDFS-11007.000.patch
          1 kB
          Mingliang Liu

        Activity

          People

            liuml07 Mingliang Liu
            liuml07 Mingliang Liu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: