phaniteja-24 / hudson-eclipse

Automatically exported from code.google.com/p/hudson-eclipse
0 stars 0 forks source link

Hudson view needlessly reloads the jobs several times on opening #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add Thread.dumpStack() to JobContentProvider.getElements()
2. Launch eclipse application with hudson
3. Note the stacktraces originating from multiple points.
4. http://deadlock.netbeans.org/hudson/ shows this quite well as it is a
remote site and is slower than a local site.

What is the expected output? What do you see instead?
Hudson should only fill the job content once on loading the view rather
than the current 6 times.

What version of the product are you using? On what operating system?
Hudson-eclipse svn rev:21

Please provide any additional information below.
The act of adding filters to the view each trigger a scheduled refresh of
the view hence poll for jobs another 4 times.

The JobContentProvider itself schedules a poll for jobs on construction
this is not needed, since one is fired when setting the input on the viewer.

The attached patch removes the poll in the JobContentProvider and moves the
creation of the filters to above setting the input on the viewer in HudsonView.

Original issue reported on code.google.com by Indra.Ta...@gmail.com on 24 May 2008 at 9:19

Attachments:

GoogleCodeExporter commented 9 years ago
I can confirm this issue.

I tested the patch and it resolves the issue. It would be great if it would be
integrated in the next release.

Original comment by onlinea...@gmail.com on 21 Jul 2008 at 8:28

GoogleCodeExporter commented 9 years ago
Patch applied, thanks

Original comment by jre...@gmail.com on 7 Apr 2009 at 4:16