Thanks a lot Martin for looking at this.

1- In the shell script, I run:

globus-credential-delegate -h $scheduler $eprName

2- The command I call in each thread is:
     string sysCommand = "globusrun-ws -submit -batch -F "+scheduler+" -Ft 
"+factory+" -S -Jf ";
     sysCommand.append(eprName);
     sysCommand.append(" -o JobIdFile");
     sysCommand.append(" -f  ");
     sysCommand.append(jobDescFile);
     //submit the request
     system(command.c_str());

3- The error is:

$ globusrun-ws -status -j
JobId: 94110cc2-9376-11df-9044-0019d1a
Current job state: Failed
globusrun-ws: Job failed: Staging error for RSL element fileStageIn.
Connection creation error [Caused by: java.io.EOFException]
Connection creation error [Caused by: java.io.EOFException]

I do not have access to the GT4 log container on the PBS head node :(. 

~Belaid.

> Date: Wed, 21 Jul 2010 10:40:26 -0500
> From: [email protected]
> CC: [email protected]
> Subject: Re: [gt-user] Threads and globusrun-ws/globus-credential-delegate.
> 
> Can you paste the exact commands you use in the system calls, and the
> error you get in the concurrent scenario?
> 
> Martin
> 
> Belaid MOA wrote:
> > That's right Martin. For each thread, I just call
> > system("globus-credential-delegate ... ") and use the epr in
> > system("globusrun-ws ...."). That's where I do not get any error. 
> > If, however,
> > I call system("globusrun-ws ...") on each thread using a single epr
> > (created in the shell script before running the C program), then I
> > started getting RSL stagein element error.
> > 
> > Thanks a lot Martin for looking at this.
> > 
> > ~Belaid.
> >  
> > 
> >> Date: Wed, 21 Jul 2010 09:55:16 -0500
> >> From: [email protected]
> >> CC: [email protected]
> >> Subject: Re: [gt-user] Threads and
> > globusrun-ws/globus-credential-delegate.
> >>
> >> Hi,
> >>
> >> I'm not sure I get this question right, and I'm also not a C guy anymore.
> >>
> >> Does it work if you run globus-credential-delegate and globusrun-ws
> > sequentially
> >> as command-line tools?
> >>
> >> I.e.
> >> 1. Call globus-credential-delegate and store the EPR somewhere.
> >> 2. Then use it for several globusrun-ws job submissions.
> >>
> >> Martin
> >>
> >> Belaid MOA wrote:
> >> > Hi everyone,
> >> > Just a quick question, I am using pthreads in C to run globusrun-ws
> >> > and globus-credential-delegate concurrently on a GT4 PBS cluster.
> >> > I noticed that using a single system call to globus-credential-delegate
> >> > when submitting a set of jobs produces RSL stagein element error (The
> >> > jobs are using
> >> > the same epr produced by the single call to globus-credential-delegate).
> >> > This does not happen when globus-credential-delegate is called for every
> >> > job (each job has its own unique epr).
> >> >
> >> > Is that mean that globusrun-ws/globus-credential-delegate are not
> >> > thread-safe?
> >> >
> >> > Thanks a lot in advance.
> >> > ~Belaid.
> >> >
> >> > ------------------------------------------------------------------------
> >> > Turn down-time into play-time with Messenger games Play Now!
> >> > <http://go.microsoft.com/?linkid=9734381>
> >>
> > 
> > ------------------------------------------------------------------------
> > Look 'em in the eye: FREE Messenger video chat Chat Now!
> > <http://go.microsoft.com/?linkid=9734382>
> 
                                          
_________________________________________________________________
Turn down-time into play-time with Messenger games
http://go.microsoft.com/?linkid=9734385

Reply via email to