cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mike-tutkowski <...@git.apache.org>
Subject [GitHub] cloudstack pull request: CLOUDSTACK-8698: Retrieve a new device ID...
Date Thu, 06 Aug 2015 05:09:51 GMT
Github user mike-tutkowski commented on the pull request:

    https://github.com/apache/cloudstack/pull/660#issuecomment-128243816
  
    I don't think there's a race condition anymore (it was fixed by my initial commit (not
this code)).
    
    The attach code is run in serial for the VM in question. For example, if multiple attaches
come in for the VM, they are serialized and so any race condition is avoided.
    
    The original problem was that the device ID was selected before passing the work to the
job queue. If multiple attach commands came in simultaneously, we could pick the same device
ID multiple times (so the second attach would fail).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message