This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 235300 - Do not start query/task initial refresh until projects are opened
Summary: Do not start query/task initial refresh until projects are opened
Status: RESOLVED FIXED
Alias: None
Product: connecteddeveloper
Classification: Unclassified
Component: Issuetracking Framework (show other bugs)
Version: 7.4
Hardware: PC Linux
: P2 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-30 09:40 UTC by Ondrej Vrabec
Modified: 2013-08-30 11:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
thread dump (68.89 KB, text/plain)
2013-08-30 09:40 UTC, Ondrej Vrabec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ondrej Vrabec 2013-08-30 09:40:14 UTC
Please do not start refreshing queries and tasks (in fact do not start any call into bugtracking - as getKnownRepositores) immediately after startup until all projects are loaded. Look at the thread dump, all threads (mercurial, git, subversion) are waiting for all projects to open, only bugtracking starts loading tasklist from disk and refreshing BZ queries. With one slow laptop disk this effectively blocks startup of the IDE for much longer time than it would take with sequenced I/O calls.
This used to work in 7.3 but was lost somewhere along the way.
Comment 1 Ondrej Vrabec 2013-08-30 09:40:36 UTC
Created attachment 139480 [details]
thread dump
Comment 2 Tomas Stupka 2013-08-30 09:55:08 UTC
(In reply to Ondrej Vrabec from comment #0)
> Please do not start refreshing queries and tasks
would expect that being blocked in DashboardViewer.loadData():865
any other entry points?
Comment 3 Ondrej Vrabec 2013-08-30 10:00:24 UTC
ProjectServicesImpl.runAfterProjectOpenFinished does not wait for projects to open:
OpenProjects.getDefault().getOpenProjects() is not blocking, OpenProjects.getDefault().openProjects().get() is
Comment 4 Ondrej Vrabec 2013-08-30 11:26:42 UTC
fix: http://hg.netbeans.org/core-main/rev/7be68e439181