 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
LeeD
Joined: 17 May 2007 Posts: 311 Country: New Zealand |
|
Missing INI file causes job to hang |
|
Hi
We make extensive use of the Inifilegetkey JAL statement and have discovered what seems to be a bug with it.
If I have a job that references an ini file but that ini file does not exist it does not fail gracefully, in fact it hangs and blocks the queue it is in.
|
|
Tue Aug 26, 2008 9:15 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7952
|
|
|
|
I will submit this issue for further investigation. As a workaround, please replace calls to built-in Inifilegetkey function with calls to user-defined statement. In the user-defined statement make a check for Ini file existence and if it exists, return the value from Inifilegetkey, otherwise return the default value.
|
|
Wed Aug 27, 2008 12:13 am |
|
 |
LeeD
Joined: 17 May 2007 Posts: 311 Country: New Zealand |
|
|
|
Further information; the same statement, inifilegetkey hangs when the section and key you are looking for does not exist which caused us a production incident that became far bigger than it should have been.
Have you got anywhere with the original problem please? It means that a simple typo can stop processing until someone notices a queue is blocked.
|
|
Mon Oct 27, 2008 4:58 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7952
|
|
|
|
So far we are unable to reproduce it. In case the specified INI file, key or value are not available, the statement returns default value for the data type which is in most cases an empty string. The result matches the documented behavior.
Can you provide a job trace file indicating that the job get stuck while executing IniFileGetKey?
|
|
Mon Oct 27, 2008 6:40 pm |
|
 |
LeeD
Joined: 17 May 2007 Posts: 311 Country: New Zealand |
|
|
|
I'll try to duplicate the problem in our test env.
|
|
Sun Nov 09, 2008 6:00 pm |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|