marathon icon indicating copy to clipboard operation
marathon copied to clipboard

In Marathon 0.8.2 POST /v2/apps returns 201 when the app doesn't necessarily exist

Open ikinsey opened this issue 11 years ago • 2 comments

In Marathon 0.8.2 POST /v2/apps returns the following and seems to create and start the app correctly after a very short delay:

&{Code:201 Apps:[] App: Versions:[] Tasks:[] DeploymentId:a2deb836-cf20-4217-a527-37a86c4ed208}

However, if a GET /v2/apps/ is sent immediately after receiving that 201, sometimes the GET will return 404: {"message":"App '/666exp1env--666exp1--666exp1--93757a' does not exist"} implying that resources aren't always ready to be accessed when a 201 is served.

Somewhat related: https://github.com/mesosphere/marathon/issues/2069

ikinsey avatar Aug 23 '15 08:08 ikinsey

Thanks for reporting this! In fact, we're aware of that problem, and there have been recent changes to the master that should prevent this. This will not be solved for 0.8.2, but it would be nice if you could check out the 0.11.x series as soon as they're out.

meichstedt avatar Aug 28 '15 10:08 meichstedt

Won´t fix in this version.

mwasn avatar Sep 07 '15 14:09 mwasn