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.
After using RepositoryUpdater.scheduleCompilationAndWait() in a test case stray Lucene lock files remain in the userdir, causing the next test cases to take longer to execute (while Lucene waits for the lock) and dump a warning message. ClassIndexManager.close() can't be used because that would close ClassIndexManager for subsequent test cases too. Perhaps a method like closeIndexes() could be introduced in ClassIndexManager, see the attached patch.
Created attachment 39434 [details] Proposed change
See also SourceUtilsTestUtil2.disableLocks()
Huh, pretty well hidden :-) What about moving these methods to a single class, e.g., JavaSourceTestUtils or similar?
Index.setCacheFolder() could be moved to such a class too.
OK, all these methods should go into single class ClassIndexManager or Index to improve the testability.
moving opened issues from TM <= 6.1 to TM=Dev