Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-43199

Credentials Binding plugin causes File Descriptor leak

    Details

    • Similar Issues:

      Description

      Our deployment of Jenkins with this plugin is currently on an NFS share. In testing a job with this plugin, a file descriptor was apparently left open. We found this out when attempting to delete the test job after it ran. (It was a simple echo job to make sure masking worked as expected, nothing else)

      The issue appears to be related to the anonymous sub-class of the LineTransformationOutputStream class returned by the Wrapper class and similar to the bug resolved in JENKINS-28409 for EnvInject. The sub-class needs to clean up it's parent outputstream and the super class on close.

       

      @Override
       public void close() throws IOException {
       super.close();
       out.close();
       }

        Attachments

          Issue Links

            Activity

            ebutler Elliott Butler created issue -
            ravik30893 RAVIKUMAR t made changes -
            Field Original Value New Value
            Status Open [ 1 ] In Progress [ 3 ]
            ravik30893 RAVIKUMAR t made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            bagee Bill Agee made changes -
            Priority Minor [ 4 ] Critical [ 2 ]
            bagee Bill Agee made changes -
            Priority Critical [ 2 ] Major [ 3 ]
            bagee Bill Agee made changes -
            Comment [ Marked this as major since after completing the install of the blue ocean plugin (which seems to have been when this bug appeared on my system), I suddenly needed to restart my Jenkins master process every two days to avoid jobs failing with "too many open files" errors. My max open FD limit for jenkins was set to 8196.

            Initially I worked around this by removing the credentials plugin from some frequently-running jobs.

            Today, I realized that a rollback of the Credentials Binding plugin to 1.11 was possible in the Plugin Manager, so I tried that. It seems to have stopped the FD leak!

            What's strange is that 1.11 is displayed as the most recent version on [https://wiki.jenkins-ci.org/display/JENKINS/Credentials+Binding+Plugin]

            Was a newer version pulled from release? Or perhaps the blue ocean installation I did last week pulled in a newer, unadvertised version somehow? ]
            oleg_nenashev Oleg Nenashev made changes -
            Status In Review [ 10005 ] In Progress [ 3 ]
            oleg_nenashev Oleg Nenashev made changes -
            Status In Progress [ 3 ] Open [ 1 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-28409 [ JENKINS-28409 ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "PR 37 (Web Link)" [ 17143 ]
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue is related to JENKINS-45057 [ JENKINS-45057 ]
            stephenconnolly Stephen Connolly made changes -
            Link This issue is duplicated by JENKINS-45057 [ JENKINS-45057 ]
            stephenconnolly Stephen Connolly made changes -
            Link This issue is related to JENKINS-45057 [ JENKINS-45057 ]
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue duplicates JENKINS-45057 [ JENKINS-45057 ]
            oleg_nenashev Oleg Nenashev made changes -
            Status In Review [ 10005 ] Closed [ 6 ]
            Resolution Fixed [ 1 ]
            jglick Jesse Glick made changes -
            Resolution Fixed [ 1 ]
            Status Closed [ 6 ] Reopened [ 4 ]
            jglick Jesse Glick made changes -
            Status Reopened [ 4 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-45946 [ JENKINS-45946 ]

              People

              • Assignee:
                Unassigned
                Reporter:
                ebutler Elliott Butler
              • Votes:
                6 Vote for this issue
                Watchers:
                16 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: