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 250861 - Running "Debug Focused Test Method" takes 24 sec - org.netbeans.modules.maven.queries.RepositoryForBinaryQueryImpl$SrcResult.getRoots() is too slow
Summary: Running "Debug Focused Test Method" takes 24 sec - org.netbeans.modules.maven...
Status: RESOLVED DUPLICATE of bug 251990
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.1
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-03 11:15 UTC by NukemBy
Modified: 2015-04-23 09:36 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
25secs of self profiler (381.96 KB, application/octet-stream)
2015-03-03 11:15 UTC, NukemBy
Details
Screenshot of sampling - org.netbeans.modules.maven.queries.RepositoryForBinaryQueryImpl$SrcResult.getRoots() is too slow (93.63 KB, image/png)
2015-03-03 16:42 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NukemBy 2015-03-03 11:15:09 UTC
Created attachment 152354 [details]
25secs of self profiler

Steps to reproduce

1. Take test project from here
   https://netbeans.org/bugzilla/show_bug.cgi?id=250833

2. Open any unit test - for example ConvertersTest (org.apache.wicket.util.convert.converters),

3. Right-click within any unit test method - for example thousandSeperator -> select "Debug Focused Test Method"

4. Wait for successful completion

In my NB (Dev Build 201503020001) that action is being executed for 24 seconds. The test itself actually completes in milliseconds. The weird thing is - the green "Continue" button on toolbar becomes active in around 1-2 seconds after test is started and if I press it - test finishes successfully immediately, but ... if i do not press it NB is doing something with significant CPU load for around 22 seconds. 

Self-profiler is attached.

Note: Execution of the test 'without debug' completes in 1.8 seconds.
Comment 1 markiewb 2015-03-03 16:42:47 UTC
Created attachment 152376 [details]
Screenshot of sampling - org.netbeans.modules.maven.queries.RepositoryForBinaryQueryImpl$SrcResult.getRoots() is too slow

See screenshot - org.netbeans.modules.maven.queries.RepositoryForBinaryQueryImpl$SrcResult.getRoots() is too slow
Comment 2 Tomas Stupka 2015-04-23 09:36:42 UTC
perhaps fixed in scope of issue #251990
feel free to reopen if this shouldn't be the case

*** This bug has been marked as a duplicate of bug 251990 ***