[ 
https://issues.apache.org/jira/browse/ARTEMIS-135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14581335#comment-14581335
 ] 

ASF GitHub Bot commented on ARTEMIS-135:
----------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/activemq-artemis/pull/23


> Server won’t start if one of the journal files is truncated for any reason
> --------------------------------------------------------------------------
>
>                 Key: ARTEMIS-135
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-135
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 1.0.0
>            Reporter: Matthew Robson
>            Assignee: clebert suconic
>            Priority: Blocker
>             Fix For: 1.0.1
>
>
> Server won’t start if one of the journal files is truncated for any reason.  
> In this case, there was a 0 byte journal file left behind.  This will happen 
> if any file is less then the header-size.
> 09:14:56,186 SEVERE [org.hornetq.core.server.impl.HornetQServerImpl] (MSC 
> service thread 1-3) Failure in initialisation: 
> java.nio.BufferUnderflowException
>       at java.nio.Buffer.nextGetIndex(Buffer.java:498) [rt.jar:1.7.0_71]
>       at java.nio.HeapByteBuffer.getInt(HeapByteBuffer.java:355) 
> [rt.jar:1.7.0_71]
>       at 
> org.hornetq.core.journal.impl.JournalImpl.readFileHeader(JournalImpl.java:2807)
>  [hornetq-core-2.2.24.BZ928936.jar:2.2.24.BZ928936 (HQ_2_2_24_BZ928936, 122)]
>       at 
> org.hornetq.core.journal.impl.JournalImpl.orderFiles(JournalImpl.java:399) 
> [hornetq-core-2.2.24.BZ928936.jar:2.2.24.BZ928936 (HQ_2_2_24_BZ928936, 122)]
>       at 
> org.hornetq.core.journal.impl.JournalImpl.load(JournalImpl.java:1884) 
> [hornetq-core-2.2.24.BZ928936.jar:2.2.24.BZ928936 (HQ_2_2_24_BZ928936, 122)]
>       at 
> org.hornetq.core.journal.impl.JournalImpl.load(JournalImpl.java:1496) 
> [hornetq-core-2.2.24.BZ928936.jar:2.2.24.BZ928936 (HQ_2_2_24_BZ928936, 122)]
>       at 
> org.hornetq.core.journal.impl.JournalImpl.load(JournalImpl.java:1480) 
> [hornetq-core-2.2.24.BZ928936.jar:2.2.24.BZ928936 (HQ_2_2_24_BZ928936, 122)]
>       at 
> org.hornetq.core.persistence.impl.journal.JournalStorageManager.loadMessageJournal(JournalStorageManager.java:936)
>  [hornetq-core-2.2.24.BZ928936.jar:2.2.24.BZ928936 (HQ_2_2_24_BZ928936, 122)]
>       at 
> org.hornetq.core.server.impl.HornetQServerImpl.loadJournals(HornetQServerImpl.java:1731)
>  [hornetq-core-2.2.24.BZ928936.jar:2.2.24.BZ928936 (HQ_2_2_24_BZ928936, 122)]
>       at 
> org.hornetq.core.server.impl.HornetQServerImpl.initialisePart2(HornetQServerImpl.java:1547)
>  [hornetq-core-2.2.24.BZ928936.jar:2.2.24.BZ928936 (HQ_2_2_24_BZ928936, 122)]
>       at 
> org.hornetq.core.server.impl.HornetQServerImpl.access$1200(HornetQServerImpl.java:141)
>  [hornetq-core-2.2.24.BZ928936.jar:2.2.24.BZ928936 (HQ_2_2_24_BZ928936, 122)]
>       at 
> org.hornetq.core.server.impl.HornetQServerImpl$SharedStoreLiveActivation.run(HornetQServerImpl.java:2060)
>  [hornetq-core-2.2.24.BZ928936.jar:2.2.24.BZ928936 (HQ_2_2_24_BZ928936, 122)]
>       at 
> org.hornetq.core.server.impl.HornetQServerImpl.start(HornetQServerImpl.java:369)
>  [hornetq-core-2.2.24.BZ928936.jar:2.2.24.BZ928936 (HQ_2_2_24_BZ928936, 122)]
>       at 
> org.hornetq.jms.server.impl.JMSServerManagerImpl.start(JMSServerManagerImpl.java:282)
>  [hornetq-jms-2.2.24.BZ928936.jar:2.2.24.BZ928936 (HQ_2_2_24_BZ928936, 122)]
>       at org.jboss.as.messaging.jms.JMSService.start(JMSService.java:73) 
> [jboss-as-messaging-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
>       at 
> org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
>  [jboss-msc-1.0.2.GA-redhat-2.jar:1.0.2.GA-redhat-2]
>       at 
> org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
>  [jboss-msc-1.0.2.GA-redhat-2.jar:1.0.2.GA-redhat-2]
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>  [rt.jar:1.7.0_71]
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>  [rt.jar:1.7.0_71]
>       at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_71]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to