Fix race condition while creating dest dir for docker images 32/114932/1
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>
Mon, 16 Nov 2020 14:39:08 +0000 (15:39 +0100)
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>
Mon, 16 Nov 2020 14:39:08 +0000 (15:39 +0100)
commit43276843ffb0e3d78178b92af5e2840e9642fd50
tree9bdae010146bffe4d91ee36845316f9315ee0567
parentf731e735cfad1b558f42e09a990c1efcf8dc05b5
Fix race condition while creating dest dir for docker images

Docker_downloader module uses threads to concurrently save
docker images to dest dir which creation is not guarded with any
kind of thread lock object thus it could fail on os.makedirs as other
thread could have already created that dir. Hence "exist_ok=True"
opt is added to os.makedirs call so that it does not fail in such
circumstances.

Change-Id: I6e2d2c9864b71d038e7b2ed3018cdd3c01916956
Issue-ID: OOM-2631
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
build/download/docker_downloader.py