Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.22.0
    • Component/s: contrib/raid
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The RaidNode currently iterates over the directory structure to figure out which files to RAID. With millions of files, this can take a long time - especially if some files are already RAIDed and the RaidNode needs to look at parity files / parity file HARs to determine if the file needs to be RAIDed.

      The directory traversal is encapsulated inside the class DirectoryTraversal, which examines one file at a time, using the caller's thread.

      My proposal is to make this multi-threaded as follows:

      • use a pool of threads inside DirectoryTraversal
      • The caller's thread is used to retrieve directories, and each new directory is assigned to a thread in the pool. The worker thread examines all the files the directory.
      • If there sub-directories, those are added back as workitems to the pool.

      Comments?

      1. MAPREDUCE-2167.4.patch
        8 kB
        Ramkumar Vadali
      2. MAPREDUCE-2167.3.patch
        6 kB
        Ramkumar Vadali
      3. MAPREDUCE-2167.2.patch
        6 kB
        Ramkumar Vadali
      4. MAPREDUCE-2167.patch
        7 kB
        Ramkumar Vadali

        Activity

        Konstantin Shvachko made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Scott Chen made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags [Reviewed]
        Fix Version/s 0.22.0 [ 12314184 ]
        Resolution Fixed [ 1 ]
        Ramkumar Vadali made changes -
        Attachment MAPREDUCE-2167.4.patch [ 12459190 ]
        Ramkumar Vadali made changes -
        Attachment MAPREDUCE-2167.3.patch [ 12459091 ]
        Ramkumar Vadali made changes -
        Attachment MAPREDUCE-2167.2.patch [ 12458960 ]
        Ramkumar Vadali made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Ramkumar Vadali made changes -
        Field Original Value New Value
        Attachment MAPREDUCE-2167.patch [ 12458682 ]
        Ramkumar Vadali created issue -

          People

          • Assignee:
            Ramkumar Vadali
            Reporter:
            Ramkumar Vadali
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development