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

MiniDFSCluster should set reasonable defaults to reduce resource consumption

Add voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • datanode, namenode, test
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            xkrogen Erik Krogen
            xkrogen Erik Krogen

            Dates

              Created:
              Updated:

              Slack

                Issue deployment