Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-1817

Race condition in network server's thread pool

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.2.1.6
    • 10.2.1.6
    • Network Server
    • 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).

      Attachments

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

        Issue Links

          Activity

            People

              knutanders Knut Anders Hatlen
              knutanders Knut Anders Hatlen
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: