Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syncronize Event processing #436

Merged
merged 2 commits into from
Nov 4, 2020
Merged

Conversation

nporter-adbe
Copy link
Contributor

Adds all event processing onto the eventHubQueue to fix any race conditions that could result in out of order Event dispatching.

@nporter-adbe nporter-adbe linked an issue Nov 2, 2020 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Nov 2, 2020

Codecov Report

Merging #436 into dev will decrease coverage by 0.28%.
The diff coverage is 97.06%.

@@            Coverage Diff             @@
##              dev     #436      +/-   ##
==========================================
- Coverage   87.43%   87.15%   -0.28%     
==========================================
  Files          92       92              
  Lines        4042     4046       +4     
==========================================
- Hits         3534     3526       -8     
- Misses        508      520      +12     

Log.warning(label: LOG_TAG, "Unable to retrieve shared state for \(extensionName). No such extension is registered.")
return nil
}
return eventHubQueue.sync {
Copy link
Contributor

Choose a reason for hiding this comment

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

a little bit concerned about the performance implication but we can see if it will cause any problem

@nporter-adbe
Copy link
Contributor Author

any feedback @sbenedicadb?

@nporter-adbe nporter-adbe merged commit d6edec4 into adobe:dev Nov 4, 2020
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.

Event number out of order
3 participants