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

fix: Added asserts for threads in all modifying methods #10584

Merged
merged 2 commits into from Dec 20, 2023

Conversation

imalygin
Copy link
Member

Description:

Added asserts to make sure that modifying methods of VirtualMap are never used by different threads at the same time.

Related issue(s):

Fixes #10583

OlegMazurov
OlegMazurov previously approved these changes Dec 20, 2023
Copy link

github-actions bot commented Dec 20, 2023

Node: HAPI Test (Token) Results

189 tests   189 ✔️  17m 10s ⏱️
  13 suites      0 💤
  13 files        0

Results for commit 3e12345.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 20, 2023

Node: HAPI Test (Crypto) Results

211 tests   204 ✔️  16m 9s ⏱️
  22 suites      7 💤
  22 files        0

Results for commit 3e12345.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 20, 2023

Node: Unit Test Results

    2 293 files  ±0      2 293 suites  ±0   54m 36s ⏱️ + 6m 4s
118 677 tests ±0  118 643 ✔️ ±0  34 💤 ±0  0 ±0 
127 094 runs  ±0  127 060 ✔️ ±0  34 💤 ±0  0 ±0 

Results for commit 3e12345. ± Comparison against base commit 4b2a1af.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 20, 2023

Node: E2E Test Results

    1 files      1 suites   23m 14s ⏱️
311 tests 311 ✔️ 0 💤 0
333 runs  333 ✔️ 0 💤 0

Results for commit 3e12345.

♻️ This comment has been updated with latest results.

Signed-off-by: Ivan Malygin <ivan@swirldslabs.com>
Copy link

codecov bot commented Dec 20, 2023

Codecov Report

Attention: 24 lines in your changes are missing coverage. Please review.

Comparison is base (c81d6f3) 63.04% compared to head (3e12345) 63.04%.
Report is 3 commits behind head on develop.

Files Patch % Lines
...ction/handler/VirtualMerkleTransactionHandler.java 0.00% 12 Missing ⚠️
...ds/virtualmap/internal/merkle/VirtualRootNode.java 80.00% 0 Missing and 12 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             develop   #10584   +/-   ##
==========================================
  Coverage      63.04%   63.04%           
  Complexity     30838    30838           
==========================================
  Files           3363     3363           
  Lines         135487   135495    +8     
  Branches       14096    14104    +8     
==========================================
+ Hits           85416    85422    +6     
+ Misses         46714    46702   -12     
- Partials        3357     3371   +14     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Ivan Malygin <ivan@swirldslabs.com>
Copy link

Node: HAPI Test (Time Consuming) Results

21 tests     9 ✔️  24m 32s ⏱️
  2 suites  12 💤
  2 files      0

Results for commit 3e12345.

Copy link

Node: Integration Test Results

278 tests  ±0   278 ✔️ ±0   26m 33s ⏱️ -17s
    5 suites ±0       0 💤 ±0 
    5 files   ±0       0 ±0 

Results for commit 3e12345. ± Comparison against base commit 4b2a1af.

Copy link

Node: HAPI Test (Misc) Results

420 tests   333 ✔️  29m 2s ⏱️
  74 suites    87 💤
  74 files        0

Results for commit 3e12345.

Copy link

Node: HAPI Test (Smart Contract) Results

399 tests   373 ✔️  44m 44s ⏱️
  55 suites    26 💤
  55 files        0

Results for commit 3e12345.

@imalygin imalygin merged commit 78653bb into develop Dec 20, 2023
37 checks passed
@imalygin imalygin deleted the 10583-vm-thread-assert branch December 20, 2023 15:53
imalygin added a commit that referenced this pull request Dec 21, 2023
Signed-off-by: Ivan Malygin <ivan@swirldslabs.com>
tinker-michaelj pushed a commit that referenced this pull request Dec 21, 2023
)

Signed-off-by: Ivan Malygin <ivan@swirldslabs.com>
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.

Add validation for a modifying thread in VirtualMap
4 participants