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

MiniDFSCluster should set reasonable defaults to reduce resource consumption

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: datanode, namenode, test
    • Labels:
      None

      Description

      MiniDFSCluster takes its defaults from DFSConfigKeys defaults, but many of these are not suitable for a unit test environment. For example, the default handler thread count of 10 is definitely more than necessary for (almost?) any unit test. We should set reasonable, lower defaults unless a test specifically requires more.

        Attachments

        1. HDFS-13265.000.patch
          6 kB
          Erik Krogen
        2. HDFS-13265.001.patch
          4 kB
          Erik Krogen
        3. HDFS-13265.002.patch
          3 kB
          Erik Krogen
        4. HDFS-13265-branch-2.000.patch
          6 kB
          Erik Krogen
        5. HDFS-13265-branch-2.000.patch
          6 kB
          Erik Krogen
        6. HDFS-13265-branch-2.001.patch
          10 kB
          Erik Krogen
        7. TestMiniDFSClusterThreads.java
          2 kB
          Erik Krogen

          Issue Links

            Activity

              People

              • Assignee:
                xkrogen Erik Krogen
                Reporter:
                xkrogen Erik Krogen
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated: