Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File search: Reliable and fast cancel #83

Merged
merged 1 commit into from
Sep 5, 2022

Conversation

jukzi
Copy link
Contributor

@jukzi jukzi commented Aug 29, 2022

File search did not cancel it's worker jobs if the user canceled before
the monitorUpdateJob was running (scheduling it is no guarantee that is
already running).

  • monitor job is now incorporated into the search thread.
  • fixed expected number of files to scan
  • do not exit search thread before all workers finished.
  • cancel search if any of the workers canceled
  • forward cancel immediately (do not wait 100ms)

@jukzi
Copy link
Contributor Author

jukzi commented Aug 29, 2022

split from eclipse-platform/eclipse.platform.ui#878

@jukzi
Copy link
Contributor Author

jukzi commented Aug 29, 2022

org.eclipse.core.filebuffers.tests.FileBuffersForFilesInLinkedFolders.test16_3
expected:<1> but was:<0>

File search did not cancel it's worker jobs if the user canceled before
the monitorUpdateJob was running (scheduling it is no guarantee that is
already running).
* monitor job is now incorporated into the search thread.
* fixed expected number of files to scan
* do not exit search thread before all workers finished.
* cancel search if any of the workers canceled
* forward cancel immediately (do not wait 100ms)
@jukzi jukzi force-pushed the cancelTextSearchVisitor branch from 7d18f0b to 498a40b Compare September 5, 2022 07:54
@jukzi jukzi merged commit c7d94e3 into eclipse-platform:master Sep 5, 2022
@jukzi jukzi deleted the cancelTextSearchVisitor branch September 5, 2022 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants