Skip to content

Improve thread safety of AztecAttributes - #1100

Merged
zwarm merged 1 commit into
trunkfrom
issue/705-make-aztect-attributes-thread-safe
Feb 21, 2025
Merged

Improve thread safety of AztecAttributes#1100
zwarm merged 1 commit into
trunkfrom
issue/705-make-aztect-attributes-thread-safe

Conversation

@khaykov

@khaykovkhaykov commented Feb 20, 2025

Copy link
Copy Markdown
Contributor

Fixes#705

We sometimes get issue with in AztecAttributes, that hint at some sort of data corruption, and I was able to syntetically cause crashes with multi threaded overloading.

In this PR we ensure that only one thread can operate on the attributes at any given time, thereby preventing race conditions and ensuring data consistency during concurrent operations.

There is not much to test, just make sure the demo app and client side implementation are working.

Review

@[USER_NAME]

Make sure strings will be translated:

  • If there are new strings that have to be translated, I have added them to the client's strings.xml as a part of the integration PR.

@khaykovkhaykov assigned danilo04 and zwarm and unassigned danilo04 and zwarmFeb 20, 2025
@zwarmzwarm self-assigned this Feb 21, 2025

@zwarmzwarm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@khaykov - I tested the demo app. Used all type of formatting and copy/pasted from outside the app to in. All is working as normal

@zwarm
zwarm merged commit 2f305d6 into trunkFeb 21, 2025
@zwarm
zwarm deleted the issue/705-make-aztect-attributes-thread-safe branch February 21, 2025 13:33
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OOB Crash in AztecAttributes setValue/removeAttribute

3 participants

@khaykov@zwarm@danilo04