Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 11 Jul 2007 @ 18:00:33 GMT


     
  <Prev Next>   <<First <Prev
Next>
Last>>
 


Subj:   Re: How to find and kill a hanging thread?
 
From:   zqi

Thanks a lot Glenn.

This question is indeed should be directed to the process developer (myself and another guy) to have the hang handled in the code. The hangs have always been the connection stage, not reaching the querying stage yet.

We are using a timer now in the code of the process for the connection thread to detect the hang, if within a certain time period we don't get a return from TD, we kill the thread and don't let it hang any longer then the timer. Then the process will restart for another try...

Sorry I intended to ask this question to see if anyone had similar experiences before and can provide suggestions on how they handled this.

We confirmed with our DBA that TD does not always either terminate our connection or return an error code so we added this timer to get it terminated should the heart beat stopped.

Thanks again for your suggestions. I appreciate it.


John



     
  <Prev Next>   <<First <Prev
Next>
Last>>
 
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023