ckrintz / appscale

Automatically exported from code.google.com/p/appscale
0 stars 0 forks source link

Upload app causes old version of the app to show up #204

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Upload app with name X
2. Remove app with name X
3. Upload app with name X but different code.

What is the expected output? What do you see instead?
Expecting to see app with new code, but seeing app with old code.

Original issue reported on code.google.com by shattere...@gmail.com on 29 Apr 2010 at 11:22

GoogleCodeExporter commented 9 years ago
A race condition in upload-app was present. Essentially it was this:

1) tell shadow to run app X
2) upload tar for app X

This works fine if app X doesn't exist (as the shadow and other nodes will 
simply
wait for the app to show up), but if app X does exist, there's a high 
probability of
the nodes grabbing the old version of the code before step (2) occurs. Fixed to 
be,
naturally:

1) upload tar for app X
2) tell shadow to run app X

Original comment by shattere...@gmail.com on 29 Apr 2010 at 11:27