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

LevelDB contains key-values pairs in cache contract storage after removing #1682

Open
oleksandrSydorenkoJ opened this issue Sep 29, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@oleksandrSydorenkoJ
Copy link

Preconditions
Active schain medium type with enabled JSON-RPC API

Version
Skaled 3.17.0-beta.11

To Reproduce

  1. Deploy contract with self-destruct function and fill it for 1-2 MB
  2. Invoke self-destruct function
  3. Check the size of the contract's storage LevelDB

Expected state
Skaled should delete key-values pairs after self-destruct function and run compaction to free space in the levelDB

Actual state:
Skaled delete key-values pairs after self-destruct function and waiting for auto compaction of levelDB (unpredictable timeout)

Logs
after self-destruct without force compaction:
27M 12041

total key:  164175
total value 164175
value size: 5513863
key size: 8534711

After force compaction:
7,3M 12041

total key:  164175
total value 164175
value size: 5513863
key size: 8534711
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants