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

Remove unused variables in FSImage.java

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha2
    • None
    • 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_02.patch
          1 kB
          Jagadesh Kiran N
        2. HDFS-11262_01.patch
          1 kB
          Jagadesh Kiran N
        3. HDFS-11262_00.patch
          0.9 kB
          Jagadesh Kiran N

        Activity

          People

            jagadesh.kiran Jagadesh Kiran N
            aajisaka Akira Ajisaka
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: