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

Delete stale session trackers #11809

Merged
merged 25 commits into from
Apr 12, 2022
Merged

Delete stale session trackers #11809

merged 25 commits into from
Apr 12, 2022

Conversation

xacrimon
Copy link
Contributor

@xacrimon xacrimon commented Apr 7, 2022

While #11551 significantly improves expiry for future sessions, it still does not clean up old sessions. This PR checks for old expired sessions that do not have an item key expiry set upon fetching the tracker list and if found, deletes the tracker.

@xacrimon xacrimon requested review from espadolini and Joerger April 7, 2022 20:45
@xacrimon xacrimon changed the title Delete stale session trackers trackers Delete stale session Apr 7, 2022
@xacrimon xacrimon changed the title Delete stale session Delete stale session trackers Apr 7, 2022
Copy link
Contributor

@codingllama codingllama left a comment

Choose a reason for hiding this comment

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

Let's add some tests, this seems simple but I think we got a tiny bug nonetheless.

lib/services/local/sessiontracker.go Outdated Show resolved Hide resolved
lib/services/local/sessiontracker.go Outdated Show resolved Hide resolved
lib/services/local/sessiontracker.go Outdated Show resolved Hide resolved
lib/services/local/sessiontracker.go Outdated Show resolved Hide resolved
@xacrimon xacrimon requested a review from codingllama April 8, 2022 06:46
lib/services/local/sessiontracker.go Outdated Show resolved Hide resolved
lib/services/local/sessiontracker.go Outdated Show resolved Hide resolved
lib/services/local/sessiontracker.go Outdated Show resolved Hide resolved
lib/services/local/sessiontracker.go Outdated Show resolved Hide resolved
lib/services/local/sessiontracker.go Outdated Show resolved Hide resolved
lib/services/local/sessiontracker.go Outdated Show resolved Hide resolved
lib/services/local/sessiontracker.go Outdated Show resolved Hide resolved
@xacrimon xacrimon requested a review from espadolini April 8, 2022 12:32
lib/services/local/sessiontracker.go Outdated Show resolved Hide resolved
lib/services/local/sessiontracker_test.go Outdated Show resolved Hide resolved
@xacrimon xacrimon requested a review from Joerger April 8, 2022 18:21
lib/services/local/sessiontracker_test.go Outdated Show resolved Hide resolved
lib/services/local/sessiontracker_test.go Outdated Show resolved Hide resolved
lib/services/local/sessiontracker.go Outdated Show resolved Hide resolved
lib/services/local/sessiontracker.go Show resolved Hide resolved
lib/services/local/sessiontracker.go Outdated Show resolved Hide resolved
lib/services/local/sessiontracker_test.go Outdated Show resolved Hide resolved
@xacrimon xacrimon requested a review from codingllama April 11, 2022 19:46
@xacrimon xacrimon enabled auto-merge (squash) April 11, 2022 20:47
@xacrimon xacrimon disabled auto-merge April 12, 2022 05:05
@xacrimon xacrimon enabled auto-merge (squash) April 12, 2022 05:50
@xacrimon xacrimon merged commit f19d4c5 into master Apr 12, 2022
@xacrimon xacrimon deleted the joel/delete-stale-trackers branch April 12, 2022 07:09
xacrimon added a commit that referenced this pull request Apr 12, 2022
xacrimon added a commit that referenced this pull request Apr 13, 2022
* Delete stale session trackers (#11809)

* Improve error message when node cannot find moderated sessions RPC (#11872)
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.

4 participants