Skip to content

[proxy] allow for removal of project2ep and account2ep mappings #12753

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

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

conradludgate
Copy link
Contributor

  1. Allows removing account/projects/endpoints when they're no longer referenced in the cache
  2. Allows for lock free insertion/invalidation of projects/accounts.

I don't know if this PR is actually a good idea - it's a lot of complexity right now. I just wanted to scratch an itch and it did seem to work.

@@ -29,6 +29,7 @@ clap = { workspace = true, features = ["derive", "env"] }
clashmap.workspace = true
compute_api.workspace = true
consumption_metrics.workspace = true
crossbeam-skiplist = { git = "https://github.com/crossbeam-rs/crossbeam", rev = "8d24b3460bb7a9968e2ee21eeb42c16b0b5d02e9" }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The range query hacks I've done in this PR depend on the "Comparable" trait, which crossbeam-skiplist supports but has not yet been released to crates-io.

Copy link

9042 tests run: 8393 passed, 0 failed, 649 skipped (full report)


Code coverage* (full report)

  • functions: 34.8% (8819 of 25345 functions)
  • lines: 45.9% (71467 of 155766 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
8549b42 at 2025-07-26T19:08:56.988Z :recycle:

Base automatically changed from conrad/moka-metrics to main July 28, 2025 10:56
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.

1 participant