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

Replace FSDataInputStream#read with readFully in Log Aggregation

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.3.0
    • Fix Version/s: None
    • Component/s: log-aggregation
    • Labels:
      None

      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

          Activity

            People

            • Assignee:
              tanu.ajmera Tanu Ajmera
              Reporter:
              prabhujoseph Prabhu Joseph
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: