You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by st...@apache.org on 2026/07/05 15:25:13 UTC
(tomee) branch main updated: fix FailOverRouterErrorHandlerTest and others
This is an automated email from the ASF dual-hosted git repository.
asf-gitbox-commits pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomee.git
The following commit(s) were added to refs/heads/main by this push:
new 23e55fea9f fix FailOverRouterErrorHandlerTest and others
23e55fea9f is described below
commit 23e55fea9feb25f44a9e264566318c3b49f84afc
Author: Mark Struberg <st...@apache.org>
AuthorDate: Sun Jul 5 17:23:30 2026 +0200
fix FailOverRouterErrorHandlerTest and others
RoutedDataSource has multiple constructors with a 'router' named parameter.
That leads to randomly picking up one of those 2 ct.
One of them works, the other won't - means we have stochastic test errors
---
.../main/java/org/apache/openejb/resource/jdbc/RoutedDataSource.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/container/openejb-core/src/main/java/org/apache/openejb/resource/jdbc/RoutedDataSource.java b/container/openejb-core/src/main/java/org/apache/openejb/resource/jdbc/RoutedDataSource.java
index 0324661273..dbd57b7c48 100644
--- a/container/openejb-core/src/main/java/org/apache/openejb/resource/jdbc/RoutedDataSource.java
+++ b/container/openejb-core/src/main/java/org/apache/openejb/resource/jdbc/RoutedDataSource.java
@@ -39,8 +39,8 @@ public class RoutedDataSource implements DataSource {
// no-op
}
- public RoutedDataSource(final Router router) {
- delegate = router;
+ public RoutedDataSource(final Router routerDelegate) {
+ delegate = routerDelegate;
}
public RoutedDataSource(final String router) {