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

FileSystem.create() with overwrite param specified sometimes takes a long time to return.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.19.0
    • None
    • None
    • None

    Description

      If a file already exists, it takes a long time for the overwrite create to return.

      fs.create(path_1, true);
      

      sometimes takes a long time.

      Instead, the code:

      if (fs.exists(path_1))
          fs.delete(path_1);
      fs.create(path_1);
      

      works pretty well.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              he yongqiang He Yongqiang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: