[jira] [Commented] (ARTEMIS-618) Fails to initialize journal if hard drive block size is over 512 bytes

2018-04-05 Thread clebert suconic (JIRA)

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

clebert suconic commented on ARTEMIS-618:
-

you know you helped me to find a pesky failure that was happening from time to 
time on our Travis? thanks for the help.

> Fails to initialize journal if hard drive block size is over 512 bytes
> --
>
> Key: ARTEMIS-618
> URL: https://issues.apache.org/jira/browse/ARTEMIS-618
> Project: ActiveMQ Artemis
>  Issue Type: Bug
>Affects Versions: 2.5.0
> Environment: CentOS 7 on hard drive with 4 KB blocks
>Reporter: Rostyslav Smirnov
>Assignee: clebert suconic
>Priority: Major
> Fix For: 2.5.1
>
>
> AIO journal fails to initialize with the following error:
> AMQ224000: Failure in initialisation: java.io.IOException: Cannot initialize 
> file
>   at org.apache.activemq.artemis.jlibaio.LibaioContext.fill(Native 
> Method) [artemis-native-1.3.0.jar:]
>   at 
> org.apache.activemq.artemis.jlibaio.LibaioFile.fill(LibaioFile.java:122) 
> [artemis-native-1.3.0.jar:]
>   at 
> org.apache.activemq.artemis.core.io.aio.AIOSequentialFile.fill(AIOSequentialFile.java:126)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.createFile0(JournalFilesRepository.java:587)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.createFile(JournalFilesRepository.java:537)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.ensureMinFiles(JournalFilesRepository.java:201)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.setUpCurrentFile(JournalImpl.java:2709)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1755)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1135)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1119)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.persistence.impl.journal.AbstractJournalStorageManager.loadMessageJournal(AbstractJournalStorageManager.java:864)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.loadJournals(ActiveMQServerImpl.java:2054)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart2(ActiveMQServerImpl.java:1927)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.LiveOnlyActivation.run(LiveOnlyActivation.java:63)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:427)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl.start(JMSServerManagerImpl.java:394)
>  [artemis-jms-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.integration.FileBroker.start(FileBroker.java:65) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:83) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:110) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:72) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> [rt.jar:1.8.0_65]
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> [rt.jar:1.8.0_65]
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  [rt.jar:1.8.0_65]
>   at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_65]
>   at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:122) 
> [artemis-boot.jar:1.3.0]
>   at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:45) 
> [artemis-boot.jar:1.3.0]
> This is due to buffers not being aligned for writing to file open with 
> O_DIRECT flag.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (ARTEMIS-618) Fails to initialize journal if hard drive block size is over 512 bytes

2018-04-05 Thread Rostyslav Smirnov (JIRA)

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

Rostyslav Smirnov commented on ARTEMIS-618:
---

Yes, indeed.

> Fails to initialize journal if hard drive block size is over 512 bytes
> --
>
> Key: ARTEMIS-618
> URL: https://issues.apache.org/jira/browse/ARTEMIS-618
> Project: ActiveMQ Artemis
>  Issue Type: Bug
>Affects Versions: 2.5.0
> Environment: CentOS 7 on hard drive with 4 KB blocks
>Reporter: Rostyslav Smirnov
>Assignee: clebert suconic
>Priority: Major
> Fix For: 2.5.1
>
>
> AIO journal fails to initialize with the following error:
> AMQ224000: Failure in initialisation: java.io.IOException: Cannot initialize 
> file
>   at org.apache.activemq.artemis.jlibaio.LibaioContext.fill(Native 
> Method) [artemis-native-1.3.0.jar:]
>   at 
> org.apache.activemq.artemis.jlibaio.LibaioFile.fill(LibaioFile.java:122) 
> [artemis-native-1.3.0.jar:]
>   at 
> org.apache.activemq.artemis.core.io.aio.AIOSequentialFile.fill(AIOSequentialFile.java:126)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.createFile0(JournalFilesRepository.java:587)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.createFile(JournalFilesRepository.java:537)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.ensureMinFiles(JournalFilesRepository.java:201)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.setUpCurrentFile(JournalImpl.java:2709)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1755)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1135)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1119)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.persistence.impl.journal.AbstractJournalStorageManager.loadMessageJournal(AbstractJournalStorageManager.java:864)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.loadJournals(ActiveMQServerImpl.java:2054)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart2(ActiveMQServerImpl.java:1927)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.LiveOnlyActivation.run(LiveOnlyActivation.java:63)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:427)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl.start(JMSServerManagerImpl.java:394)
>  [artemis-jms-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.integration.FileBroker.start(FileBroker.java:65) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:83) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:110) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:72) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> [rt.jar:1.8.0_65]
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> [rt.jar:1.8.0_65]
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  [rt.jar:1.8.0_65]
>   at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_65]
>   at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:122) 
> [artemis-boot.jar:1.3.0]
>   at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:45) 
> [artemis-boot.jar:1.3.0]
> This is due to buffers not being aligned for writing to file open with 
> O_DIRECT flag.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (ARTEMIS-618) Fails to initialize journal if hard drive block size is over 512 bytes

2018-04-05 Thread clebert suconic (JIRA)

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

clebert suconic commented on ARTEMIS-618:
-

ok, so I assumed it worked then.. ???

> Fails to initialize journal if hard drive block size is over 512 bytes
> --
>
> Key: ARTEMIS-618
> URL: https://issues.apache.org/jira/browse/ARTEMIS-618
> Project: ActiveMQ Artemis
>  Issue Type: Bug
>Affects Versions: 2.5.0
> Environment: CentOS 7 on hard drive with 4 KB blocks
>Reporter: Rostyslav Smirnov
>Assignee: clebert suconic
>Priority: Major
> Fix For: 2.5.1
>
>
> AIO journal fails to initialize with the following error:
> AMQ224000: Failure in initialisation: java.io.IOException: Cannot initialize 
> file
>   at org.apache.activemq.artemis.jlibaio.LibaioContext.fill(Native 
> Method) [artemis-native-1.3.0.jar:]
>   at 
> org.apache.activemq.artemis.jlibaio.LibaioFile.fill(LibaioFile.java:122) 
> [artemis-native-1.3.0.jar:]
>   at 
> org.apache.activemq.artemis.core.io.aio.AIOSequentialFile.fill(AIOSequentialFile.java:126)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.createFile0(JournalFilesRepository.java:587)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.createFile(JournalFilesRepository.java:537)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.ensureMinFiles(JournalFilesRepository.java:201)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.setUpCurrentFile(JournalImpl.java:2709)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1755)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1135)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1119)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.persistence.impl.journal.AbstractJournalStorageManager.loadMessageJournal(AbstractJournalStorageManager.java:864)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.loadJournals(ActiveMQServerImpl.java:2054)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart2(ActiveMQServerImpl.java:1927)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.LiveOnlyActivation.run(LiveOnlyActivation.java:63)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:427)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl.start(JMSServerManagerImpl.java:394)
>  [artemis-jms-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.integration.FileBroker.start(FileBroker.java:65) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:83) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:110) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:72) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> [rt.jar:1.8.0_65]
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> [rt.jar:1.8.0_65]
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  [rt.jar:1.8.0_65]
>   at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_65]
>   at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:122) 
> [artemis-boot.jar:1.3.0]
>   at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:45) 
> [artemis-boot.jar:1.3.0]
> This is due to buffers not being aligned for writing to file open with 
> O_DIRECT flag.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (ARTEMIS-618) Fails to initialize journal if hard drive block size is over 512 bytes

2018-04-05 Thread Rostyslav Smirnov (JIRA)

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

Rostyslav Smirnov commented on ARTEMIS-618:
---

Tested the fix. Thanks, [~clebertsuconic]!

> Fails to initialize journal if hard drive block size is over 512 bytes
> --
>
> Key: ARTEMIS-618
> URL: https://issues.apache.org/jira/browse/ARTEMIS-618
> Project: ActiveMQ Artemis
>  Issue Type: Bug
>Affects Versions: 2.5.0
> Environment: CentOS 7 on hard drive with 4 KB blocks
>Reporter: Rostyslav Smirnov
>Assignee: clebert suconic
>Priority: Major
> Fix For: 2.5.1
>
>
> AIO journal fails to initialize with the following error:
> AMQ224000: Failure in initialisation: java.io.IOException: Cannot initialize 
> file
>   at org.apache.activemq.artemis.jlibaio.LibaioContext.fill(Native 
> Method) [artemis-native-1.3.0.jar:]
>   at 
> org.apache.activemq.artemis.jlibaio.LibaioFile.fill(LibaioFile.java:122) 
> [artemis-native-1.3.0.jar:]
>   at 
> org.apache.activemq.artemis.core.io.aio.AIOSequentialFile.fill(AIOSequentialFile.java:126)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.createFile0(JournalFilesRepository.java:587)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.createFile(JournalFilesRepository.java:537)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.ensureMinFiles(JournalFilesRepository.java:201)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.setUpCurrentFile(JournalImpl.java:2709)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1755)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1135)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1119)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.persistence.impl.journal.AbstractJournalStorageManager.loadMessageJournal(AbstractJournalStorageManager.java:864)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.loadJournals(ActiveMQServerImpl.java:2054)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart2(ActiveMQServerImpl.java:1927)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.LiveOnlyActivation.run(LiveOnlyActivation.java:63)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:427)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl.start(JMSServerManagerImpl.java:394)
>  [artemis-jms-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.integration.FileBroker.start(FileBroker.java:65) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:83) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:110) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:72) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> [rt.jar:1.8.0_65]
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> [rt.jar:1.8.0_65]
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  [rt.jar:1.8.0_65]
>   at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_65]
>   at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:122) 
> [artemis-boot.jar:1.3.0]
>   at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:45) 
> [artemis-boot.jar:1.3.0]
> This is due to buffers not being aligned for writing to file open with 
> O_DIRECT flag.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (ARTEMIS-618) Fails to initialize journal if hard drive block size is over 512 bytes

2018-04-05 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on ARTEMIS-618:
-

Commit 4dd594f38b30306ae613295127f88d6f043e1300 in activemq-artemis's branch 
refs/heads/master from Clebert Suconic
[ https://git-wip-us.apache.org/repos/asf?p=activemq-artemis.git;h=4dd594f ]

ARTEMIS-618 Using proper block size on Native One Mega Buffer

This buffer is used on fill


> Fails to initialize journal if hard drive block size is over 512 bytes
> --
>
> Key: ARTEMIS-618
> URL: https://issues.apache.org/jira/browse/ARTEMIS-618
> Project: ActiveMQ Artemis
>  Issue Type: Bug
>Affects Versions: 2.5.0
> Environment: CentOS 7 on hard drive with 4 KB blocks
>Reporter: Rostyslav Smirnov
>Assignee: clebert suconic
>Priority: Major
> Fix For: 2.5.1
>
>
> AIO journal fails to initialize with the following error:
> AMQ224000: Failure in initialisation: java.io.IOException: Cannot initialize 
> file
>   at org.apache.activemq.artemis.jlibaio.LibaioContext.fill(Native 
> Method) [artemis-native-1.3.0.jar:]
>   at 
> org.apache.activemq.artemis.jlibaio.LibaioFile.fill(LibaioFile.java:122) 
> [artemis-native-1.3.0.jar:]
>   at 
> org.apache.activemq.artemis.core.io.aio.AIOSequentialFile.fill(AIOSequentialFile.java:126)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.createFile0(JournalFilesRepository.java:587)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.createFile(JournalFilesRepository.java:537)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.ensureMinFiles(JournalFilesRepository.java:201)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.setUpCurrentFile(JournalImpl.java:2709)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1755)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1135)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1119)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.persistence.impl.journal.AbstractJournalStorageManager.loadMessageJournal(AbstractJournalStorageManager.java:864)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.loadJournals(ActiveMQServerImpl.java:2054)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart2(ActiveMQServerImpl.java:1927)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.LiveOnlyActivation.run(LiveOnlyActivation.java:63)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:427)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl.start(JMSServerManagerImpl.java:394)
>  [artemis-jms-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.integration.FileBroker.start(FileBroker.java:65) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:83) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:110) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:72) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> [rt.jar:1.8.0_65]
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> [rt.jar:1.8.0_65]
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  [rt.jar:1.8.0_65]
>   at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_65]
>   at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:122) 
> [artemis-boot.jar:1.3.0]
>   at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:45) 
> [artemis-boot.jar:1.3.0]
> This is due to buffers not being aligned for writing to file open with 
> O_DIRECT flag.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (ARTEMIS-618) Fails to initialize journal if hard drive block size is over 512 bytes

2018-04-05 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on ARTEMIS-618:


Github user asfgit closed the pull request at:

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


> Fails to initialize journal if hard drive block size is over 512 bytes
> --
>
> Key: ARTEMIS-618
> URL: https://issues.apache.org/jira/browse/ARTEMIS-618
> Project: ActiveMQ Artemis
>  Issue Type: Bug
>Affects Versions: 2.5.0
> Environment: CentOS 7 on hard drive with 4 KB blocks
>Reporter: Rostyslav Smirnov
>Assignee: clebert suconic
>Priority: Major
> Fix For: 2.5.1
>
>
> AIO journal fails to initialize with the following error:
> AMQ224000: Failure in initialisation: java.io.IOException: Cannot initialize 
> file
>   at org.apache.activemq.artemis.jlibaio.LibaioContext.fill(Native 
> Method) [artemis-native-1.3.0.jar:]
>   at 
> org.apache.activemq.artemis.jlibaio.LibaioFile.fill(LibaioFile.java:122) 
> [artemis-native-1.3.0.jar:]
>   at 
> org.apache.activemq.artemis.core.io.aio.AIOSequentialFile.fill(AIOSequentialFile.java:126)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.createFile0(JournalFilesRepository.java:587)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.createFile(JournalFilesRepository.java:537)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.ensureMinFiles(JournalFilesRepository.java:201)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.setUpCurrentFile(JournalImpl.java:2709)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1755)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1135)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1119)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.persistence.impl.journal.AbstractJournalStorageManager.loadMessageJournal(AbstractJournalStorageManager.java:864)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.loadJournals(ActiveMQServerImpl.java:2054)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart2(ActiveMQServerImpl.java:1927)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.LiveOnlyActivation.run(LiveOnlyActivation.java:63)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:427)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl.start(JMSServerManagerImpl.java:394)
>  [artemis-jms-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.integration.FileBroker.start(FileBroker.java:65) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:83) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:110) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:72) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> [rt.jar:1.8.0_65]
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> [rt.jar:1.8.0_65]
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  [rt.jar:1.8.0_65]
>   at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_65]
>   at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:122) 
> [artemis-boot.jar:1.3.0]
>   at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:45) 
> [artemis-boot.jar:1.3.0]
> This is due to buffers not being aligned for writing to file open with 
> O_DIRECT flag.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (ARTEMIS-618) Fails to initialize journal if hard drive block size is over 512 bytes

2018-04-04 Thread clebert suconic (JIRA)

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

clebert suconic commented on ARTEMIS-618:
-

Would you be able to download a branch from my fork and try it out?

 

[https://github.com/apache/activemq-artemis/pull/1993]

 

 

You won't be able to simply use the new native as a signature has changed on 
the internal native method. so you will have to download the whole branch and 
try over.

> Fails to initialize journal if hard drive block size is over 512 bytes
> --
>
> Key: ARTEMIS-618
> URL: https://issues.apache.org/jira/browse/ARTEMIS-618
> Project: ActiveMQ Artemis
>  Issue Type: Bug
>Affects Versions: 2.5.0
> Environment: CentOS 7 on hard drive with 4 KB blocks
>Reporter: Rostyslav Smirnov
>Assignee: clebert suconic
>Priority: Major
> Fix For: 2.5.1
>
>
> AIO journal fails to initialize with the following error:
> AMQ224000: Failure in initialisation: java.io.IOException: Cannot initialize 
> file
>   at org.apache.activemq.artemis.jlibaio.LibaioContext.fill(Native 
> Method) [artemis-native-1.3.0.jar:]
>   at 
> org.apache.activemq.artemis.jlibaio.LibaioFile.fill(LibaioFile.java:122) 
> [artemis-native-1.3.0.jar:]
>   at 
> org.apache.activemq.artemis.core.io.aio.AIOSequentialFile.fill(AIOSequentialFile.java:126)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.createFile0(JournalFilesRepository.java:587)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.createFile(JournalFilesRepository.java:537)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.ensureMinFiles(JournalFilesRepository.java:201)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.setUpCurrentFile(JournalImpl.java:2709)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1755)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1135)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1119)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.persistence.impl.journal.AbstractJournalStorageManager.loadMessageJournal(AbstractJournalStorageManager.java:864)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.loadJournals(ActiveMQServerImpl.java:2054)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart2(ActiveMQServerImpl.java:1927)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.LiveOnlyActivation.run(LiveOnlyActivation.java:63)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:427)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl.start(JMSServerManagerImpl.java:394)
>  [artemis-jms-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.integration.FileBroker.start(FileBroker.java:65) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:83) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:110) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:72) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> [rt.jar:1.8.0_65]
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> [rt.jar:1.8.0_65]
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  [rt.jar:1.8.0_65]
>   at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_65]
>   at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:122) 
> [artemis-boot.jar:1.3.0]
>   at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:45) 
> [artemis-boot.jar:1.3.0]
> This is due to buffers not being aligned for writing to file open with 
> O_DIRECT flag.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (ARTEMIS-618) Fails to initialize journal if hard drive block size is over 512 bytes

2018-04-04 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on ARTEMIS-618:


GitHub user clebertsuconic opened a pull request:

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

ARTEMIS-618 Using proper block size on Native One Mega Buffer

This buffer is used on fill

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/clebertsuconic/activemq-artemis aio

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/activemq-artemis/pull/1993.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #1993


commit 64fec0478bcecb5b48cc1684cf4dee8e2a1871dd
Author: Clebert Suconic 
Date:   2018-04-05T00:37:38Z

ARTEMIS-618 Using proper block size on Native One Mega Buffer

This buffer is used on fill




> Fails to initialize journal if hard drive block size is over 512 bytes
> --
>
> Key: ARTEMIS-618
> URL: https://issues.apache.org/jira/browse/ARTEMIS-618
> Project: ActiveMQ Artemis
>  Issue Type: Bug
>Affects Versions: 2.5.0
> Environment: CentOS 7 on hard drive with 4 KB blocks
>Reporter: Rostyslav Smirnov
>Assignee: clebert suconic
>Priority: Major
> Fix For: 2.5.1
>
>
> AIO journal fails to initialize with the following error:
> AMQ224000: Failure in initialisation: java.io.IOException: Cannot initialize 
> file
>   at org.apache.activemq.artemis.jlibaio.LibaioContext.fill(Native 
> Method) [artemis-native-1.3.0.jar:]
>   at 
> org.apache.activemq.artemis.jlibaio.LibaioFile.fill(LibaioFile.java:122) 
> [artemis-native-1.3.0.jar:]
>   at 
> org.apache.activemq.artemis.core.io.aio.AIOSequentialFile.fill(AIOSequentialFile.java:126)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.createFile0(JournalFilesRepository.java:587)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.createFile(JournalFilesRepository.java:537)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.ensureMinFiles(JournalFilesRepository.java:201)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.setUpCurrentFile(JournalImpl.java:2709)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1755)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1135)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1119)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.persistence.impl.journal.AbstractJournalStorageManager.loadMessageJournal(AbstractJournalStorageManager.java:864)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.loadJournals(ActiveMQServerImpl.java:2054)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart2(ActiveMQServerImpl.java:1927)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.LiveOnlyActivation.run(LiveOnlyActivation.java:63)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:427)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl.start(JMSServerManagerImpl.java:394)
>  [artemis-jms-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.integration.FileBroker.start(FileBroker.java:65) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:83) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:110) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:72) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> [rt.jar:1.8.0_65]
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> [rt.jar:1.8.0_65]
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  

[jira] [Commented] (ARTEMIS-618) Fails to initialize journal if hard drive block size is over 512 bytes

2018-04-04 Thread Rostyslav Smirnov (JIRA)

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

Rostyslav Smirnov commented on ARTEMIS-618:
---

This is on bare metal servers. Here is the stack trace:

AMQ224000: Failure in initialisation: java.io.IOException: Cannot initialize 
file
    at org.apache.activemq.artemis.jlibaio.LibaioContext.fill(Native 
Method) [artemis-native-2.5.0.jar:2.5.0]
    at 
org.apache.activemq.artemis.jlibaio.LibaioFile.fill(LibaioFile.java:121) 
[artemis-native-2.5.0.jar:2.5.0]
    at 
org.apache.activemq.artemis.core.io.aio.AIOSequentialFile.fill(AIOSequentialFile.java:154)
 [artemis-journal-2.5.0.jar:2.5.0]
    at 
org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.createFile0(JournalFilesRepository.java:602)
 [artemis-journal-2.5.0.jar:2.5.0]
    at 
org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.createFile(JournalFilesRepository.java:556)
 [artemis-journal-2.5.0.jar:2.5.0]
    at 
org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.ensureMinFiles(JournalFilesRepository.java:204)
 [artemis-journal-2.5.0.jar:2.5.0]
    at 
org.apache.activemq.artemis.core.journal.impl.JournalImpl.setUpCurrentFile(JournalImpl.java:2924)
 [artemis-journal-2.5.0.jar:2.5.0]
    at 
org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1988)
 [artemis-journal-2.5.0.jar:2.5.0]
    at 
org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1384)
 [artemis-journal-2.5.0.jar:2.5.0]
    at 
org.apache.activemq.artemis.core.journal.Journal.load(Journal.java:200) 
[artemis-journal-2.5.0.jar:2.5.0]
    at 
org.apache.activemq.artemis.core.persistence.impl.journal.AbstractJournalStorageManager.loadMessageJournal(AbstractJournalStorageManager.java:849)
 [artemis-server-2.5.0.jar:2.5.0]
    at 
org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.loadJournals(ActiveMQServerImpl.java:2588)
 [artemis-server-2.5.0.jar:2.5.0]
    at 
org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart2(ActiveMQServerImpl.java:2346)
 [artemis-server-2.5.0.jar:2.5.0]
    at 
org.apache.activemq.artemis.core.server.impl.LiveOnlyActivation.run(LiveOnlyActivation.java:71)
 [artemis-server-2.5.0.jar:2.5.0]
    at 
org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.internalStart(ActiveMQServerImpl.java:522)
 [artemis-server-2.5.0.jar:2.5.0]
    at 
org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:461)
 [artemis-server-2.5.0.jar:2.5.0]
    at 
org.apache.activemq.artemis.integration.FileBroker.start(FileBroker.java:111) 
[artemis-cli-2.5.0.jar:2.5.0]
    at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:82) 
[artemis-cli-2.5.0.jar:2.5.0]
    at 
org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:149) 
[artemis-cli-2.5.0.jar:2.5.0]
    at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:97) 
[artemis-cli-2.5.0.jar:2.5.0]
    at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:124) 
[artemis-cli-2.5.0.jar:2.5.0]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
[rt.jar:1.8.0_151]
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
[rt.jar:1.8.0_151]
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 [rt.jar:1.8.0_151]
    at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_151]
    at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:129) 
[artemis-boot.jar:2.5.0]
    at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:49) 
[artemis-boot.jar:2.5.0]

Device information from lsblk command:

{{NAME   MODEL    PHY-SEC LOG-SEC  REV VENDOR}}
{{sda    PERC H730P Mini 4096    4096 4.27 DELL}}
{{├─sda1 4096    4096}}
{{├─sda2 4096    4096}}
{{└─sda3 4096    4096}}
{{  ├─c-root 4096    4096}}
{{  └─c-swap 4096    4096}}

What other information might help?

> Fails to initialize journal if hard drive block size is over 512 bytes
> --
>
> Key: ARTEMIS-618
> URL: https://issues.apache.org/jira/browse/ARTEMIS-618
> Project: ActiveMQ Artemis
>  Issue Type: Bug
>Affects Versions: 1.3.0
> Environment: CentOS 7 on hard drive with 4 KB blocks
>Reporter: Rostyslav Smirnov
>Priority: Major
>
> AIO journal fails to initialize with the following error:
> AMQ224000: Failure in initialisation: java.io.IOException: Cannot initialize 
> file
>   at 

[jira] [Commented] (ARTEMIS-618) Fails to initialize journal if hard drive block size is over 512 bytes

2018-04-04 Thread clebert suconic (JIRA)

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

clebert suconic commented on ARTEMIS-618:
-

The only 512 in use is at the initialization of libaio, where we instantiate a 
file to be used to shutdown the context. (LibaioContext).

 

 

Please provide some new stack traces to see if that matches the issue you have. 
Otherwise we always inspect the alignment of the device before creating a file 
and a buffer. Even so, libaio should fallback to 512, as it's a requirement 
from POSIX. This shoudn't cause an issue.

 

 

so, please provide some more information. It could be the device you're using.

> Fails to initialize journal if hard drive block size is over 512 bytes
> --
>
> Key: ARTEMIS-618
> URL: https://issues.apache.org/jira/browse/ARTEMIS-618
> Project: ActiveMQ Artemis
>  Issue Type: Bug
>Affects Versions: 1.3.0
> Environment: CentOS 7 on hard drive with 4 KB blocks
>Reporter: Rostyslav Smirnov
>Priority: Major
>
> AIO journal fails to initialize with the following error:
> AMQ224000: Failure in initialisation: java.io.IOException: Cannot initialize 
> file
>   at org.apache.activemq.artemis.jlibaio.LibaioContext.fill(Native 
> Method) [artemis-native-1.3.0.jar:]
>   at 
> org.apache.activemq.artemis.jlibaio.LibaioFile.fill(LibaioFile.java:122) 
> [artemis-native-1.3.0.jar:]
>   at 
> org.apache.activemq.artemis.core.io.aio.AIOSequentialFile.fill(AIOSequentialFile.java:126)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.createFile0(JournalFilesRepository.java:587)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.createFile(JournalFilesRepository.java:537)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.ensureMinFiles(JournalFilesRepository.java:201)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.setUpCurrentFile(JournalImpl.java:2709)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1755)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1135)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1119)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.persistence.impl.journal.AbstractJournalStorageManager.loadMessageJournal(AbstractJournalStorageManager.java:864)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.loadJournals(ActiveMQServerImpl.java:2054)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart2(ActiveMQServerImpl.java:1927)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.LiveOnlyActivation.run(LiveOnlyActivation.java:63)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:427)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl.start(JMSServerManagerImpl.java:394)
>  [artemis-jms-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.integration.FileBroker.start(FileBroker.java:65) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:83) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:110) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:72) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> [rt.jar:1.8.0_65]
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> [rt.jar:1.8.0_65]
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  [rt.jar:1.8.0_65]
>   at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_65]
>   at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:122) 
> [artemis-boot.jar:1.3.0]
>   at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:45) 
> [artemis-boot.jar:1.3.0]
> This is due to buffers not being aligned for writing to file open with 
> O_DIRECT flag.



--
This message was sent by Atlassian JIRA

[jira] [Commented] (ARTEMIS-618) Fails to initialize journal if hard drive block size is over 512 bytes

2018-04-04 Thread Justin Bertram (JIRA)

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

Justin Bertram commented on ARTEMIS-618:


I have a VM using AIO on a HDD with a block-size of 4096 and it runs without 
issue.  Are you using a VM or physical hardware directly?

> Fails to initialize journal if hard drive block size is over 512 bytes
> --
>
> Key: ARTEMIS-618
> URL: https://issues.apache.org/jira/browse/ARTEMIS-618
> Project: ActiveMQ Artemis
>  Issue Type: Bug
>Affects Versions: 1.3.0
> Environment: CentOS 7 on hard drive with 4 KB blocks
>Reporter: Rostyslav Smirnov
>Priority: Major
>
> AIO journal fails to initialize with the following error:
> AMQ224000: Failure in initialisation: java.io.IOException: Cannot initialize 
> file
>   at org.apache.activemq.artemis.jlibaio.LibaioContext.fill(Native 
> Method) [artemis-native-1.3.0.jar:]
>   at 
> org.apache.activemq.artemis.jlibaio.LibaioFile.fill(LibaioFile.java:122) 
> [artemis-native-1.3.0.jar:]
>   at 
> org.apache.activemq.artemis.core.io.aio.AIOSequentialFile.fill(AIOSequentialFile.java:126)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.createFile0(JournalFilesRepository.java:587)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.createFile(JournalFilesRepository.java:537)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.ensureMinFiles(JournalFilesRepository.java:201)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.setUpCurrentFile(JournalImpl.java:2709)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1755)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1135)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1119)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.persistence.impl.journal.AbstractJournalStorageManager.loadMessageJournal(AbstractJournalStorageManager.java:864)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.loadJournals(ActiveMQServerImpl.java:2054)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart2(ActiveMQServerImpl.java:1927)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.LiveOnlyActivation.run(LiveOnlyActivation.java:63)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:427)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl.start(JMSServerManagerImpl.java:394)
>  [artemis-jms-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.integration.FileBroker.start(FileBroker.java:65) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:83) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:110) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:72) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> [rt.jar:1.8.0_65]
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> [rt.jar:1.8.0_65]
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  [rt.jar:1.8.0_65]
>   at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_65]
>   at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:122) 
> [artemis-boot.jar:1.3.0]
>   at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:45) 
> [artemis-boot.jar:1.3.0]
> This is due to buffers not being aligned for writing to file open with 
> O_DIRECT flag.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (ARTEMIS-618) Fails to initialize journal if hard drive block size is over 512 bytes

2018-04-04 Thread Rostyslav Smirnov (JIRA)

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

Rostyslav Smirnov commented on ARTEMIS-618:
---

This happens on any machine with 4 KB block hard drives. Simply creating a 
broker and starting it up will result in the above exception. The root cause 
appears to be alignment of the buffers to hard-coded 512 bytes in 
LibaioFile.java and org_apache_activemq_artemis_jlibaio_LibaioContext.c

> Fails to initialize journal if hard drive block size is over 512 bytes
> --
>
> Key: ARTEMIS-618
> URL: https://issues.apache.org/jira/browse/ARTEMIS-618
> Project: ActiveMQ Artemis
>  Issue Type: Bug
>Affects Versions: 1.3.0
> Environment: CentOS 7 on hard drive with 4 KB blocks
>Reporter: Rostyslav Smirnov
>Priority: Major
>
> AIO journal fails to initialize with the following error:
> AMQ224000: Failure in initialisation: java.io.IOException: Cannot initialize 
> file
>   at org.apache.activemq.artemis.jlibaio.LibaioContext.fill(Native 
> Method) [artemis-native-1.3.0.jar:]
>   at 
> org.apache.activemq.artemis.jlibaio.LibaioFile.fill(LibaioFile.java:122) 
> [artemis-native-1.3.0.jar:]
>   at 
> org.apache.activemq.artemis.core.io.aio.AIOSequentialFile.fill(AIOSequentialFile.java:126)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.createFile0(JournalFilesRepository.java:587)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.createFile(JournalFilesRepository.java:537)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.ensureMinFiles(JournalFilesRepository.java:201)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.setUpCurrentFile(JournalImpl.java:2709)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1755)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1135)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1119)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.persistence.impl.journal.AbstractJournalStorageManager.loadMessageJournal(AbstractJournalStorageManager.java:864)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.loadJournals(ActiveMQServerImpl.java:2054)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart2(ActiveMQServerImpl.java:1927)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.LiveOnlyActivation.run(LiveOnlyActivation.java:63)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:427)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl.start(JMSServerManagerImpl.java:394)
>  [artemis-jms-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.integration.FileBroker.start(FileBroker.java:65) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:83) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:110) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:72) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> [rt.jar:1.8.0_65]
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> [rt.jar:1.8.0_65]
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  [rt.jar:1.8.0_65]
>   at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_65]
>   at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:122) 
> [artemis-boot.jar:1.3.0]
>   at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:45) 
> [artemis-boot.jar:1.3.0]
> This is due to buffers not being aligned for writing to file open with 
> O_DIRECT flag.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (ARTEMIS-618) Fails to initialize journal if hard drive block size is over 512 bytes

2018-04-04 Thread clebert suconic (JIRA)

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

clebert suconic commented on ARTEMIS-618:
-

Without providing context and information we can't do much here. this has been 
opened in 2016..  I haven't seen anyone else reporting this as a bug. it could 
be an environmental issue.

 

 

Please provide some context or this will likely to be closed.

> Fails to initialize journal if hard drive block size is over 512 bytes
> --
>
> Key: ARTEMIS-618
> URL: https://issues.apache.org/jira/browse/ARTEMIS-618
> Project: ActiveMQ Artemis
>  Issue Type: Bug
>Affects Versions: 1.3.0
> Environment: CentOS 7 on hard drive with 4 KB blocks
>Reporter: Rostyslav Smirnov
>Priority: Major
>
> AIO journal fails to initialize with the following error:
> AMQ224000: Failure in initialisation: java.io.IOException: Cannot initialize 
> file
>   at org.apache.activemq.artemis.jlibaio.LibaioContext.fill(Native 
> Method) [artemis-native-1.3.0.jar:]
>   at 
> org.apache.activemq.artemis.jlibaio.LibaioFile.fill(LibaioFile.java:122) 
> [artemis-native-1.3.0.jar:]
>   at 
> org.apache.activemq.artemis.core.io.aio.AIOSequentialFile.fill(AIOSequentialFile.java:126)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.createFile0(JournalFilesRepository.java:587)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.createFile(JournalFilesRepository.java:537)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.ensureMinFiles(JournalFilesRepository.java:201)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.setUpCurrentFile(JournalImpl.java:2709)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1755)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1135)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1119)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.persistence.impl.journal.AbstractJournalStorageManager.loadMessageJournal(AbstractJournalStorageManager.java:864)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.loadJournals(ActiveMQServerImpl.java:2054)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart2(ActiveMQServerImpl.java:1927)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.LiveOnlyActivation.run(LiveOnlyActivation.java:63)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:427)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl.start(JMSServerManagerImpl.java:394)
>  [artemis-jms-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.integration.FileBroker.start(FileBroker.java:65) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:83) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:110) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:72) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> [rt.jar:1.8.0_65]
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> [rt.jar:1.8.0_65]
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  [rt.jar:1.8.0_65]
>   at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_65]
>   at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:122) 
> [artemis-boot.jar:1.3.0]
>   at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:45) 
> [artemis-boot.jar:1.3.0]
> This is due to buffers not being aligned for writing to file open with 
> O_DIRECT flag.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (ARTEMIS-618) Fails to initialize journal if hard drive block size is over 512 bytes

2018-04-04 Thread Justin Bertram (JIRA)

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

Justin Bertram commented on ARTEMIS-618:


Can you provide a description of the test you ran to trigger this issue?

> Fails to initialize journal if hard drive block size is over 512 bytes
> --
>
> Key: ARTEMIS-618
> URL: https://issues.apache.org/jira/browse/ARTEMIS-618
> Project: ActiveMQ Artemis
>  Issue Type: Bug
>Affects Versions: 1.3.0
> Environment: CentOS 7 on hard drive with 4 KB blocks
>Reporter: Rostyslav Smirnov
>Priority: Major
>
> AIO journal fails to initialize with the following error:
> AMQ224000: Failure in initialisation: java.io.IOException: Cannot initialize 
> file
>   at org.apache.activemq.artemis.jlibaio.LibaioContext.fill(Native 
> Method) [artemis-native-1.3.0.jar:]
>   at 
> org.apache.activemq.artemis.jlibaio.LibaioFile.fill(LibaioFile.java:122) 
> [artemis-native-1.3.0.jar:]
>   at 
> org.apache.activemq.artemis.core.io.aio.AIOSequentialFile.fill(AIOSequentialFile.java:126)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.createFile0(JournalFilesRepository.java:587)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.createFile(JournalFilesRepository.java:537)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalFilesRepository.ensureMinFiles(JournalFilesRepository.java:201)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.setUpCurrentFile(JournalImpl.java:2709)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1755)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1135)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1119)
>  [artemis-journal-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.persistence.impl.journal.AbstractJournalStorageManager.loadMessageJournal(AbstractJournalStorageManager.java:864)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.loadJournals(ActiveMQServerImpl.java:2054)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart2(ActiveMQServerImpl.java:1927)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.LiveOnlyActivation.run(LiveOnlyActivation.java:63)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:427)
>  [artemis-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl.start(JMSServerManagerImpl.java:394)
>  [artemis-jms-server-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.integration.FileBroker.start(FileBroker.java:65) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:83) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at 
> org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:110) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:72) 
> [artemis-cli-1.3.0.jar:1.3.0]
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> [rt.jar:1.8.0_65]
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> [rt.jar:1.8.0_65]
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  [rt.jar:1.8.0_65]
>   at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_65]
>   at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:122) 
> [artemis-boot.jar:1.3.0]
>   at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:45) 
> [artemis-boot.jar:1.3.0]
> This is due to buffers not being aligned for writing to file open with 
> O_DIRECT flag.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)