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

Namenode operation checks should be done in a consistent manner

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0-beta
    • namenode
    • None
    • Reviewed

    Description

      Different operations performs checks in different order. I propose consistently checking the following in namenode operations:

      1. Print debug log related to the operation
      2. validate the input parameters, file names
      3. Grab read or write lock
        • check if system is ready for read or write operation
        • check if system is in safemode (for write operations)
        • check permissions to see if the user is owner, has access or is super user privileges
      4. Release the lock

      Attachments

        1. HDFS-4679.patch
          23 kB
          Suresh Srinivas
        2. HDFS-4679.patch
          25 kB
          Suresh Srinivas

        Issue Links

          Activity

            People

              sureshms Suresh Srinivas
              sureshms Suresh Srinivas
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: