Derby
  1. Derby
  2. DERBY-1817

Race condition in network server's thread pool

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 10.2.1.6
    • Fix Version/s: 10.2.1.6
    • Component/s: Network Server
    • Labels:
      None

      Description

      If there is a free DRDAConnThread when a client connects to the network server, the session is put into a queue from which one of the free DRDAConnThreads can pick it up. However, if another client connects after the session was put into the queue, but before the DRDAConnThread has picked it up, one might end up with more sessions in the queue than there are free threads. This can lead to hangs like the ones that we currently see in many of Ole's tests (for instance checkDataSource - http://www.multinet.no/~solberg/public/Apache/TinderBox_Derby/testlog/SunOS-5.10_i86pc-i386/440518-derbyall_diff.txt).

      1. 1817-4-cleanup.stat
        0.2 kB
        Knut Anders Hatlen
      2. 1817-4-cleanup.diff
        4 kB
        Knut Anders Hatlen
      3. 1817-3-sync.diff
        3 kB
        Knut Anders Hatlen
      4. 1817-2.diff
        4 kB
        Knut Anders Hatlen
      5. 1817.stat
        0.1 kB
        Knut Anders Hatlen
      6. 1817.diff
        4 kB
        Knut Anders Hatlen

        Issue Links

          Activity

          Knut Anders Hatlen created issue -
          Bryan Pendleton made changes -
          Field Original Value New Value
          Link This issue is related to DERBY-1326 [ DERBY-1326 ]
          Knut Anders Hatlen made changes -
          Link This issue relates to DERBY-1757 [ DERBY-1757 ]
          Knut Anders Hatlen made changes -
          Assignee Knut Anders Hatlen [ knutanders ]
          Knut Anders Hatlen made changes -
          Attachment 1817.diff [ 12340510 ]
          Attachment 1817.stat [ 12340511 ]
          Knut Anders Hatlen made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Knut Anders Hatlen made changes -
          Attachment 1817-2.diff [ 12340513 ]
          Knut Anders Hatlen made changes -
          Attachment 1817-3-sync.diff [ 12340549 ]
          Knut Anders Hatlen made changes -
          Attachment 1817-4-cleanup.diff [ 12340562 ]
          Attachment 1817-4-cleanup.stat [ 12340563 ]
          Knut Anders Hatlen made changes -
          Fix Version/s 10.2.1.0 [ 11187 ]
          Knut Anders Hatlen made changes -
          Status In Progress [ 3 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Gavin made changes -
          Workflow jira [ 12383092 ] Default workflow, editable Closed status [ 12798136 ]

            People

            • Assignee:
              Knut Anders Hatlen
              Reporter:
              Knut Anders Hatlen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development