[pull] main from quarkusio:main#765
Merged
pull[bot] merged 4 commits intobschuhmann:mainfrom Mar 19, 2026
Merged
Conversation
Implement tests and method to get the status of the recoveryService
Fixes: #47698 Introduces a new extension enabling @transactional annotation support for Hibernate Reactive. This allows developers to use familiar transaction semantics with reactive database operations. Key implementation details: * New hibernate-reactive-transactions extension with dedicated CDI interceptors * TransactionalContextPool wraps the SQL client pool to lazily open transactions based on Vert.x context flags set by the @transactional interceptor * TransactionalInterceptorBase manages the complete transaction lifecycle (begin, commit, rollback) * TransactionalContextConnection wrapper prevents premature connection closure before transaction commit/rollback * OpenedSessionState refactored from Panache to centrally manage session lifecycle and caching * Validation prevents mixing @transactional with @WithTransaction and @WithSessionOnDemand annotations to avoid conflicting transaction semantics * Disable JTA interceptor execution for methods returning Uni to prevent mixups * Integration test for updates and cancellation * Flush session before closing them * Close reactive connections after transaction completion - Schedule connection.close() on transaction completion in TransactionalContextConnection - Add pool size verification to tests to detect connection leaks - Set pool max-size=1 in test config to ensure leaks cause immediate failures * Support joining of nested @transactional method * Removed force to worker thread when a resource endpoint is annotated @transactional, now it relies on the return type (event loop if it returns a Uni<T>, otherwise worker thread). If a method is blocking but returns a Uni<T> it requires explicit @Blocking Limitations: * Currently supports only Transactional.TxType.REQUIRED, other TxType values throw UnsupportedOperationException Adds quarkus-reactive-transactions dependency to hibernate-reactive-panache-common/runtime quarkus-reactive-transactions-deployment dependency to hibernate-reactive-panache/deployment to support the relocated tests. Co-authored-by: Yoann Rodière <yoann@hibernate.org> Co-authored-by: Stéphane Épardaud <stef@inforealm.org>
Support @transactional for Hibernate Reactive
Narayana JTA - Auto-enable recovery service when XA datasources are configured
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )