Github user morefuntang commented on the issue:
https://github.com/apache/activemq-artemis/pull/2167
**Added test case.**
"./artemis data print" causes artemis to fail to start
set the <journal-file-size> to 100M.
After executing " ./artemis data print", the Journal file list is as
follows:
rw-rr- 1 artemis activemq 104857600 Jun 28 15:56 activemq-data-1.amq
rw-rr- 1 artemis activemq 104857600 Jun 28 15:56 activemq-data-2.amq
**rw-rr- 1 artemis activemq 10485760 Jun 28 16:12 activemq-data-3.amq
rw-rr- 1 artemis activemq 10485760 Jun 28 16:12 activemq-data-4.amq**
After './artemis data print ' is executed, two 10M Journal files will be
created.
read the default configuration item instead of the
configuration(**<journal-file-size>**) in the Broker.xml
The system will throw the following error when restarting:
2018-06-28 16:25:05,601 INFO [org.apache.activemq.artemis.core.server]
AMQ221034: Waiting indefinitely to obtain live lock
2018-06-28 16:25:05,602 INFO [org.apache.activemq.artemis.core.server]
AMQ221035: Live Server Obtained live lock
2018-06-28 16:25:05,788 ERROR [org.apache.activemq.artemis.core.server]
AMQ224000: Failure in initialisation: java.lang.IllegalStateException: the file
is not 104857600 bytes long!
---