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 210340

Summary: Improve 'scan canceled' information
Product: editor Reporter: Svata Dedic <sdedic>
Component: Parsing & IndexingAssignee: Svata Dedic <sdedic>
Status: VERIFIED FIXED    
Severity: normal CC: mmirilovic
Priority: P3    
Version: 7.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 210526, 210527    

Description Svata Dedic 2012-03-29 08:49:20 UTC
The 'scan canceled' logs do not contain enough information to pinpoint the root of excessive or long scanning. The report should contain:

* thread dump (at least 2) to hint a possible deadlock, or the time-consuming code
* proper "absorbed" chain of updater works
* classpath changes leading to the update work
* time spent in individual Indexers
* the root being indexed at the time scanning was canceled + time spent on that root

Tresholds on rate of events that trigger scanning should be added, and rate of scanning start/stop exceeds that treshold, the above information should be dumped to the log file.
Comment 2 Jiri Prox 2012-04-02 11:52:13 UTC
verified in trunk
Comment 3 Jiri Prox 2012-04-05 12:36:41 UTC
Please integrate the fixes into 7.1.2, thanks

http://wiki.netbeans.org/NetBeansPatchesProcess
Comment 4 Svata Dedic 2012-04-05 12:42:54 UTC
tranplanted into 7.1.2 in changesets (+ solving merge conflicts):
8f11c11baa35
a56ce786b257
9e827a0c1ed8
e00b2d29d966
a21f2aa09598
2f36e30192d5
485bc0ac6a4d
cdfa092001bd
cc5d7cd9bf34
7c718d4446ff
1f39f9d8bc56

e8a6a1158a9e
a666e073e8fc