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

When the client calls hsync, allows the client to update the file length in the NameNode

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

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.3-alpha
    • hdfs-client, namenode
    • None
    • Reviewed

    Description

      As per discussion in HDFS-3960 and HDFS-2802, when clients that need strong consistency update the file length at the NameNode, a special sync/flush is required for getting the length of the being written files when snapshots are taken for these files. This jira implements this sync-with-updating-length by 1) calling ClientProtocol#fsync(), and 2) adding a new field to ClientProtocol#fsync() to indicate the length information.

      Attachments

        1. HDFS-4213.001.patch
          37 kB
          Jing Zhao
        2. HDFS-4213.002.patch
          38 kB
          Jing Zhao
        3. HDFS-4213.003.patch
          23 kB
          Jing Zhao
        4. HDFS-4213.004.patch
          26 kB
          Jing Zhao
        5. HDFS-4213.005.patch
          25 kB
          Jing Zhao
        6. HDFS-4213.006.patch
          25 kB
          Jing Zhao
        7. HDFS-4213.007.patch
          23 kB
          Jing Zhao
        8. HDFS-4213.008.patch
          23 kB
          Jing Zhao

        Issue Links

        Activity

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

          People

            jingzhao Jing Zhao
            jingzhao Jing Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment