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

Remove two-step create/append in WebHdfsFileSystem

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Do
    • 3.2.0
    • None
    • webhdfs
    • None

    Description

      Per the javadoc on the WebHdfsFileSystem.connect() method:

          /**
           * Two-step requests redirected to a DN
           *
           * Create/Append:
           * Step 1) Submit a Http request with neither auto-redirect nor data.
           * Step 2) Submit another Http request with the URL from the Location header
           * with data.
           *
           * The reason of having two-step create/append is for preventing clients to
           * send out the data before the redirect. This issue is addressed by the
           * "Expect: 100-continue" header in HTTP/1.1; see RFC 2616, Section 8.2.3.
           * Unfortunately, there are software library bugs (e.g. Jetty 6 http server
           * and Java 6 http client), which do not correctly implement "Expect:
           * 100-continue". The two-step create/append is a temporary workaround for
           * the software library bugs.
           *
           * Open/Checksum
           * Also implements two-step connects for other operations redirected to
           * a DN such as open and checksum
           */

      We should validate that it's safe to remove the two-step process and do so. FYI, smeng.

      Attachments

        Issue Links

          Activity

            People

              smeng Siyao Meng
              templedf Daniel Templeton
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: