-
Notifications
You must be signed in to change notification settings - Fork 274
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
let big delete write s3 file before workspace commit #18804
let big delete write s3 file before workspace commit #18804
Conversation
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Reviewer Guide 🔍
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Code Suggestions ✨
|
User description
What type of PR is this?
Which issue(s) this PR fixes:
issue #18773
What this PR does / why we need it:
let big delete write s3 file before workspace commit
PR Type
Enhancement, Tests
Description
dumpDeleteBatchLocked
to handle delete batches.approximateInMemDeleteCnt
in transactions to track the count of delete entries.Test_BigDeleteWriteS3
to verify the correct handling of delete operations and their interaction with S3 writes.Changes walkthrough 📝
txn.go
Enhance transaction handling with delete batch management
pkg/vm/engine/disttae/txn.go
dumpDeleteBatchLocked
function for managing delete batches.dumpBatchLocked
to incorporate delete count checks.types.go
Add delete count tracking to transactions
pkg/vm/engine/disttae/types.go
approximateInMemDeleteCnt
to track delete entries.workspace_test.go
Add test for S3 write operations with deletes
pkg/vm/engine/test/workspace_test.go
Test_BigDeleteWriteS3
for testing delete operations.