optimistic concurrency support

Asked by Keith Tobin

Where the mysql database uses optimistic concurrency, will Openstack deal with catching the exception and retrying the transaction ?

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Tiantian Gao
Solved:
Last query:
Last reply:
Revision history for this message
Keith Tobin (keith-tobin) said :
#1

Found the answer, deadlock situations are supported in nova code.
Will check Openstack components and post here, if anyone can save me time looking through code, that would be a big help.

Revision history for this message
Best Tiantian Gao (gtt116) said :
#2

Hi Keith,

The main code to process sql connection failed sits here:
https://github.com/openstack/nova/blob/master/nova/openstack/common/db/sqlalchemy/session.py#L674

these code will be moved into 'oslo.db' which is a part of project 'oslo'
in the future.

Hoping that help you.
cheers,
gtt

2013/9/24 Keith Tobin <email address hidden>

> Question #236223 on OpenStack Compute (nova) changed:
> https://answers.launchpad.net/nova/+question/236223
>
> Keith Tobin gave more information on the question:
> Found the answer, deadlock situations are supported in nova code.
> Will check Openstack components and post here, if anyone can save me time
> looking through code, that would be a big help.
>
> --
> You received this question notification because you are an answer
> contact for OpenStack Compute (nova).
>

--
Best regards,
gtt

Revision history for this message
Keith Tobin (keith-tobin) said :
#3

Thanks ever so much, this saved me lots of looking.

Revision history for this message
Keith Tobin (keith-tobin) said :
#4

Thanks Tiantian Gao, that solved my question.