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

Temp signed URLs renew forever against HPCS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.6.2
    • 1.6.2
    • jclouds-blobstore
    • None

    Description

      When I run configurable temp signed URL tests against HPCS (does require https://github.com/jclouds/jclouds/pull/98) against current master, the test hangs and then eventually times out. The wire log shows that even after the URL expires (as expected), we continue to renew and retry forever. The log is filled with retries:

      2013-08-05 14:12:16,738 DEBUG [jclouds.headers] (pool-3-thread-1) >> GET https://region-a.geo-1.objects.hpcloudsvc.com/v1/53176293441764/diwaker-blobstore0/hello?temp_url_sig=53176293441764%3AMRUXXUBT9B4MDDGFFNH4%3A8c142287df0b2492085b84b03ea2ac257c9afe64&temp_url_expires=1375737135 HTTP/1.1
      2013-08-05 14:12:16,845 DEBUG [jclouds.headers] (pool-3-thread-1) << HTTP/1.1 401 Unauthorized2013-08-05 14:12:16,845 DEBUG [jclouds.headers] (pool-3-thread-1) << Date: Mon, 05 Aug 2013 21:12:16 GMT
      2013-08-05 14:12:16,845 DEBUG [jclouds.headers] (pool-3-thread-1) << X-Trans-Id: tx3e2bacd31b0846c7929902234379eaac
      2013-08-05 14:12:16,845 DEBUG [jclouds.headers] (pool-3-thread-1) << Connection: keep-alive
      2013-08-05 14:12:16,845 DEBUG [jclouds.headers] (pool-3-thread-1) << Content-Type: text/plain
      2013-08-05 14:12:16,845 DEBUG [jclouds.headers] (pool-3-thread-1) << Content-Length: 35
      2013-08-05 14:12:16,846 DEBUG [jclouds.headers] (pool-3-thread-1) >> GET https://region-a.geo-1.objects.hpcloudsvc.com/v1/53176293441764/diwaker-blobstore0/hello?temp_url_sig=53176293441764%3AMRUXXUBT9B4MDDGFFNH4%3A8c142287df0b2492085b84b03ea2ac257c9afe64&temp_url_expires=1375737135 HTTP/1.1
      2013-08-05 14:12:16,950 DEBUG [jclouds.headers] (pool-3-thread-1) << HTTP/1.1 401 Unauthorized
      2013-08-05 14:12:16,950 DEBUG [jclouds.headers] (pool-3-thread-1) << Date: Mon, 05 Aug 2013 21:12:16 GMT
      2013-08-05 14:12:16,950 DEBUG [jclouds.headers] (pool-3-thread-1) << X-Trans-Id: tx39c73583d34a49f48e1b4c47f02479e5
      2013-08-05 14:12:16,950 DEBUG [jclouds.headers] (pool-3-thread-1) << Connection: keep-alive
      2013-08-05 14:12:16,950 DEBUG [jclouds.headers] (pool-3-thread-1) << Content-Type: text/plain
      2013-08-05 14:12:16,950 DEBUG [jclouds.headers] (pool-3-thread-1) << Content-Length: 35
      

      More than 1200 retries within a minute:

      $ hpcloud-objectstorage grep -c '401 Unauthorized' target/test-data/jclouds-wire.log
      1199
      

      With `git bisect`, I've also verified that this regression was introduced with commit 7b0cd9be43a6035a71652bb5c9f3cd604e18eb9d. After reverting that commit, the test succeeds as expected. This is a regression from jclouds 1.6.1.

      Attachments

        Activity

          People

            gaul Andrew Gaul
            diwaker Diwaker Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: