orange-cloudfoundry / cf-ops-automation-broker

On demand dedicated services through COA concourse pipeline engine
4 stars 0 forks source link

Potential race condition between provision and delete #149

Open gberche-orange opened 5 years ago

gberche-orange commented 5 years ago

It might be possible to have race condition between a provision request and a deprovision requests, resulting in dangling service instances in concourse that appear deleted in CF

image

Ways to address this:

See JGit Transport.setTimeout() number of seconds to wait (with no data transfer occurring) before aborting an IO read or write operation with this remote. and TransportHttp.java

gberche-orange commented 5 years ago

Setting JGit (connect + read timeout) timeout to 55s, and retry max delay to 50s. Hoping that in case of gitlab hangs, a single attempt will be made.