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

Shutting down db, information that the thread received an interrupt will not be restored to thread's interrupt flag


    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s:
    • Fix Version/s:
    • Component/s: None
    • Labels:


      When a thread receives an interrupt Derby detects this, it will reset the thread's flag and save the fact in its lcc (LanguageConnectionContext), if available. If not (e.g. during boot) it will save the information in a thread local variable. For performance reasons, we use the lcc when available. However, when shutting down the database, the lcc goers away, and when the JDBC call returns to the application, the thread's interrupt flag will not be reinstated as per our specification. This is because the lcc dies before we do the restoring (under shutdown). So, the information that the thread was interrupted is lost with the lcc going away. A possible solution is to move the flag over to the thread local variable when the lcc is popped, so that the restore code will find it.


        1. derby-5152.diff
          4 kB
          Dag H. Wanvik
        2. derby-5152.stat
          0.3 kB
          Dag H. Wanvik
        3. derby-5152-b.diff
          4 kB
          Dag H. Wanvik
        4. derby-5152-b.stat
          0.3 kB
          Dag H. Wanvik

          Issue Links



              • Assignee:
                dagw Dag H. Wanvik
                dagw Dag H. Wanvik
              • Votes:
                0 Vote for this issue
                0 Start watching this issue


                • Created: