From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Peter Urbanec <openembedded-devel@urbanec.net>
Cc: bitbake-devel@lists.openembedded.org
Subject: Re: prserv nohist mode is broken - suggested fix included
Date: Tue, 16 Jun 2015 17:26:40 +0100 [thread overview]
Message-ID: <1434472000.19270.22.camel@linuxfoundation.org> (raw)
In-Reply-To: <557ECADA.8080509@urbanec.net>
On Mon, 2015-06-15 at 22:53 +1000, Peter Urbanec wrote:
> Hi,
>
> I've run into a strange problem where in some cases package version
> numbers would roll back. Eventually I tracked the issue to prserv
> apparently not doing the right thing when running in the default
> nohist mode.
>
> As a simple example, I have this in PRMAIN_nohist:
>
> version pkgarch checksum
> value
> ------------------------------------------------------------------------------
> "beyonwiz-base-1.3-r0" "all" "d87bfea4ce066ec8b6041a8d3188956b"
> "43"
> "beyonwiz-base-1.3-r0" "all" "bba78fccad5b1b5ec9841a4002bd0252"
> "42"
>
> I think the problem is the primary key used for the nohist table. It
> should not include the checksum column.
I don't understand how the above shows a problem? Can you give an
example workload where the version number goes backwards or explain the
problem a bit more?
Even though the primary key is (version,pkgarch,checksum), it should do
an insert or replace and therefore although that key has to be unique,
it should replace an entry with a higher value?
Also, was sstate involved in the state rolling back? I have seen cases
where sstate was restored and versions did roll back...
Cheers,
Richard
prev parent reply other threads:[~2015-06-16 16:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-15 12:53 prserv nohist mode is broken - suggested fix included Peter Urbanec
2015-06-16 16:26 ` Richard Purdie [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1434472000.19270.22.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=bitbake-devel@lists.openembedded.org \
--cc=openembedded-devel@urbanec.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.