Hi,

I need to debug an issue in tdm_arkcmp that may occur very early in its 
processing.

I remember we had a technique called "hook" which caused any SeaQuest process 
to wait until a particular file exists. The way it works was, you'd set 
HOOK_ENABLE=1 in your $TRAF_HOME/etc/ms.env file and restart your instance.

Then, every process instrumented with a msg_debug_hook call in it would block 
until the file named in the call existed. So, for example, the main for 
tdm_arkcmp.cpp (in core/sql/bin/arkcmp.cpp) has msg_debug_hook("arkcmp", 
"ark.hook"); so tdm_arkcmp will block until the file ark.hook exists.

I remember that in earlier versions of the code a collection of *.hook files 
were present in the source distribution. These seem to be gone now; I cannot 
find them.

I tried this yesterday, and sqstart doesn't complete. The probable reason is 
one or more of the processes that fire up at sqstart time has a msg_debug_hook 
call.

Now the question:

Does anyone know off the top of their head the complete set of *.hook calls? 
Also, what directory does msg_debug_hook look into to find these files?

I'll update the Trafodion wiki with this information once I have the complete 
story.

Thanks,

Dave

Reply via email to