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

Incomplete Cleanup of Key_ID Entries in _m After removeItem #272

Open
yesgit opened this issue Apr 26, 2024 · 0 comments
Open

Incomplete Cleanup of Key_ID Entries in _m After removeItem #272

yesgit opened this issue Apr 26, 2024 · 0 comments

Comments

@yesgit
Copy link

yesgit commented Apr 26, 2024

20240426-164005

Description

There seems to be an issue with the removeItem function in our storage system, specifically with entries formatted as key_id. After invoking removeItem, some of these entries are not fully cleaned up and remain in the _m mapping object. This residual data could potentially cause unexpected behavior or errors in subsequent operations.

Steps to Reproduce

  1. Insert multiple items using keys formatted as key_id (e.g., loginInfo_shortToken).
  2. Remove these items using removeItem.
  3. Check the _m object for any residual entries.

Expected Behavior

All entries related to the specified key_id should be completely removed from _m after the execution of removeItem.

Actual Behavior

Some entries remain in _m even after their supposed deletion, leading to unnecessary bloat and potential inconsistencies.

Possible Impact

  • Inefficiencies due to bloated memory usage.
  • Potential for retrieving outdated or incorrect data.
  • General instability in storage operations.

Suggested Actions

  • Review and revise the cleanup logic in removeItem to ensure all references are effectively removed.
  • Implement additional checks and balances to verify the integrity of _m after deletion operations.

This issue needs attention to prevent possible data integrity problems and to maintain optimal performance of the storage system.

Thank you!

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

No branches or pull requests

1 participant