Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-1574

Check if a AVAILABLE state entry is in cache before throwing out the IllegalStateException.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.7.0
    • 4.0
    • container system
    • None

    Description

      org.apache.openejb.core.managed.SimpleCache.checkIn(K) {
      ...

      switch (entry.getState()) {
      case AVAILABLE:
      throw new IllegalStateException("The entry " + key + " is not checked-out");
      ..

      }

      In some mutiple thread cases, I noticed that a checked entry was checked in again by other thread. then we will get a invalid illegalStateException.

      Attachments

        Activity

          People

            genspring Lin Quan Jiang
            genspring Lin Quan Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: