Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-6568

PersistenceManager should retry all DB operations for a reasonable amount of tries

    XMLWordPrintable

Details

    • Task
    • Resolution: Won't Do
    • Major
    • None
    • JBossAS-4.2.3.GA
    • JMS (JBossMQ)
    • None

    Description

      org.jboss.mq.pm.jdbc2.PersistenceManager does contain a simple logic in method remove(MessageReference, Tx) to retry a DB operation and therefore bypass sporadic temporary DB failures.

      This should be extended to the other DB-operations of PersistenceManager.

      Tests using a JDBC-driver throwing randomly arbitrary SQLExceptions showed this resolving most of them and keeping the system in a consistent state.
      Tests without a patched PersistenceManager ran quite fast into a dead end where JMS messages were not being processed anymore until restart of the AS - also see http://www.jboss.org/index.html?module=bb&op=viewtopic&t=151023 for this symptom.

      Proposed patch will get attached.

      Attachments

        Activity

          People

            adrian.brock Adrian Brock (Inactive)
            r.neubauer@seeburger.de Rico Neubauer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: