[ 
https://issues.apache.org/jira/browse/ARTEMIS-5694?focusedWorklogId=986314&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-986314
 ]

ASF GitHub Bot logged work on ARTEMIS-5694:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 08/Oct/25 13:30
            Start Date: 08/Oct/25 13:30
    Worklog Time Spent: 10m 
      Work Description: clebertsuconic commented on code in PR #5952:
URL: https://github.com/apache/activemq-artemis/pull/5952#discussion_r2413873220


##########
tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/journal/NIOJournalCompactTest.java:
##########
@@ -496,6 +496,46 @@ public void testCompactPrepareRestart() throws Exception {
       loadAndCheck();
    }
 
+   @Test
+   public void testCommitOnRolledBack() throws Exception {
+
+      ExecutorService executorService = Executors.newSingleThreadExecutor();
+      runAfter(executorService::shutdownNow);
+
+      setup(2, 60 * 1024, false);
+
+      createJournal();
+
+      startJournal();
+
+      load();
+
+      addTx(1, 2);
+      rollback(1);
+      startCompact();
+
+      OperationContextImpl context = new OperationContextImpl(executorService);
+      journal.appendCommitRecord(1, false, context);
+      CountDownLatch latch = new CountDownLatch(1);
+      context.executeOnCompletion(new IOCallback() {
+         @Override
+         public void done() {
+            latch.countDown();

Review Comment:
   in this particular test.. yeah.. 
   
   I will add an assertion





Issue Time Tracking
-------------------

    Worklog Id:     (was: 986314)
    Time Spent: 1h 20m  (was: 1h 10m)

> Lingering sessions after a storage timeout
> ------------------------------------------
>
>                 Key: ARTEMIS-5694
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-5694
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 2.42.0
>            Reporter: Clebert Suconic
>            Assignee: Clebert Suconic
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.43.0
>
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> We had reports of sessions not closing for an unkown situation, probably on 
> storage.
> I am adding a timeout verification and adding extra logs in case this happens.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to