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

CV2-5362 Set expiration explicitly on all SharedModel keys #450

Merged
merged 2 commits into from
Sep 27, 2024

Conversation

DGaffney
Copy link
Contributor

Description

Extremely noncontroversial change - adds an expiry to SharedModel keys.

Reference: CV2-5362

How has this been tested?

Not tested locally but very standard pattern

Have you considered secure coding practices when writing this code?

None

@skyemeedan
Copy link
Contributor

skyemeedan commented Sep 26, 2024

seems like tests couldn't run because of build problem? Edit: oh, already being looked at: https://meedan.slack.com/archives/C04288CDF6F/p1727364691775599

Copy link

codeclimate bot commented Sep 26, 2024

Code Climate has analyzed commit 85de9ac and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 79.7% (0.0% change).

View more on Code Climate.

Copy link
Contributor

@skyemeedan skyemeedan left a comment

Choose a reason for hiding this comment

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

I'm not familiar enough with the overall system to think through side effects of this. But setting the TTL seems like a great idea! I'm assuming there are no situations we should be waiting longer than a day? (indexing?).

Was there a reason we suddenly started having lots more abandoned keys? Do those failures show up anywhere else (sentry?) so we know it is happening?

@DGaffney
Copy link
Contributor Author

I'm not familiar enough with the overall system to think through side effects of this. But setting the TTL seems like a great idea! I'm assuming there are no situations we should be waiting longer than a day? (indexing?).

Was there a reason we suddenly started having lots more abandoned keys? Do those failures show up anywhere else (sentry?) so we know it is happening?

We don't really have any decent instrumentation on when these keys arrived or how long they've been there - technically, they could be there for as long as, god, four years? @computermacgyver @caiosba and I discussed during our weekly checkin and agreed that TTLing this for now, then checking to see if they keep coming up the next few days, was the solid strategy regardless.

@DGaffney DGaffney merged commit f7bc1e8 into develop Sep 27, 2024
4 checks passed
@DGaffney DGaffney deleted the cv2-5362-setex branch September 27, 2024 02:00
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.

3 participants