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

Make FileSystem.rename(path, path, options) public, specified, tested

    XMLWordPrintableJSON

Details

    • Task
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 2.7.3
    • None
    • fs

    Description

      Currently in FileSystem, rename with Rename options is protected and with deprecated annotation. And the default implementation is not atomic.

      So this method is not able to be used outside. On the other hand, HDFS has a good and atomic implementation. (Also an interesting thing in DFSClient, the deprecated annotations for these two methods are opposite).

      It makes sense to make public for rename with Rename options, since it's atomic for rename+overwrite, also it saves RPC calls if user desires rename+overwrite.

      Attachments

        1. HADOOP-11452-001.patch
          16 kB
          Steve Loughran
        2. HADOOP-11452-002.patch
          31 kB
          Steve Loughran
        3. HADOOP-14452-004.patch
          32 kB
          Steve Loughran
        4. HADOOP-14452-branch-2-003.patch
          31 kB
          Steve Loughran

        Issue Links

          Activity

            People

              stevel@apache.org Steve Loughran
              hitliuyi Yi Liu
              Votes:
              0 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 4h 40m
                  4h 40m