rr- / szurubooru

Image board engine, Danbooru-style.
GNU General Public License v3.0
664 stars 175 forks source link

Concurrent post upload operations sometimes produce invalid thumbnails #617

Open rofleksey opened 7 months ago

rofleksey commented 7 months ago

I was uploading 10k+ posts with 8x concurrency using a script, when suddenly I got invalid thumbnails for some of them. The issue became apparent when the script started uploading big posts (>30MB GIF images). The thumbnails for SOME of these posts were of some other previously uploaded posts (which were ~1hour earlier). When I clicked on them, the content was correct (only the thumbnail was wrong). I did not specify custom thumbnail in a POST /posts request and was not using temp upload feature.

Is it an expected behavior with highly concurrent requests?