Skip to content

WebFlux temporary file not always deleted with parallel uploads. #31217

@davefarrelly

Description

@davefarrelly

I am working on a project using spring-webflux:6.0.8 and I have noticed an issue where temporary files created during a FilePart upload are not always getting deleted when uploads are done in parallel.

However, if I do slow sequential uploads, the temporary files are getting deleted consistently as expected.

I have a reproducer with a single endpoint that receives a FilePart. Sending ~30 requests in parallel with with 28MB file seems to reproduce the issue consistently.

spring-tempfile-reproducer.zip

Metadata

Metadata

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: backportedAn issue that has been backported to maintenance branchesstatus: feedback-providedFeedback has been providedtype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions