Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-68193

S3 connections are not closed after publishing documents from Staging to Live

    Details

      Description

      Description:
      The issue that the customer is describing involves setting dl.store.impl to S3store, and enabling local live staging. If we publish documents to Live, the customer has noticed that S3 connections are not released. If we publish too much in succession, this causes Amazon to block connections, thereby causing Documents and Media portlet to be inaccessible.

      Steps to reproduce:
      1. Unzip Tomcat Bundle
      2. Set S3 credentials in portal-ext.properties, example to follow:
      dl.store.impl=com.liferay.portlet.documentlibrary.store.S3Store
      dl.store.s3.access.key=xxxxxxxxxxxxxxxx
      dl.store.s3.secret.key=xxxxxxxxxxxxxxxx
      dl.store.s3.bucket.name=xxxxxxxxxxxxxxxx
      3. Start up the server
      4. Create a new site
      5. Set up Local Live staging on this new site
      6. Add three documents/files through Documents and Media's Multiple Upload, and save these documents
      7. Create a new public page
      8. Publish staging to live, setting Content to "Choose Content" then selecting Date Range "All", ensuring that all pages and contents are selected
      9. After the publish in step 8 has completed, publish staging to live again, setting Content to "Choose Content" then selecting Date Range "All", ensuring that all pages and contents are selected
      10. Wait two minutes
      Expected Result:
      Input stream is closed properly, and no warning messages appear.
      Actual Results:
      WARN message appears indicating input stream has not been closed.

      error message

      03:24:00,527 WARN  [Finalizer][HttpMethodReleaseInputStream:221] Attempting to release HttpMethod in finalize() as its response data stream has gone out of scope. This attempt will not always succeed and cannot be relied upon! Please ensure response data streams are always fully consumed or closed to avoid HTTP connection starvation.
      03:24:00,529 WARN  [Finalizer][HttpMethodReleaseInputStream:221] Successfully released HttpMethod in finalize(). You were lucky this time... Please ensure response data streams are always fully consumed or closed.
      03:24:00,529 WARN  [Finalizer][HttpMethodReleaseInputStream:221] Attempting to release HttpMethod in finalize() as its response data stream has gone out of scope. This attempt will not always succeed and cannot be relied upon! Please ensure response data streams are always fully consumed or closed to avoid HTTP connection starvation.
      03:24:00,531 WARN  [Finalizer][HttpMethodReleaseInputStream:221] Successfully released HttpMethod in finalize(). You were lucky this time... Please ensure response data streams are always fully consumed or closed.
      03:24:00,532 WARN  [Finalizer][HttpMethodReleaseInputStream:221] Attempting to release HttpMethod in finalize() as its response data stream has gone out of scope. This attempt will not always succeed and cannot be relied upon! Please ensure response data streams are always fully consumed or closed to avoid HTTP connection starvation.
      03:24:00,534 WARN  [Finalizer][HttpMethodReleaseInputStream:221] Successfully released HttpMethod in finalize(). You were lucky this time... Please ensure response data streams are always fully consumed or closed.
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 5 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 DXP FP5
                  7.0.0 DXP SP1
                  7.0.3 CE GA4
                  7.1.X
                  Master