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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.7.0
    • Fix Version/s: 4.0
    • Component/s: container system
    • Labels:
      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

            • Assignee:
              genspring Shawn Jiang
              Reporter:
              genspring Shawn Jiang
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: