Skip to content

Race condition when uploading the same ProGuard mapping with different UUIDs concurrently #118434

Description

@szokeasaurusrex

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

  1. Use sentry-cli proguard upload to upload the same proguard mapping twice, in parallel or in quick succession, but with different UUIDs set.

What is important here for reproducing the issue is that the second upload occurs while the initial upload is still assembling.

Expected Result

After the upload, both uploads (with both UUIDs) should be visible in Sentry.

Actual Result

The race condition can result in the case where only one of the UUIDs shows up in Sentry, the other one is forgotten.

The race condition is a bug in the implementation for #106947. That bug fix does not handle the case where the initial upload is still assembling, only the case where the same mapping is uploaded after the initial mapping already exists.

Product Area

Other

Link

No response

DSN

No response

Version

No response

Metadata

Metadata

Labels

No labels
No labels
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions