Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-11587

TestMapFile#testMainMethodMapFile creates test files in hadoop-common project root

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

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 2.7.0
    • test
    • None
    • Reviewed

    Description

      After running TestMapFile#testMainMethodMapFile, two files (data and index) and a directory remain in hadoop-common project root dir.

      hadoop-common-project$ git status

      Untracked files:
      (use "git add <file>..." to include in what will be committed)

      hadoop-common/mainMethodMapFile.mapfile/

      ...

      hadoop-common-project$ tree hadoop-common/mainMethodMapFile.mapfile/
      hadoop-common/mainMethodMapFile.mapfile/
      ├── data
      └── index

      The fix is to use "path" instead of "mainMethodMapFile.mapfile" as output file when calling MapFile.Main(). I will post a patch soon for it.

      Attachments

        1. HADOOP_11587.0.patch
          0.9 kB
          Xiaoyu Yao

        Activity

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

          People

            xyao Xiaoyu Yao
            xyao Xiaoyu Yao
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment