Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-11262

Remove unused variables in FSImage.java

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha2
    • Component/s: None
    • Labels:
    • Hadoop Flags:
      Reviewed

      Description

      FSImage.java
          Exception le = null;
          FSImageFile imageFile = null;
          for (int i = 0; i < imageFiles.size(); i++) {
            try {
              imageFile = imageFiles.get(i);
              loadFSImageFile(target, recovery, imageFile, startOpt);
              break;
            } catch (IllegalReservedPathException ie) {
              throw new IOException("Failed to load image from " + imageFile,
                  ie);
            } catch (Exception e) {
              le = e;
              LOG.error("Failed to load image from " + imageFile, e);
              target.clear();
              imageFile = null;
            }
          }
      

      Exception le is not used. It can be removed.

        Attachments

        1. HDFS-11262_00.patch
          0.9 kB
          Jagadesh Kiran N
        2. HDFS-11262_01.patch
          1 kB
          Jagadesh Kiran N
        3. HDFS-11262_02.patch
          1 kB
          Jagadesh Kiran N

          Activity

            People

            • Assignee:
              jagadesh.kiran Jagadesh Kiran N
              Reporter:
              ajisakaa Akira Ajisaka
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: