SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Missing INI file causes job to hang

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Missing INI file causes job to hang
Author Message
LeeD



Joined: 17 May 2007
Posts: 311
Country: New Zealand

Post Missing INI file causes job to hang Reply with quote
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 View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7952

Post Reply with quote
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 View user's profile Send private message
LeeD



Joined: 17 May 2007
Posts: 311
Country: New Zealand

Post Reply with quote
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 View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7952

Post Reply with quote
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 View user's profile Send private message
LeeD



Joined: 17 May 2007
Posts: 311
Country: New Zealand

Post Reply with quote
I'll try to duplicate the problem in our test env.
Sun Nov 09, 2008 6:00 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
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


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.