Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-3867

JobManager.poll() enters an endless loop when it can't get a connection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • framework
    • None

    Description

      JobManager.poll(), line 157, where it calls storeByCondition, can fail when there is no connection available from the database(due to a connection leak, or just load, or whatever). An exception then gets thrown by storeByCondition(deep inside ofbiz/commons-dbcp/postgres). The catch(Throwable) then logs the error, and the loop tries again. Since pollDone never gets set to true, this loop is very tight, and the log file starts to fill up very fast, each each thread of JobPoller tries the same thing over and over.

      I'm filing this bug mainly to see if anyone else works on it, but if not, it's a reminder for me.

      Attachments

        Activity

          People

            doogie Adam Heath
            doogie Adam Heath
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: