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

[rqd] Redirect transaction #1628

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

DiegoTavares
Copy link
Collaborator

@DiegoTavares DiegoTavares commented Jan 7, 2025

The redirect logic is needs to happen on a single transaction to avoid a race condition
where the redirect logic would unbook procs to dispatch the reserved job but the procs
would be picked up by another thread booking general jobs.

Besides adding a transaction, this change ensures both unbookProc and dispatchHost calls
run at the same thread to avoid escaping the transaction scope.

Formatting was previously being handled by code_style–ij.xml which is not really
compatible with many new IDEs. This PR changes formating to GoogleStyle enforced by
the spotless gradle plugin in conjunction with jdtls, which is compatible with
vscode and eclipse.
The redirect logic is needs to happen on a single transaction to avoid a race condition
where the redirect logic would unbook procs to dispatch the reserved job but the procs
would be picked up by another thread booking general jobs.

Besides adding a transation, this change ensures both unbookProc and dispatchHost calls
run at the same thread to avoid escaping the transaction scope.
@DiegoTavares
Copy link
Collaborator Author

This commit is stacked on top of #1627

@DiegoTavares DiegoTavares changed the title Redirect transaction [rqd] Redirect transaction Jan 7, 2025
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.

1 participant