Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-10320

Replace FSDataInputStream#read with readFully in Log Aggregation

    XMLWordPrintableJSON

Details

    Description

      Have observed Log Aggregation code has used FSDataInputStream#read instead of readFully in multiple places like below. One of the place is fixed by YARN-8106.
      This Jira targets to fix at all other places.

      LogAggregationIndexedFileController#loadUUIDFromLogFile

                byte[] b = new byte[uuid.length];
                int actual = fsDataInputStream.read(b);
                if (actual != uuid.length || Arrays.equals(b, uuid)) {
      

      Attachments

        1. YARN-10320-002.patch
          3 kB
          Tanu Ajmera
        2. YARN-10320-001.patch
          4 kB
          Tanu Ajmera

        Issue Links

          Activity

            People

              groot Ashutosh Gupta
              prabhujoseph Prabhu Joseph
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m