Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-181

Blobstores that lack proper support for 100-Continue don't work with JDK7

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.1
    • 1.6.2, 1.7.0
    • jclouds-blobstore
    • None

    Description

      jclouds added the "Expect: 100-Continue" to the putBlob API for most blobstores sometime back. Handling of 100-continue differs between JDK6 and JDK7 in that unlike JDK6, JDK7 will expect a response from the server and will only time out IF a read timeout has been set on the underlying HTTP connection [1].

      As a result, if applications set Constants.PROPERTY_SO_TIMEOUT and use a blobstore that doesn't properly support the Expect header (i.e., doesn't respond with 100-Continue) on JDK7, the putBlob operation will essentially hang forever.

      Specifically, both HPCS and Google Cloud Storage are impacted by this.

      [1] http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/7-b147/sun/net/www/protocol/http/HttpURLConnection.java?av=f#1008

      Attachments

        Issue Links

          Activity

            People

              andrewp Andrew Phillips
              diwaker Diwaker Gupta
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: