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

Fixed network increase backoff concurrency issue #765

Merged
merged 2 commits into from
Jul 17, 2023

Conversation

rokn
Copy link
Contributor

@rokn rokn commented Jun 28, 2023

Description:
This PR fixes some concurrency issues with the Network instances, related to accessing healthyNodes. It's protecting only the part of the instance which is used when executing transactions.

Related issue(s):
Fixes #762
Fixes #761

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@codecov
Copy link

codecov bot commented Jun 28, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.09 ⚠️

Comparison is base (f6a3c6f) 57.87% compared to head (3754732) 57.78%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #765      +/-   ##
===========================================
- Coverage    57.87%   57.78%   -0.09%     
===========================================
  Files          162      163       +1     
  Lines        32601    32892     +291     
===========================================
+ Hits         18868    19007     +139     
- Misses       12451    12601     +150     
- Partials      1282     1284       +2     
Impacted Files Coverage Δ
managed_network.go 100.00% <100.00%> (ø)
mirror_node.go 41.17% <100.00%> (-1.48%) ⬇️
network.go 83.68% <100.00%> (+0.59%) ⬆️

... and 63 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@rokn rokn force-pushed the fix/increase-backoff-concurrency branch 2 times, most recently from 6317ffa to 8866970 Compare June 28, 2023 13:28
@xin-hedera
Copy link
Contributor

xin-hedera commented Jun 29, 2023

suggestion: add -race flag to go test in the github workflow, that should help detect potential data race issues

@rokn rokn force-pushed the fix/increase-backoff-concurrency branch from 8866970 to e68e189 Compare July 13, 2023 15:26
Signed-off-by: Antonio Mindov <antonio.mindov@limechain.tech>
@rokn rokn force-pushed the fix/increase-backoff-concurrency branch from e68e189 to 053c805 Compare July 13, 2023 15:41
Signed-off-by: Antonio Mindov <antonio.mindov@limechain.tech>
@rokn rokn force-pushed the fix/increase-backoff-concurrency branch from aadc9a2 to 3754732 Compare July 17, 2023 09:04
@sonarcloud
Copy link

sonarcloud bot commented Jul 17, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@rokn rokn merged commit 25df50d into develop Jul 17, 2023
6 of 7 checks passed
@rokn rokn deleted the fix/increase-backoff-concurrency branch July 17, 2023 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants