[JIRA] (JENKINS-60141) Excessive number of "login -s" requests

32 views
Skip to first unread message

jbateman@qti.qualcomm.com (JIRA)

unread,
Nov 12, 2019, 6:26:03 AM11/12/19
to jenkinsc...@googlegroups.com
James Bateman created an issue
 
Jenkins / Bug JENKINS-60141
Excessive number of "login -s" requests
Issue Type: Bug Bug
Assignee: Rob Petti
Components: perforce-plugin
Created: 2019-11-12 11:25
Labels: jenkins plugin
Priority: Minor Minor
Reporter: James Bateman

Change JENKINS-44166 of the Jenkins P4 plugin modified the plugin to work in cases when a pre-login perforce triggers was being used.

The 'fix' for the above issue:

now means that a 'p4 login -s' call is made to the Perforce server during each and every call to the isLogin() method. This can literally result in 10,000's of 'p4 login -s' requests an hour and cause the server to lock up (by using up all the available TCP sockets).

The consequence being very similar to a DoS attach on the Perforce server.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

rob.petti@gmail.com (JIRA)

unread,
Nov 12, 2019, 10:27:05 AM11/12/19
to jenkinsc...@googlegroups.com
Rob Petti assigned an issue to Paul Allen
Change By: Rob Petti
Assignee: Rob Petti Paul Allen

rob.petti@gmail.com (JIRA)

unread,
Nov 12, 2019, 10:27:05 AM11/12/19
to jenkinsc...@googlegroups.com
Rob Petti updated an issue
Change By: Rob Petti
Component/s: p4-plugin
Component/s: perforce-plugin

rob.petti@gmail.com (JIRA)

unread,
Nov 12, 2019, 10:27:05 AM11/12/19
to jenkinsc...@googlegroups.com
Rob Petti commented on Bug JENKINS-60141
 
Re: Excessive number of "login -s" requests

Wrong plugin. Perforce-plugin is deprecated and no longer supported. Please make sure you are filing tickets under the correct plugin (p4-plugin).

jbateman@qti.qualcomm.com (JIRA)

unread,
Nov 19, 2019, 11:24:02 AM11/19/19
to jenkinsc...@googlegroups.com
James Bateman updated an issue
 
Change By: James Bateman
Priority: Minor Major

kwirth@perforce.com (JIRA)

unread,
Nov 29, 2019, 10:35:04 AM11/29/19
to jenkinsc...@googlegroups.com
Karl Wirth assigned an issue to Karl Wirth
Change By: Karl Wirth
Assignee: Paul Allen Karl Wirth

kwirth@perforce.com (JIRA)

unread,
Nov 29, 2019, 10:36:02 AM11/29/19
to jenkinsc...@googlegroups.com
Karl Wirth updated an issue
Change By: Karl Wirth
Labels: P4_SUPPORT jenkins plugin

kwirth@perforce.com (JIRA)

unread,
Nov 29, 2019, 10:48:02 AM11/29/19
to jenkinsc...@googlegroups.com
Karl Wirth commented on Bug JENKINS-60141
 
Re: Excessive number of "login -s" requests

James Bateman - Again sorry for missing this one. It bypassed our monitoring scripts.

 

We have the problem that we provide the endpoints and Jenkins calls us as needed and there is no continuity or object sharing between calls. This means that we can never be sure if we are logged in or not. As part of the work to reduce 'p4 client -i' we did try and cut down on some of the 'p4 login' commands already.

 

I will produce some example here on number of 'login -s' for a simple script then will pass to the developers.

kwirth@perforce.com (JIRA)

unread,
Dec 4, 2019, 9:56:06 AM12/4/19
to jenkinsc...@googlegroups.com
Karl Wirth updated an issue
Change By: Karl Wirth
Attachment: log.case
Attachment: log.poll

kwirth@perforce.com (JIRA)

unread,
Dec 4, 2019, 10:00:06 AM12/4/19
to jenkinsc...@googlegroups.com
 
Re: Excessive number of "login -s" requests

Sample of a basic freestyle job with a manual workspace executed on a slave. Polling enabled but polling did not trigger the job. Poll Now was clicked to collect the polling P4 commands.

 

Single Freestyle job run through the GUI:
# P4 commands
$ grep user- log.case | grep jenkins | wc -l
58
# P4 info or login commands
$ grep user- log.case | grep jenkins | grep "login\|info" | wc -l
37
Polling for the freestyle job:

# P4 Commands
$ grep user log.poll | grep jenkins | wc -l
9
# P4 info or login commands
$ grep user log.poll | grep jenkins | grep "login\|info" | wc -l
5

Have attached the logs for the above output.

 

kwirth@perforce.com (JIRA)

unread,
Dec 4, 2019, 10:00:06 AM12/4/19
to jenkinsc...@googlegroups.com
Karl Wirth assigned an issue to Unassigned
 
Change By: Karl Wirth
Assignee: Karl Wirth

kwirth@perforce.com (JIRA)

unread,
Dec 4, 2019, 10:00:08 AM12/4/19
to jenkinsc...@googlegroups.com
Karl Wirth updated an issue
Change By: Karl Wirth
Labels: P4_SUPPORT P4_A P4_VERIFY jenkins plugin

cbopardikar@perforce.com (JIRA)

unread,
Dec 17, 2019, 11:31:03 AM12/17/19
to jenkinsc...@googlegroups.com
Charusheela Bopardikar started work on Bug JENKINS-60141
 
Change By: Charusheela Bopardikar
Status: Open In Progress

cbopardikar@perforce.com (JIRA)

unread,
Dec 17, 2019, 11:31:04 AM12/17/19
to jenkinsc...@googlegroups.com
Charusheela Bopardikar commented on Bug JENKINS-60141
 
Re: Excessive number of "login -s" requests

Refactored the code to reduce number of times login -s is called.

cbopardikar@perforce.com (JIRA)

unread,
Dec 17, 2019, 11:42:02 AM12/17/19
to jenkinsc...@googlegroups.com

cbopardikar@perforce.com (JIRA)

unread,
Dec 18, 2019, 5:15:03 AM12/18/19
to jenkinsc...@googlegroups.com
Refactored the code to reduce number of times login -s is called.

cbopardikar@perforce.com (JIRA)

unread,
Dec 19, 2019, 7:02:03 AM12/19/19
to jenkinsc...@googlegroups.com
Change By: Charusheela Bopardikar
Status: In Progress Fixed but Unreleased
Resolution: Fixed

cbopardikar@perforce.com (JIRA)

unread,
Jan 8, 2020, 10:57:04 AM1/8/20
to jenkinsc...@googlegroups.com
 

Released in 1.10.9

Change By: Charusheela Bopardikar
Status: Fixed but Unreleased Closed
Reply all
Reply to author
Forward
0 new messages