[Casa-framework] Table lock under python
Kumar Golap
kgolap at nrao.edu
Wed Sep 27 21:02:46 EDT 2006
There is something still amiss.. I am explicitly using
TableLock::AutoNoReadLocking when creating the ms and in the
desctuctor of the object (simulator here) I use both
relinquishAutoLocks and unlock before deleting the ms object...still
it holds on the lock...until i exit python
Anyways its not immediately important but its going to give grief if
we intend to fork the simulation (or anything else) out and get back
python shell to do other stuff.
Cheers,
Kumar
On 9/27/06, Ger.VanDiepen at csiro.au <Ger.VanDiepen at csiro.au> wrote:
> Wes,
>
> In Glish every 30 seconds or so a relinquishAutoLocks was done to unlock
> all open tables. That is probably hard to do in python.
> I think the user has to do locking and unlocking more explicitly.
> Note that it is also possible to open readonly files without locking.
> The only problem with that is that if another process writes into it, it
> does not get synchronized automatically.
>
> The fact that the other ms.open waits until the first one is finished
> means that ms.open opens the ms for writing. Is that really needed?
>
> Cheers,
> Ger
>
> -----Original Message-----
> From: casa-framework-bounces at donar.cv.nrao.edu
> [mailto:casa-framework-bounces at donar.cv.nrao.edu] On Behalf Of Wes Young
> Sent: Wednesday, 27 September 2006 11:34 PM
> To: Kumar Golap
> Cc: casa-framework at nrao.edu; Ger van Diepen
> Subject: Re: [Casa-framework] Table lock under python
>
> Hi Kumar,
>
> OK, two windows,
>
> python 1
>
> ms.open(msname, lock=true)
>
> works fine....
>
> python 2
>
> ms.open(msname)
>
> hangs....till python 1 exits.
>
> OK, I'm going to see what I can find out.
>
> wes
> wyoung at aoc.nrao.edu
>
>
> On 26 Sep 2006, at 23:13, Kumar Golap wrote:
>
> > I've noticed an interesting locking issue... Maybe because now that
> > the python and the table or ms tool or any other too have the same
> > process id ...the lock on tables seems to hold even after quit the
> > tool. So if i access the same table via the glish table tool say it
> > waits on the lock till I quit python.
> >
> > Kumar
> > _______________________________________________
> > Casa-framework mailing list
> > Casa-framework at donar.cv.nrao.edu
> > http://listmgr.cv.nrao.edu/mailman/listinfo/casa-framework
>
> _______________________________________________
> Casa-framework mailing list
> Casa-framework at donar.cv.nrao.edu
> http://listmgr.cv.nrao.edu/mailman/listinfo/casa-framework
>
More information about the Casa-framework
mailing list