Bug 1819229

Summary: Increase doPoll timeout dramatically
Product: [Community] Bugzilla Reporter: Fernando Reed <freed>
Component: PerformanceAssignee: Jeff Fearn 🐞 <jfearn>
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: high    
Version: 5.0CC: khong, meli
Target Milestone: 5.0-RH11   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.0.4-rh41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-06 00:15:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Fernando Reed 2020-03-31 13:59:42 UTC
Description of problem:
Most requests are from jsonrpc.cgi, triggered by doPoll (defined in  data/template/extensions/BugViewPlus/template/en/default/hook/bug/edit-after_custom_fields.html.tmpl). It has a timeout of 10 seconds. I request that the timeout should be increased dramatically (to a minute or beyond, possibly more -- I'd be in favor for three minutes) since it touches the database and currently the database is our pain point.

We have a few million queries being done every 12 hours or so.

Version-Release number of selected component (if applicable):
5.0.4-39

How reproducible:
All the time

Steps to Reproduce:
1.Open bug
2.Leave window/tab open
3.Wait 10 seconds

Comment 2 Meiying Li 2020-04-02 02:30:09 UTC
Test environment:
https://bz-web.host.qe.eng.pek2.redhat.com

Steps to verify:
1. Open one bug in qe env
2. Leave window/tab open
Note for qe: Ctrl+Shift+C, choose Network Tab, and check jsonrpc.cgi POST
3. Wait 60 seconds
Result: there is a new POST after 60 seconds
/jsonrpc.cgi?tm=1585794206134

Test Result: PASS

Comment 4 Jeff Fearn 🐞 2020-04-06 00:15:57 UTC
This change is now live. If there are any issues, do not reopen this bug. Instead, you should create a new bug and reference this bug.