Skip to content

[5.5] run trie generation thread with QOS set to background #3503

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

Merged
merged 2 commits into from
May 21, 2021

Conversation

tomerd
Copy link
Contributor

@tomerd tomerd commented May 18, 2021

brings #3502 to 5.5

motivation: build the trie should not interrupt other threads

changes: set QOS of trie thread to background
@tomerd
Copy link
Contributor Author

tomerd commented May 18, 2021

@swift-ci please test

…torage has been closed (swiftlang#3505)

motivation: with trie genration now running on lower priority, a race was exposed where the operation may start after the storage already was closed

changes:
* in trie generation, guard on state before trying to execute a statement on the connection since it may be terminated
* in SQLite storage assert state does not got back frmo disconnected -> connected to help triage such issues
* adjust test to new assertion
@tomerd
Copy link
Contributor Author

tomerd commented May 19, 2021

@swift-ci please smoke test

@tomerd
Copy link
Contributor Author

tomerd commented May 19, 2021

@swift-ci please test

@tomerd
Copy link
Contributor Author

tomerd commented May 20, 2021

@swift-ci please smoke test linux

@tomerd
Copy link
Contributor Author

tomerd commented May 20, 2021

@swift-ci please test linux

@tomerd
Copy link
Contributor Author

tomerd commented May 20, 2021

@swift-ci please test

@tomerd
Copy link
Contributor Author

tomerd commented May 20, 2021

@swift-ci please smoke test

@tomerd tomerd self-assigned this May 20, 2021
@tomerd tomerd merged commit 50e9c67 into swiftlang:release/5.5 May 21, 2021
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.

3 participants