Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 928400

Summary: pageSize >= maxSize causing inappropriate server state
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Dmytro Pogrebniuk <dpogrebn>
Component: HornetQAssignee: Clebert Suconic <clebert.suconic>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: clebert.suconic, csuconic, lcosti, mnovak, myarboro, nziakova, pslavice, rdickens
Target Milestone: ER7   
Target Release: EAP 6.1.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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 20:28:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dmytro Pogrebniuk 2013-03-27 15:00:32 UTC
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 09:55:13 UTC
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)