You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/06/29 07:57:00 UTC
[jira] [Commented] (ARTEMIS-1959) server startup failure caused by
'./artemis data print'
[ https://issues.apache.org/jira/browse/ARTEMIS-1959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16527300#comment-16527300 ]
ASF GitHub Bot commented on ARTEMIS-1959:
-----------------------------------------
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!
> server startup failure caused by './artemis data print'
> -------------------------------------------------------
>
> Key: ARTEMIS-1959
> URL: https://issues.apache.org/jira/browse/ARTEMIS-1959
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Components: Broker
> Affects Versions: 2.6.2
> Reporter: tang pu
> Priority: Minor
>
> "./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-r--r-- 1 artemis activemq 104857600 Jun 28 15:56 activemq-data-1.amq
> -rw-r--r-- 1 artemis activemq 104857600 Jun 28 15:56 activemq-data-2.amq
> {color:#FF0000}*-rw-r--r-- 1 artemis activemq 10485760 Jun 28 16:12 activemq-data-3.amq*{color}
> {color:#FF0000}*-rw-r--r-- 1 artemis activemq 10485760 Jun 28 16:12 activemq-data-4.amq*{color}
> "./artemis run"
> 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!*
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)