* prserv nohist mode is broken - suggested fix included
@ 2015-06-15 12:53 Peter Urbanec
2015-06-16 16:26 ` Richard Purdie
0 siblings, 1 reply; 2+ messages in thread
From: Peter Urbanec @ 2015-06-15 12:53 UTC (permalink / raw)
To: bitbake-devel
[-- Attachment #1: Type: text/html, Size: 2056 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: prserv nohist mode is broken - suggested fix included
2015-06-15 12:53 prserv nohist mode is broken - suggested fix included Peter Urbanec
@ 2015-06-16 16:26 ` Richard Purdie
0 siblings, 0 replies; 2+ messages in thread
From: Richard Purdie @ 2015-06-16 16:26 UTC (permalink / raw)
To: Peter Urbanec; +Cc: bitbake-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-06-16 16:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-15 12:53 prserv nohist mode is broken - suggested fix included Peter Urbanec
2015-06-16 16:26 ` Richard Purdie
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.