Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-9151

Checking s against null in TezJobMonitor#getNameWithProgress() should be done earlier

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.0, 1.1.0, 1.2.0
    • 1.2.0
    • None
    • None

    Description

          int spaceRemaining = COLUMN_1_WIDTH - s.length() - 1;
          String trimmedVName = s;
      
          // if the vertex name is longer than column 1 width, trim it down
          // "Tez Merge File Work" will become "Tez Merge File.."
          if (s != null && s.length() > COLUMN_1_WIDTH) {
      

      s is dereferenced first, rendering the null check ineffective.

      Attachments

        1. HIVE-9151.1.patch
          2 kB
          Prasanth Jayachandran

        Activity

          People

            prasanth_j Prasanth Jayachandran
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: