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

AliyunOSSInputStream#read() should update read bytes stat correctly

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0-alpha2, 2.9.1
    • Component/s: tools
    • Labels:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: