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

fix: chunkstamp load with hash, replace to increase refCnt, new soc eviction unit test, index collision check changes #4900

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

istae
Copy link
Member

@istae istae commented Nov 11, 2024

Checklist

  • I have read the coding guide.
  • My change requires a documentation update, and I have done it.
  • I have added tests to cover my changes.
  • I have filled out the description and linked the related issues.

Description

wrote a new reserve eviction test for SOCs.

fixed:
chunkstamp expects that the chunk address and batch id are unique entries
anywhere we use chunkstamp.LoadWithBatchID, we can't reliably tell it's the correct stamp
i wrote a unit test that uploads 10 gsoc chunks and the chunkstamp.LoadWithBatchID was an issue

the chunkstore.Replace is also supposed to increment the refCnt as each SOC creates a new reserve entry.

fixed index collision checks

Open API Spec Version Changes (if applicable)

Motivation and Context (Optional)

Related Issue (Optional)

Screenshots (if appropriate):

@istae istae changed the base branch from feat/gsoc-subscribe to gsoc-subscribe November 11, 2024 20:05
@istae istae marked this pull request as ready for review November 11, 2024 20:06
@istae istae changed the title fix: chunkstamp load with hash, replace to increase refCnt fix: chunkstamp load with hash, replace to increase refCnt, new soc eviction unit test, index collision check changes Nov 11, 2024
@istae istae merged commit a53ba8e into gsoc-subscribe Nov 11, 2024
9 checks passed
@istae istae deleted the fix-chunkstamp branch November 11, 2024 20:26
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.

1 participant