Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 928400 - pageSize >= maxSize causing inappropriate server state
pageSize >= maxSize causing inappropriate server state
Status: CLOSED CURRENTRELEASE
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: HornetQ (Show other bugs)
6.1.0
Unspecified Unspecified
unspecified Severity high
: ER7
: EAP 6.1.1
Assigned To: Clebert Suconic
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-27 11:00 EDT by Dmytro Pogrebniuk
Modified: 2014-05-26 21:29 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
There was an issue in previous versions of JBoss EAP 6 where an incorrect configuration was allowed. Using a message address configuration where `page-size-bytes` is set larger or equal to `max-size-bytes` resulted in an inappropriate server state, and may have caused a starvation on paging because the server would not be able to depage messages. This issue was fixed by not allowing the server to start with the above incorrect configuration, and will now throw an exception when attempted.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-09-16 16:28:21 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Dmytro Pogrebniuk 2013-03-27 11:00:32 EDT
Description of problem:
pageSize >= maxSize causes next events:

1. Failure in initialisation: java.lang.IllegalStateException to be thrown
2. HQ121005: JMS Server Manager Caching command for createQueue for Queue1 since the JMS Server is not active yet
3. HQ121005: JMS Server Manager Caching command for createConnectionFactory for InVmConnectionFactory since the JMS Server is not active yet
4. HQ121005: JMS Server Manager Caching command for createConnectionFactory for RemoteConnectionFactory since the JMS Server is not active yet
5. javax.naming.NameNotFoundException: jms/RemoteConnectionFactory -- service jboss.naming.context.java.jboss.exported.jms.RemoteConnectionFactory

Version-Release number of selected component (if applicable):
2.3.0.CR1

Expected results:
Warning ptinted to log

Additional info:
https://community.jboss.org/thread/159908
Comment 4 Miroslav Novak 2013-08-22 05:55:13 EDT
BZ is in incorrect state. 

Based on info above this is fixed in EAP 6.1.1.ER7. Server won't allow to start HQ when page >= maxSize with error:
11:47:27,971 ERROR [org.hornetq.core.server] (MSC service thread 1-5) HQ224000: Failure in initialisation: java.lang.IllegalStateException: pageSize for address jms.queue.InQueue >= maxSize. Normally pageSize should be significantly smaller than maxSize, ms: 10485760 ps 10485760
        at org.hornetq.core.paging.impl.PagingStoreImpl.<init>(PagingStoreImpl.java:147) [hornetq-server-2.3.5.Final-redhat-2.jar:2.3.5.Final-redhat-2]
...

Setting as verified in EAP 6.1.1.ER7 (HQ 2.2.5.Final)

Note You need to log in before you can comment on or make changes to this bug.