Ken Liao created AMQ-9594:
-----------------------------

             Summary: Limit storage for temporary transactions store files. 
                 Key: AMQ-9594
                 URL: https://issues.apache.org/jira/browse/AMQ-9594
             Project: ActiveMQ Classic
          Issue Type: Improvement
          Components: KahaDB
    Affects Versions: 5.18.4
            Reporter: Ken Liao


Currently when a transaction is inflight, it will generate temporary files in 
the data store. With name tx-*.tmp. However size of those files are not 
accounted for in the TempStorage limit configurable on ActiveMQ. As a result, 
in certain cases, there could be huge dangling tmp files due to unclean 
shutdown (as indicated in https://issues.apache.org/jira/browse/AMQ-4267 and 
https://users.activemq.apache.narkive.com/weIikSfX/size-limitation-for-tx-tmp-file.
 In certain cases, up to 500GB.

The proposal here is to count those tmp files in the TempStorage limit already 
provided (used to store non-persistent transient messages) or in a different 
limit. By doing that, it will cause producer flow control to improve stability 
of the broker.

That said, the scenario for triggering large dangling tmp files is still 
unknown. Once the root cause is configured out, a separate ticket will be filed 
to keep track of it.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@activemq.apache.org
For additional commands, e-mail: issues-h...@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact


Reply via email to