From: Ian Campbell <ian.campbell@citrix.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: xen-devel@lists.xen.org
Subject: Re: [PATCH OSSTEST v2] cs-adjust-flight: Add jobs-rename command which applies a perlop to job names
Date: Tue, 19 Jan 2016 14:58:30 +0000 [thread overview]
Message-ID: <1453215510.29930.77.camel@citrix.com> (raw)
In-Reply-To: <22174.19392.695718.990474@mariner.uk.xensource.com>
On Tue, 2016-01-19 at 14:44 +0000, Ian Jackson wrote:
> Ian Campbell writes ("Re: [PATCH OSSTEST v2] cs-adjust-flight: Add jobs-
> rename command which applies a perlop to job names"):
> > On Tue, 2016-01-19 at 14:25 +0000, Ian Jackson wrote:
> > > And if that happens, there might be entries in the steps table which
> > > ought also to be renamed. If you don't rename them you will trip the
> > > foreign key constraint.
> >
> > But fail immediately in this invocation of cs-adjust-flight with a
> > (hopefully) comprehensible SQL error spew?
>
> Yes.
>
> > Or is that the distinction between INNTIALLY IMMEDIATE vs DEFERRED you
> > were
> > trying to get at?
>
> Indeed. With the current (and likely future) configuration of the
> constraint, the UPDATE statement will fail and the transaction will
> not commit. So none of the updates in the invocation will take
> effect.
>
> > Having stuffed the flight in this way would it have effects elsewhere
> > (i.e.
> > on production flights) or do you just get to keep both pieces of this
> > particular flight?
>
> If the constraints were changed, you might manage to use
> cs-adjust-flight to produce strangeness in the flight you were
> adjusting. If that flight were later exposed to archaeologists it
> might contain lies. TBH this seems far-fetched.
Indeed, especially since:
* Archaeologists typically don't look at play flights (or if you ask them
to you should expect breakage).
* If a real flight somehow got into this state (via running:N or being
constructing) then I would expect it would trip over the constraint
before it could complete, and therefore never get to its intended
blessing in the db, and would again be ignored by archaeologists in
general I think?
* cs-adjust-flight already stops one from messing with a completed flight.
Ian.
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
prev parent reply other threads:[~2016-01-19 14:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-19 12:47 [PATCH OSSTEST v2] cs-adjust-flight: Add jobs-rename command which applies a perlop to job names Ian Campbell
2016-01-19 14:25 ` Ian Jackson
2016-01-19 14:36 ` Ian Campbell
[not found] ` <22174.19392.695718.990474@mariner.uk.xensource.com>
2016-01-19 14:58 ` Ian Campbell [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=1453215510.29930.77.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=xen-devel@lists.xen.org \
/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.