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.
If the RepositoryUpdater.Work is obsoleted (cancelled by another work, see RepositoryUpdater.Work.cancelBy), it often runs for an extended period of time. Works often test cancelRequest.isRaised, but that only reports cancelled, if the RepositoryUpdater stops, which is not the case if the work was just obsoleted by a subsequent change. Places, which should be reviewed and perhaps cancelRequest.isRaised() could be replaced by isCancelled() check are: * findDependencies (many occurences) * doIndex * indexBinary * indexEmbedding * RefreshEifIndices.getDone() Cancelling an obsolete indexing task early saves some time
The bast thing that may be a bit dangerous but indexers can be fixed in current bug fixing phase is to join both shutdownRequest and isCanceled as the task should be canceled by each shutdownRequest and have just one method to signal cancelling.
Fixed the parsing.api part cce807bd9c0f Now the java TransactionContext needs to be updated.
Java.source part, jet-main 0a20f1999ceb. Fixed jet-main 0a20f1999ceb
Integrated into 'main-golden', will be available in build *201211040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/cce807bd9c0f User: Tomas Zezula <tzezula@netbeans.org> Log: #219578:Scanning is not interrupted early on cancel