[
https://issues.apache.org/jira/browse/AMQ-9747?focusedWorklogId=975928&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-975928
]
ASF GitHub Bot logged work on AMQ-9747:
---------------------------------------
Author: ASF GitHub Bot
Created on: 23/Jul/25 18:23
Start Date: 23/Jul/25 18:23
Worklog Time Spent: 10m
Work Description: cshannon commented on PR #1474:
URL: https://github.com/apache/activemq/pull/1474#issuecomment-3109662953
> The goal of this PR is only to handle the runtime exception that migh be
killing the tasks in KahaDB, not to try and change how IOExceptions are
propagated or handled in general. So any other changes in terms of when we
throw IO errors and what is and isn't recoverable would be a separate issue and
outside the scope of this change
Oops I just saw you already responded with the same thing :)
Issue Time Tracking
-------------------
Worklog Id: (was: 975928)
Time Spent: 50m (was: 40m)
> Kahadb checkpoint runner thread dies without catching exception
> ---------------------------------------------------------------
>
> Key: AMQ-9747
> URL: https://issues.apache.org/jira/browse/AMQ-9747
> Project: ActiveMQ Classic
> Issue Type: Bug
> Components: KahaDB
> Affects Versions: 6.1.4, 6.1.6, 5.18.7, 6.1.7
> Reporter: ritesh adval
> Assignee: Christopher L. Shannon
> Priority: Major
> Fix For: 6.2.0, 5.19.1, 6.1.8
>
> Attachments: image-2025-07-21-11-14-20-510.png
>
> Time Spent: 50m
> Remaining Estimate: 0h
>
> This bug affects all version of activemq, I have added a few ones starting
> 5.18.4. This is a really critical bug, which causes checkpoint runner thread
> to SILENTLY GET KILLED (exception eaten away), causing kahadb journal files
> to KEEP GROWING, till you restart activemq. There is a bug in handling of io
> exception... see screen shot below. In the catch block its calls
> brokerService.handleIOException().
> !image-2025-07-21-11-14-20-510.png! iif you take a look at the default io
> exception handler which is used, it will throw this SuppressReplyException at
> [https://github.com/apache/activemq/blob/main/activemq-broker/src/main/java/org/apache/activemq/util/DefaultIOExceptionHandler.java#L165]
> and if stopStartConnectors is true (which is if you use
> LeaseLockerIOExceptionHandler) then also it throws this
> SuppressReplyException at
> [https://github.com/apache/activemq/blob/main/activemq-broker/src/main/java/org/apache/activemq/util/DefaultIOExceptionHandler.java#L155]
> and because of this, the CheckPoint runner thread as shown in above screen
> shot would silently die, even though broker is still running...
> it seems the checkpoint runner should not be dying.... we had a situation
> where we were using EFS as our storage for kahadb... and due to a blip in
> connection EFS, an io exception in page.flush in MessageDatabase was thrown
> (we were using LeaseLockerIOExceptionHandler)... that caused
> DefaultIOExceptionHandler logic to start and stop connectors and return
> SuppressReplyException as i mentioned above, causing CheckPoint runner to
> silient get killed... while broker was still running....
>
> we had this in production and the fix we did is to extend
> LeaseLockerIOExceptionHandler and catch exception throw from
> handle(IOException ex) method and log it as warn and not propogate it up to
> checkpoint runner thread... but this is temporary fix.. i am not even sure if
> CheckpointRunner needs to use DefaultIOExceptionHandler.... it shouldn't die
> silently...
--
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