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

FileSystem.rename(final Path src, final Path dst, final Rename... options) to become public; specified, tested

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

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.8.0
    • None
    • fs
    • None

    Description

      A lot of code within Hadoop (e.g. committers, filesystem) and downstream (Hive, spark), don't know what to do when rename() returns false, as it can be a sign of nothing important, or something major.

      In contrast, rename(final Path src, final Path dst, final Rename... options) has stricter semantics and throws up all exceptions to be caught or relayed by callers. Yet it cannot be used as its scoped at protected and tagged as @Deprected.

      If it was made public then it could be used in committers and elsewhere; if we backport the making of it public, then life will be even better

      Attachments

        Issue Links

        Activity

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

          People

            stevel@apache.org Steve Loughran
            stevel@apache.org Steve Loughran
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment