RE: [HACKERS] NOTICE: LockRelease: locktable lookup failed, no lock

From: "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp>
To: "Keith Parks" <emkxp01(at)mtcc(dot)demon(dot)co(dot)uk>, <pgman(at)candle(dot)pha(dot)pa(dot)us>, <wieck(at)debis(dot)com>
Cc: <tgl(at)sss(dot)pgh(dot)pa(dot)us>, <hackers(at)postgreSQL(dot)org>
Subject: RE: [HACKERS] NOTICE: LockRelease: locktable lookup failed, no lock
Date: 1999-12-17 23:30:54
Message-ID: NDBBIJLOILGIKBGDINDFEEKFCBAA.Inoue@tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> -----Original Message-----
> From: owner-pgsql-hackers(at)postgreSQL(dot)org
> [mailto:owner-pgsql-hackers(at)postgreSQL(dot)org]On Behalf Of Keith Parks
>
> wieck(at)debis(dot)com (Jan Wieck)
> >Bruce Momjian wrote:
> >
> >> > Keith Parks <emkxp01(at)mtcc(dot)demon(dot)co(dot)uk> writes:
> >> > > Since the new parallel regression tests I've always had a few
> >> > > lock NOTICE messages like the following.
> >> >
> >> > Interesting --- I had not run the parallel test for a while,
> >> > but I tried it just now and got half a dozen of these:
> >> > NOTICE: LockRelease: locktable lookup failed, no lock
> >> > (Otherwise the tests all passed.)
> >> >
> >> > Something's been broken fairly recently. Does anyone have an
> >> > idea what changed?
> >>
> >> Good question. I can't imagine what it would be. We didn't do much,
> >> and parallel regression is not that old.
> >
> >
> > Also, I used it after another dozen times without. Now I see
> > them too. So I assume it was a recent change that introduced
> > the problem.
>
> I'm not sure it's that recent, I think I've had 1 or 2 such errors
> ever since I've been running the "runcheck".
>

It seems that conflicts of the initialization of some backends cause
above NOTICE messages.
Those backends would use the same XIDTAGs for the same relations
in case of LockAcquire()/LockRelease() because xids of those backends
are'nt set before starting the first command. When one of the backend
call LockReleaseAll(),it would release all together.

If we set pid member of XIDTAG to the pid of each backend
,we are able to distinguish XIDTAGs.
But there may be some reasons that the member is used only for
userlock.

Regards.

Hiroshi Inoue
Inoue(at)tpf(dot)co(dot)jp

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 1999-12-17 23:34:25 Anyone for prettyprinted EXPLAIN VERBOSE?
Previous Message Jan Wieck 1999-12-17 23:24:13 Re: [HACKERS] LONG varsize - how to go on