SIGBUS ERROR IN LOOKUPS

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
chandra
Participant
Posts: 88
Joined: Sun Apr 02, 2006 6:50 pm
Location: India

SIGBUS ERROR IN LOOKUPS

Post by chandra »

HI Frnds -
I will explain you job -

1- lkp file -A
this lkp file A is used in several files and there is another graph that updates this lookup file ! Occasionally the writting lkp and read will occuer simultanesly in that case the jobs which are reading the LKP file is getting failed- and the error is SIGBUS (unix-error)
----
My Solutions :-
Create 2 files for LKP new and dat , over write new with dat.
still it fails
Ideas will be appreciated !
chandra ,
Hyd
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Explain the entire job. What you have supplied is insufficient for cogent diagnosis. SIGBUS is one of the standard UNIX signals; type man signal at a UNIX prompt to learn a little more about this particular signal.

In general, in parallel jobs, simultaneous write and read to the same object is not possible.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chandra
Participant
Posts: 88
Joined: Sun Apr 02, 2006 6:50 pm
Location: India

Post by chandra »

situation where one graph is rebuilding a lookup file, while another graph is reading from it. The graph that is reading from the lookup gets "killed" by the graph that replaces the lookup.

thanks in Adv
chandra ,
Hyd
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Standard medical advice: if it hurts, don't do it.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chandra
Participant
Posts: 88
Joined: Sun Apr 02, 2006 6:50 pm
Location: India

Post by chandra »

ray.wurlod wrote:Standard medical advice: if it hurts, don't do it. ...
what else you need ! I have explained the problem ?
Please let me , I will try my best..
we approch the forum hoping of some solutions .
chandra ,
Hyd
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

ray.wurlod wrote: In general, in parallel jobs, simultaneous write and read to the same object is not possible.
I think Ray has given you the answer. Avoid that and you will be ok.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

As I stated earlier, write and read of the same object in the same job is not supported in parallel jobs, in general. It is a blocking operation, which interferes with pipeline parallelism.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chandra
Participant
Posts: 88
Joined: Sun Apr 02, 2006 6:50 pm
Location: India

Post by chandra »

what ever the ray told ! that i know ..
I am asking if you get same problem how do you deal.









Problem to problem is not solution !
chandra ,
Hyd
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I never get the same problem, because I don't try to force DataStage to do anything illegal.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Ultramundane
Participant
Posts: 407
Joined: Mon Jun 27, 2005 8:54 am
Location: Walker, Michigan
Contact:

Post by Ultramundane »

If datastage opens the lookup file when it is using it and doesn't close it until the job is complete you should be able to delete the file and the job using it should be fine until it closes the file. This would let you create the new file and datastage would happily use the filename which doesn't exist anymore until that program is done running. However, if you delete the file and datastage is opening and closing it you will have a problem.
chandra
Participant
Posts: 88
Joined: Sun Apr 02, 2006 6:50 pm
Location: India

Post by chandra »

Thanks for the reply!My question is
1- lkp A is using job1 as lookup
2- Job 2 writting the same file - lkp A.
--
scenario 1:-

Is there any way we can find the wheather JOb 1 is reading lkp-A.so that we can stop writting until it reading is finsihed and we can trigger the job2 to write the same file .
chandra ,
Hyd
Ultramundane
Participant
Posts: 407
Joined: Mon Jun 27, 2005 8:54 am
Location: Walker, Michigan
Contact:

Post by Ultramundane »

The unix command fuser can be used to determine whether a file is in use or not.
chandra
Participant
Posts: 88
Joined: Sun Apr 02, 2006 6:50 pm
Location: India

Post by chandra »

Thanks -

this what Im looking for !-
now we can apply a logic !

if file is in use
then
abort job2
else
run job2.
Ultramundane wrote:The unix command fuser can be used to determine whether a file is in use or not.
chandra ,
Hyd
Post Reply