Skip to content

Implement tests, fixes, and new functionality for OkioFileKache#157

Merged
MSDarwish2000 merged 3 commits intomainfrom
refactor/file-kache-tests
Dec 30, 2023
Merged

Implement tests, fixes, and new functionality for OkioFileKache#157
MSDarwish2000 merged 3 commits intomainfrom
refactor/file-kache-tests

Conversation

@MSDarwish2000
Copy link
Member

@MSDarwish2000 MSDarwish2000 commented Dec 29, 2023

This PR makes the following changes:

  • Add new tests for OkioFileKache (fixes Implementing tests (and maybe bug fixes) for FileKache to get ready for stable v2.0.0 #110)
  • Fix the following bugs:
    • a bug causing clear() to close the cache
    • a bug causing replacement of an existing entry to fail
    • a bug causing a temp file to remain until next cache open after failure or cancelation of creation
    • a bug causing older entries to evacuate on the basis of access order even if the strategy is write-order-based
  • Update the journal to version 3 which stores original keys along with transformed ones in an efficient way. It also veridies the used strategy (fixes Use non-transformed/hashed keys in the journal #112)
  • Add more functionality to file caches to be on par with InMemoryKache

This commit also implements fixes for clear() and re-putting an existing
 value
This version stores keys in its plain form instead of transformed form.
It also checks for strategy used
- The commit adds tests for newly added functions
- The commit also fixes removal of cancelled putting
@MSDarwish2000 MSDarwish2000 force-pushed the refactor/file-kache-tests branch from 67ff0c9 to c4b0d07 Compare December 30, 2023 00:46
@MSDarwish2000 MSDarwish2000 enabled auto-merge (squash) December 30, 2023 00:48
@MSDarwish2000 MSDarwish2000 merged commit a9cac7e into main Dec 30, 2023
@MSDarwish2000 MSDarwish2000 deleted the refactor/file-kache-tests branch December 30, 2023 00:52
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.

Use non-transformed/hashed keys in the journal Implementing tests (and maybe bug fixes) for FileKache to get ready for stable v2.0.0

1 participant