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

Cache: correctly check background cache size #11654

Merged

Conversation

dannykopping
Copy link
Contributor

@dannykopping dannykopping commented Jan 11, 2024

What this PR does / why we need it:
The size check was not being performed atomically, which led to flakiness in the TestBackgroundSizeLimit test.

Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
@dannykopping dannykopping requested a review from a team as a code owner January 11, 2024 11:19
Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
pkg/storage/chunk/cache/background.go Outdated Show resolved Hide resolved
pkg/storage/chunk/cache/background.go Outdated Show resolved Hide resolved
Co-authored-by: Christian Haudum <christian.haudum@gmail.com>
@dannykopping dannykopping enabled auto-merge (squash) January 11, 2024 11:28
@dannykopping dannykopping merged commit 88aaa7d into grafana:main Jan 11, 2024
13 checks passed
grafanabot pushed a commit that referenced this pull request Jan 11, 2024
**What this PR does / why we need it**:
The size check was not being performed atomically, which led to
flakiness in the `TestBackgroundSizeLimit` test.

---------

Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
Co-authored-by: Christian Haudum <christian.haudum@gmail.com>
(cherry picked from commit 88aaa7d)
grafanabot pushed a commit that referenced this pull request Jan 11, 2024
**What this PR does / why we need it**:
The size check was not being performed atomically, which led to
flakiness in the `TestBackgroundSizeLimit` test.

---------

Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
Co-authored-by: Christian Haudum <christian.haudum@gmail.com>
(cherry picked from commit 88aaa7d)
@dannykopping dannykopping deleted the dannykopping/atomic-bg-size-check branch January 11, 2024 11:59
dannykopping pushed a commit that referenced this pull request Jan 11, 2024
Backport 88aaa7d from #11654

---

**What this PR does / why we need it**:
The size check was not being performed atomically, which led to
flakiness in the `TestBackgroundSizeLimit` test.

---------

Co-authored-by: Danny Kopping <danny.kopping@grafana.com>
dannykopping pushed a commit that referenced this pull request Jan 17, 2024
**What this PR does / why we need it**:
The size check was not being performed atomically, which led to
flakiness in the `TestBackgroundSizeLimit` test.

---------

Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
Co-authored-by: Christian Haudum <christian.haudum@gmail.com>
(cherry picked from commit 88aaa7d)
dannykopping pushed a commit that referenced this pull request Jan 19, 2024
**What this PR does / why we need it**:
The size check was not being performed atomically, which led to
flakiness in the `TestBackgroundSizeLimit` test.

---------

Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
Co-authored-by: Christian Haudum <christian.haudum@gmail.com>
(cherry picked from commit 88aaa7d)
dannykopping pushed a commit that referenced this pull request Jan 19, 2024
Backport 88aaa7d from #11654

---

**What this PR does / why we need it**:
The size check was not being performed atomically, which led to
flakiness in the `TestBackgroundSizeLimit` test.

---------

Co-authored-by: Danny Kopping <danny.kopping@grafana.com>
rhnasc pushed a commit to inloco/loki that referenced this pull request Apr 12, 2024
**What this PR does / why we need it**:
The size check was not being performed atomically, which led to
flakiness in the `TestBackgroundSizeLimit` test.

---------

Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
Co-authored-by: Christian Haudum <christian.haudum@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants