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

Remove obsolete -ns options in in DFSHAAdmin.java

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Invalid
    • None
    • None
    • None
    • None
    • Reviewed

    Description

      After HDFS-7324 fix following piece of code become unused. It should be removed.

          int i = 0;
          String cmd = argv[i++];
      
          if ("-ns".equals(cmd)) {
            if (i == argv.length) {
              errOut.println("Missing nameservice ID");
              printUsage(errOut);
              return -1;
            }
            nameserviceId = argv[i++];
            if (i >= argv.length) {
              errOut.println("Missing command");
              printUsage(errOut);
              return -1;
            }
            argv = Arrays.copyOfRange(argv, i, argv.length);
          }
      

      Attachments

        1. HDFS-7808-1.patch
          4 kB
          Mohammad Arshad

        Issue Links

          Activity

            People

              arshad.mohammad Mohammad Arshad
              arshad.mohammad Mohammad Arshad
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: