Skip to content

Route resetIdentities event though event handler to avoid potential data race#83

Merged
addb merged 3 commits intoadobe:dev-v3.2.1from
timkimadobe:bugfix-reset-identities-data-race
Dec 16, 2022
Merged

Route resetIdentities event though event handler to avoid potential data race#83
addb merged 3 commits intoadobe:dev-v3.2.1from
timkimadobe:bugfix-reset-identities-data-race

Conversation

@timkimadobe
Copy link
Copy Markdown
Contributor

@timkimadobe timkimadobe commented Jul 1, 2022

Description

Update the routing of resetIdentities event through the handleIncomingEvent handler so that it is handled within the same DispatchQueue as all other events, avoiding potential race condition (thanks to Praveen V for identifying this issue!).

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@emdobrin
Copy link
Copy Markdown
Contributor

@timkimadobe can you take a quick look at the build/test failures?

@codecov
Copy link
Copy Markdown

codecov bot commented Dec 16, 2022

Codecov Report

Merging #83 (4a6d359) into dev-v3.2.1 (3540865) will increase coverage by 0.04%.
The diff coverage is 100.00%.

@@              Coverage Diff               @@
##           dev-v3.2.1      #83      +/-   ##
==============================================
+ Coverage       86.83%   86.86%   +0.04%     
==============================================
  Files              14       14              
  Lines            1116     1119       +3     
==============================================
+ Hits              969      972       +3     
  Misses            147      147              

@addb addb merged commit f7cbcd5 into adobe:dev-v3.2.1 Dec 16, 2022
Sign up for free to 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.

3 participants