Skip to content

Conversation

@crandles
Copy link
Contributor

The current index flushonce is unsafe because the generated marshal function isn't accessing fields with atomics.

This PR works around this issue by safely copying the index prior to calling marshal.

Resolves #873

@coveralls
Copy link

coveralls commented Oct 24, 2025

Pull Request Test Coverage Report for Build 18769903240

Details

  • 19 of 20 (95.0%) changed or added relevant lines in 1 file are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.01%) to 76.209%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/cache/index/client.go 19 20 95.0%
Files with Coverage Reduction New Missed Lines %
pkg/proxy/engines/cache.go 2 92.58%
Totals Coverage Status
Change from base Build 18763968241: 0.01%
Covered Lines: 15318
Relevant Lines: 20100

💛 - Coveralls

Signed-off-by: Chris Randles <[email protected]>
@crandles crandles merged commit 9b88fe0 into trickstercache:main Oct 24, 2025
7 checks passed
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.

Data Race observed in pkg/cache/index

3 participants