Uploaded image for project: 'Identity Gateway'
  1. Identity Gateway
  2. OPENIG-4784

Request for a better TempraryStorage cleanup

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.5.2
    • Fix Version/s: 6.5.3, 7.0.0
    • Component/s: Core, Performance
    • Labels:
      None
    • Support Ticket IDs:
    • Story Points:
      1

      Description

      RFE description

      Request for a better TempraryStorage cleanup

      How to reproduce the issue

      1. Install IG 6.5.2
      2. Create a route with ReverseProxyHandler and set "asyncBehavior: streaming"
      3. Download a large file such as PDF, MP4 etc
      4. Notice temporary files buf*.tmp are accumulating and it never gets deleted
        "handler": {
          "name": "SetStreamingContentHandler",
          "type": "Chain",
          "config": {
              "filters": ["SetStreamingFilter"],
              "handler": {
                  "type": "ReverseProxyHandler",
                  "name": "ReverseProxyHandler",
                  "config": {
                      "asyncBehavior": "streaming",
                      "soTimeout": "unlimited",
       
      Expected behaviour
      A better management system (ie. only keep X number of temp files which are more than X days old etc) for deleting temporary storage files
      
      Current behaviour
      Temporary files never gets deleted, build up over time and causes hard disk to run out
      

      Work around

      Create a custom script to delete temporary files manually when IG server is shutdown.

       

      NOTE: TemporaryBuffer.close() deletes temporary buffer when the response has been processed and completed. However, TemporaryBuffer.close() is not called in finally clause so in case of IOException due to client disconnect etc., temporary files are left without getting deleted and gets accumulated.

        Attachments

          Activity

            People

            Assignee:
            sachiko Sachiko Wallace
            Reporter:
            sachiko Sachiko Wallace
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: