It does not keep two copies of the data, is is more that journal files that are candidates for deletion are archived or retained rather than being deleted. if the data is still in the journal, then it won't exist in the retention folder.
send and consume more messages such that compaction would cleanup and remove some journal data files, those will then appear in the retention folder. On Tue, 25 Jan 2022 at 16:33, Matthew Harris <harrisman1...@gmail.com> wrote: > > Hi, > > I'm trying to set up data persistence with an Artemis ActiveMQ broker, > version 2.20.0. > > In broker.xml, I use a "journal-retention-directory" tag to create a > copy of the journals generated by running the broker in the > "data/retention" directory for 365 days, as described in the documentation > here: > https://activemq.apache.org/components/artemis/documentation/latest/persistence.html > . > > After I do this, I use "artemis producer" and "artemis consumer" to send > and receive sample messages and populate the journal with data. However, > once I stop the broker using "artemis stop" and move to the > "data/retention" directory, I see no copies of the journals. > > Am I missing something in the set up, or is there something else I need to > do to enable retention? I've been troubleshooting this for a bit and am a > little lost. > > Thanks, > Matthew