-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ensure prompt clean up if a scheduler is configured (fixes #859)
A benign race can occur when a maintenance cycle is running, writers insert new entries, and all of the entries that the policy is aware of have expired so they are removed. In this case no clean up was scheduled by the expiration policy, the maintenance status is left as "required", and entries in the write buffer are waiting to be applied. If the cache is idle then those entries will expire and the removal listener will not be notified promptly. As a scheduler is configured to communicate that a prompt notification is desired, the cache should more aggressively use it to ensure this case is handled.
- Loading branch information
Showing
7 changed files
with
279 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -238,6 +238,7 @@ jobs: | |
name: Test Results | ||
runs-on: ubuntu-latest | ||
needs: tests | ||
if: github.event_name == 'push' | ||
permissions: | ||
checks: write | ||
steps: | ||
|
@@ -264,15 +265,17 @@ jobs: | |
ignore_runs: true | ||
job_summary: true | ||
- name: Create badge | ||
id: test-badge | ||
env: | ||
LABEL: tests | ||
COLOR: 31c653 | ||
STATUS: ${{ fromJSON(steps.test-results.outputs.json).formatted.stats.runs }} | ||
run: curl -s https://badgen.net/badge/${{env.LABEL}}/${{env.STATUS}}/${{env.COLOR}} > badge.svg | ||
continue-on-error: true | ||
run: curl -s -f https://badgen.net/badge/${{env.LABEL}}/${{env.STATUS}}/${{env.COLOR}} > badge.svg | ||
- name: Upload badge to Gist | ||
uses: popsiclestick/[email protected] | ||
if: > | ||
github.event_name == 'push' | ||
steps.test-badge.outcome == 'success' | ||
&& endsWith(github.ref, github.event.repository.default_branch) | ||
with: | ||
gist_url: https://gist.githubusercontent.com/ben-manes/c20eb418f0e0bd6dfe1c25beb35faae4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.