Skip to content

fix: Fix issues found during replaying events and dumping state #12531

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

Merged
merged 47 commits into from
Apr 4, 2024

Conversation

Neeharika-Sompalli
Copy link
Contributor

@Neeharika-Sompalli Neeharika-Sompalli commented Apr 3, 2024

Fixes #12334

  • Fixed NPEs in dumpers
  • Changed to not use NftID.DEFAULT in any migration code as key
  • Changed all stores in. token service to add a check when put into state to have key that is not DEFAULT
  • Added StateDumper to dump all three schedule virtual maps. Actual Dumping and validating scheduled state will be done in next PR
  • Fixed token relation linkedLists in NFTOwnerChangesStep

Neeharika-Sompalli and others added 30 commits March 20, 2024 15:18
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
Copy link

github-actions bot commented Apr 3, 2024

Node: HAPI Test (Time Consuming) Results

21 tests   21 ✔️  54m 11s ⏱️
  3 suites    0 💤
  3 files      0

Results for commit 1c07fc4.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 3, 2024

Node: HAPI Test (Smart Contract) Results

497 tests   494 ✔️  1h 4m 18s ⏱️
  55 suites      3 💤
  55 files        0

Results for commit 1c07fc4.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 3, 2024

Node: Unit Test Results

    2 264 files  ±0      2 264 suites  ±0   3h 9m 4s ⏱️ + 22m 38s
112 188 tests ±0  112 139 ✔️ ±0  49 💤 ±0  0 ±0 
120 649 runs  ±0  120 600 ✔️ ±0  49 💤 ±0  0 ±0 

Results for commit 1c07fc4. ± Comparison against base commit 409ac89.

♻️ This comment has been updated with latest results.

Neeharika-Sompalli and others added 2 commits April 3, 2024 15:02
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Michael Tinker <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Apr 3, 2024

Codecov Report

Attention: Patch coverage is 33.78840% with 194 lines in your changes are missing coverage. Please review.

Project coverage is 61.03%. Comparing base (409ac89) to head (1c07fc4).

Files Patch % Lines
...edtransactions/ScheduledTransactionsDumpUtils.java 0.00% 59 Missing ⚠️
...scheduledtransactions/BBMScheduledSecondValue.java 0.00% 19 Missing ⚠️
...edtransactions/ScheduledTransactionsDumpUtils.java 0.00% 16 Missing ⚠️
.../impl/schemas/InitialModServiceScheduleSchema.java 0.00% 16 Missing ⚠️
...heduledtransactions/BBMScheduledEqualityValue.java 0.00% 14 Missing ⚠️
...en/impl/handlers/transfer/NFTOwnersChangeStep.java 76.36% 10 Missing and 3 partials ⚠️
...e/mono/state/migration/AccountStateTranslator.java 45.45% 11 Missing and 1 partial ⚠️
.../com/hedera/node/app/statedumpers/StateDumper.java 0.00% 6 Missing ⚠️
...de/app/service/token/impl/RecordFinalizerBase.java 44.44% 1 Missing and 4 partials ⚠️
...a/node/app/workflows/handle/HandleContextImpl.java 0.00% 3 Missing and 1 partial ⚠️
... and 14 more
Additional details and impacted files
@@                Coverage Diff                 @@
##             release/0.48   #12531      +/-   ##
==================================================
- Coverage           61.04%   61.03%   -0.01%     
- Complexity          30806    30817      +11     
==================================================
  Files                3443     3443              
  Lines              141133   141259     +126     
  Branches            14736    14749      +13     
==================================================
+ Hits                86151    86217      +66     
- Misses              51211    51260      +49     
- Partials             3771     3782      +11     

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

Signed-off-by: Neeharika-Sompalli <[email protected]>
tinker-michaelj
tinker-michaelj previously approved these changes Apr 4, 2024
Copy link
Contributor

@tinker-michaelj tinker-michaelj left a comment

Choose a reason for hiding this comment

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

LGTM, tyvm @Neeharika-Sompalli !

Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
Copy link
Contributor

@iwsimon iwsimon left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @Neeharika-Sompalli

Copy link
Contributor

@tinker-michaelj tinker-michaelj left a comment

Choose a reason for hiding this comment

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

LGTM, ty @Neeharika-Sompalli !

@Neeharika-Sompalli Neeharika-Sompalli merged commit 6b0f999 into release/0.48 Apr 4, 2024
26 checks passed
@Neeharika-Sompalli Neeharika-Sompalli deleted the 12334-replay-fixes branch April 4, 2024 15:18
Neeharika-Sompalli added a commit that referenced this pull request Apr 4, 2024
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Michael Tinker <[email protected]>
Co-authored-by: Michael Tinker <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
Neeharika-Sompalli added a commit that referenced this pull request Apr 4, 2024
Neeharika-Sompalli added a commit that referenced this pull request Apr 4, 2024
…ng state (#12531) (#12560)

Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Michael Tinker <[email protected]>
Co-authored-by: Michael Tinker <[email protected]>
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.

4 participants