[jboss-jira] [JBoss JIRA] Commented: (JBMESSAGING-1139) Problem with DownCache storage at JBM startup
Abel Munoz Alcaraz (JIRA)
jira-events at lists.jboss.org
Wed Nov 7 11:03:45 EST 2007
[ http://jira.jboss.com/jira/browse/JBMESSAGING-1139?page=comments#action_12386503 ]
Abel Munoz Alcaraz commented on JBMESSAGING-1139:
-------------------------------------------------
Hi Tim,
I send persistent messages.
This is the test code:
<code>
private void sendALotDLQ(int counter, String messageBody) throws Exception {
InitialContext srcCtx = null;
ConnectionFactory srcConnectionFactory = null;
Connection srcConnection = null;
Session srcSession = null;
Destination srcDestination = null;
MessageProducer producer = null;
try {
Properties props = new Properties();
props.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory"); //$NON-NLS-1$
props.put(Context.PROVIDER_URL, "localhost:1099"); //$NON-NLS-1$
props.put("java.naming.factory.url.pkgs", //$NON-NLS-1$
"org.jboss.naming:org.jnp.interfaces"); //$NON-NLS-1$
srcCtx = new InitialContext(props);
srcConnectionFactory = (ConnectionFactory) srcCtx.lookup("/ConnectionFactory");
srcDestination = (Destination) srcCtx.lookup("/queue/testQueue");
srcConnection = srcConnectionFactory.createConnection();
srcSession = srcConnection.createSession(false, Session.AUTO_ACKNOWLEDGE);
producer = srcSession.createProducer(srcDestination);
for (int count = 0; count < counter; ++count) {
TextMessage message = srcSession.createTextMessage(messageBody);
producer.send(message);
System.out.println("Sending: " + count);
}
} finally {
if (producer != null) {
try {
producer.close();
} catch (Exception e) {
}
}
if (srcSession != null) {
try {
srcSession.close();
} catch (Exception e) {
}
}
if (srcConnection != null) {
try {
srcConnection.close();
} catch (Exception e) {
}
}
if (srcCtx != null) {
try {
srcCtx.close();
} catch (Exception e) {
}
}
}
}
</code>
> Problem with DownCache storage at JBM startup
> ---------------------------------------------
>
> Key: JBMESSAGING-1139
> URL: http://jira.jboss.com/jira/browse/JBMESSAGING-1139
> Project: JBoss Messaging
> Issue Type: Bug
> Components: Messaging Core
> Affects Versions: 1.4.0.SP1
> Environment: OS: Windows XP SP2 / Linux RedHat
> JDK: Sun 1.5.0 Update 12 / 13
> JBAS: 4.2.1.GA (Non-Clustered)
> JBM: 1.4.0.SP1 (Non-Clustered)
> DBMS: PostgreSQL 8.2.4 / 8.2.5
> Reporter: Abel Munoz Alcaraz
> Assigned To: Tim Fox
> Fix For: 2.0.0 Alpha, Stable branch
>
> Attachments: PagingChannelSupport-BugFIX-JBMESSAGING-1139.patch
>
>
> PRECONDITIONS:
> A non-clustered fresh installation of JBM 1.4.0.SP1 in a JBAS 4.2.1.GA with PostgreSQL 8.2.4.
> WORKFLOW:
> 1.- Install JBAS 4.2.1 with PostgresSQL in a Non-Clustered environment
> 2.- Inslall JBM 1.4.0.SP1
> 3.- Startup JBAS with JBM.
> 4.- Send 200100 messages (1K each one) to '/queue/testQueue'.
> 5.- Stop the AS
> 6.- Startup the AS.
> POSTCONDITIONS:
> There are 200100 message references in jbm_msg_ref with page_ord = null (100 belongs to unflushed downCache).
> When you try to boot AS it says: "Cannot load channel x since the fullSize parameter is too small to
> load all the required references, fullSize needs to be at least 200100 it is currently 200000".
> This is done (it seems) becouse when I shutdown the server the downCache is not flushed.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list