[JBoss JIRA] (JBTM-2968) Some JTS quickstarts run with JacORB
by Tom Jenkinson (Jira)
[ https://issues.jboss.org/browse/JBTM-2968?page=com.atlassian.jira.plugin.... ]
Tom Jenkinson updated JBTM-2968:
--------------------------------
Fix Version/s: 5.next
(was: 5.9.1.Final)
> Some JTS quickstarts run with JacORB
> ------------------------------------
>
> Key: JBTM-2968
> URL: https://issues.jboss.org/browse/JBTM-2968
> Project: JBoss Transaction Manager
> Issue Type: Task
> Components: Demonstrator
> Affects Versions: 5.7.1.Final
> Reporter: Michael Musgrove
> Assignee: Michael Musgrove
> Priority: Optional
> Fix For: 5.next
>
>
> Some of the JTS quickstarts are using JacORB. The narayana project has since changed the default ORB (OpenJDK ORB) so we should change the quickstarts to use the new default. The affected poms are:
> ArjunaJTS/pom.xml
> ArjunaJTS/standalone/pom.xml
> ArjunaJTS/trailmap/pom.xml
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 12 months
[JBoss JIRA] (JBTM-3019) Testsuite: Docker controller leaves stray volumes and fills up disk space unnecessairly over time
by Tom Jenkinson (Jira)
[ https://issues.jboss.org/browse/JBTM-3019?page=com.atlassian.jira.plugin.... ]
Tom Jenkinson updated JBTM-3019:
--------------------------------
Fix Version/s: 5.next
(was: 5.9.1.Final)
> Testsuite: Docker controller leaves stray volumes and fills up disk space unnecessairly over time
> -------------------------------------------------------------------------------------------------
>
> Key: JBTM-3019
> URL: https://issues.jboss.org/browse/JBTM-3019
> Project: JBoss Transaction Manager
> Issue Type: Bug
> Components: Testing
> Affects Versions: 5.8.1.Final
> Environment: Docker enabled Jenkins slaves
> Reporter: Michal Karm Babacek
> Assignee: Michal Karm Babacek
> Priority: Minor
> Fix For: 5.next
>
>
> h3. Problem
> The Docker controller that allocates databases as Docker containers cleans up containers and does not leave unnecessary images:
> {code}
> [root@karm-centos7-x86-64 ~]# docker images
> REPOSITORY TAG IMAGE ID CREATED SIZE
> docker.io/postgres 9.4 26bd9b04b948 6 days ago 232 MB
> docker.io/postgres 10 0965cdc98045 6 days ago 234 MB
> docker.io/postgres <none> ed5db6e669ff 7 weeks ago 263 MB
> docker.io/postgres <none> 30121e967865 7 weeks ago 289 MB
> [root@karm-centos7-x86-64 ~]# docker ps -a
> CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
> [root@karm-centos7-x86-64 ~]#
> {code}
> Although it leaves stray container volumes for some reason:
> {code}
> [root@karm-centos7-x86-64 ~]# du -hs /var/lib/docker-latest/volumes
> 15G /var/lib/docker-latest/volumes
> [root@karm-centos7-x86-64 ~]# docker volume ls -qf dangling=true | wc -l
> 409
> {code}
> It unnecessarily clogs the slaves' disk space. The 15G of garbage has been created over dozens and dozens of builds with at least two containers each, but it shouldn't be happening anyway.
> h3. Call to action
> Review whether [removeContainerCmd|https://github.com/jbosstm/narayana/blob/master/tools/...] is supposed to be enough to not only remove the container but to also remove its volume.
> h3. Workaround
> {code}
> docker volume prune
> {code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 12 months
[JBoss JIRA] (JBTM-3020) Add ability for resources to indicate XA_RDONLY on end
by Tom Jenkinson (Jira)
[ https://issues.jboss.org/browse/JBTM-3020?page=com.atlassian.jira.plugin.... ]
Tom Jenkinson updated JBTM-3020:
--------------------------------
Fix Version/s: 5.next
(was: 5.9.1.Final)
> Add ability for resources to indicate XA_RDONLY on end
> ------------------------------------------------------
>
> Key: JBTM-3020
> URL: https://issues.jboss.org/browse/JBTM-3020
> Project: JBoss Transaction Manager
> Issue Type: Feature Request
> Reporter: David Lloyd
> Assignee: Ondra Chaloupka
> Priority: Major
> Fix For: 5.next
>
>
> As discussed in WFLY-10258 and https://developer.jboss.org/message/982097, this request is to add the ability for an XAResource to indicate (on end) that it has no committable work, which would act as a hint to order that XAResource at an earlier point of prepare processing, which will in turn increase the chances of a 1PC optimization occurring.
> As expressed in the forum thread, the mechanism should not interfere with compatibility. One possible way to do this would be to introduce an enhanced subinterface of XAResource which includes a method like this:
> {code:java}
> int endWithResult(Xid xid, int flags) throws XAException;
> {code}
> The method behaves semantically identically to {{XAResource#end}} , except it would be allowed to return {{XA_RDONLY}} or {{XA_OK}}. A value of {{XA_RDONLY}} would indicate that the resource expects to return {{XA_RDONLY}} in response to a {{prepare}} call, whereas a value of {{XA_OK}} indicates that the resource's future {{prepare}} result cannot yet be decided or will be {{XA_OK}}. An invalid result should probably behave equivalently to an {{XAException}} being thrown by the {{end}} method. {{XAER_RMERR}} seems like a reasonable error code for this case. An alternative strategy would be to treat an invalid return value as being equivalent to {{XA_OK}}.
> Since it's a subinterface of {{XAResource}}, it could also define the following default method:
> {code:java}
> default void end(Xid xid, int flags) throws XAException {
> endWithResult(xid, flags);
> }
> {code}
> This method would not need to be called by the TM, but would correctly satisfy the {{XAResource}} contract without requiring the user to implement the redundant method.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 12 months
[JBoss JIRA] (JBTM-3046) REST-AT PerformanceTest occasionally hangs on Windows CI runs
by Tom Jenkinson (Jira)
[ https://issues.jboss.org/browse/JBTM-3046?page=com.atlassian.jira.plugin.... ]
Tom Jenkinson updated JBTM-3046:
--------------------------------
Fix Version/s: 5.next
(was: 5.9.1.Final)
> REST-AT PerformanceTest occasionally hangs on Windows CI runs
> -------------------------------------------------------------
>
> Key: JBTM-3046
> URL: https://issues.jboss.org/browse/JBTM-3046
> Project: JBoss Transaction Manager
> Issue Type: Bug
> Components: Performance Testing
> Affects Versions: 5.9.0.Final
> Reporter: Michael Musgrove
> Assignee: Michael Musgrove
> Priority: Major
> Fix For: 5.next
>
> Attachments: threaddump.txt
>
>
> The test runs from the rts/at/tx/pom.xml module (org.jboss.narayana.rts:restat). The hanging thread seems to be a coordinator request to start an inVM REST-AT transaction. The coordinator is running in an Undertow container and the failing test is org.jboss.jbossts.star.test.PerformanceTest
> See the attachment for the stacktraces.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 12 months
[JBoss JIRA] (JBTM-3065) Check that starting LRA's via CDI and API in the same method works
by Tom Jenkinson (Jira)
[ https://issues.jboss.org/browse/JBTM-3065?page=com.atlassian.jira.plugin.... ]
Tom Jenkinson updated JBTM-3065:
--------------------------------
Fix Version/s: 5.next
(was: 5.9.1.Final)
> Check that starting LRA's via CDI and API in the same method works
> ------------------------------------------------------------------
>
> Key: JBTM-3065
> URL: https://issues.jboss.org/browse/JBTM-3065
> Project: JBoss Transaction Manager
> Issue Type: Bug
> Components: LRA
> Affects Versions: 5.9.0.Final
> Reporter: Michael Musgrove
> Assignee: Michael Musgrove
> Priority: Major
> Fix For: 5.next
>
>
> The LRA spec supports starting LRA's via a Java API or via Java annotations. If the two approaches are used together in the same resource method then the LRA started via the API should be nested inside the one started by an annotation.
> If the annotated class also contains @Compensate and @Complete annotations (which means that the resource should join the outer LRA) and the resource method Joins the nested LRA then the resource should receive callbacks for both the outer and nested LRA's.
> The following code shows an example:
> {code}
> @PUT
> @LRA(LRA.Type.REQUIRES_NEW) // starts a new LRA on entry
> public String doInTransaction() {
> URL lraId = lraClient.startLRA(...); // starts a nested LRA
> lraClient.join(...) // join the nested LRA
> lraClient.closeLRA(lraId); // close the nested LRA
> // assert that the nested callbacks were invoked
> // assert that the callbacks for the outer LRA have not been called yet
> }
> {code}
> Similar comments apply if the resource joins via the LRAManagement API:
> {code}
> @Inject
> private LRAManagement lraManagement;
> public String doInTransaction() {
> lraManagement.joinLRA(this, lraId, 0L, TimeUnit.SECONDS);
> // etc
> {code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 12 months