yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #19592
[Bug 1362233] [NEW] instance_create() DB API method implicitly creates additional DB transactions
Public bug reported:
In DB API code we have a notion of 'public' and 'private' methods. The
former are conceptually executed within a *single* DB transaction and
the latter can either create a new transaction or participate in the
existing one. The whole point is to be able to roll back the results of
DB API methods easily and be able to retry method calls on connection
failures. We had a bp (https://blueprints.launchpad.net/nova/+spec/db-
session-cleanup) in which all DB API have been re-factored to maintain
these properties.
instance_create() is one of the methods that currently violates the
rules of 'public' DB API methods and creates a concurrent transaction
implicitly.
** Affects: nova
Importance: Undecided
Assignee: Roman Podoliaka (rpodolyaka)
Status: New
** Tags: db
** Changed in: nova
Assignee: (unassigned) => Roman Podoliaka (rpodolyaka)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1362233
Title:
instance_create() DB API method implicitly creates additional DB
transactions
Status in OpenStack Compute (Nova):
New
Bug description:
In DB API code we have a notion of 'public' and 'private' methods. The
former are conceptually executed within a *single* DB transaction and
the latter can either create a new transaction or participate in the
existing one. The whole point is to be able to roll back the results
of DB API methods easily and be able to retry method calls on
connection failures. We had a bp
(https://blueprints.launchpad.net/nova/+spec/db-session-cleanup) in
which all DB API have been re-factored to maintain these properties.
instance_create() is one of the methods that currently violates the
rules of 'public' DB API methods and creates a concurrent transaction
implicitly.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1362233/+subscriptions
Follow ups
References