[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Query termination



Arie Shoshani wrote:
>  
> 1) There are two forms of termination of a query:
>   a) "abort" -- which means interrupt query and terminate it
>      gracefully.  In this case, the QE can clean its cache immediately,
>      and notifies the QM.  QM moves the query to "done list", and
>      responds to all EI "request" and "retrieve"

I guess the last sentence is incomplete? QM responds with and exception
saying that the query has been abort()ed, right?

>   b) "done" -- which means I am done with the query, but there may
>      still be EIs working.  In this case, the QE can clean its cache,
>      but does not notify the QM.  The QM continues to process the query
>      until all files are delivered.

done (pun intended). I added the done() function to the smEstimator 
interface in qe.idl. People need to copy qeC.cc and qe.hh, unless they 
have access to an Orbix IDL compiler.
The semantics for done() are the same as for abort(). The only 
difference (currently) in functionality is that done() doesn't notify
the QM (while abort() forwards the call to the QM).

 - Henrik 
___________________________________________________________
Henrik Nordberg <HNordberg@lbl.gov> http://nordberg.lbl.gov
Scientific Data Management Research Group
Lawrence Berkeley Laboratory