Skip to content

Feat: Implement garbage collection for s3#49

Merged
Rich-T-kid merged 1 commit intopre-releasefrom
garbage-collection-thread
Feb 8, 2026
Merged

Feat: Implement garbage collection for s3#49
Rich-T-kid merged 1 commit intopre-releasefrom
garbage-collection-thread

Conversation

@Rich-T-kid
Copy link
Copy Markdown
Owner

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an S3 “garbage collection” background process to the Substrait execution server, intended to clean up cached/result objects after they expire.

Changes:

  • Start a background GC goroutine when the gRPC server starts.
  • Add a new substrait/GC.go loop that reads a Redis list and deletes S3 objects not in the keep-set.
  • Introduce Redis client dependency and add a server.redis_port config field/default.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
src/Backend/opti-sql-go/substrait/server.go Starts GC goroutine during server startup.
src/Backend/opti-sql-go/substrait/GC.go Implements Redis-driven S3 object deletion loop.
src/Backend/opti-sql-go/config/config.go Adds RedisPort field and default value.
src/Backend/opti-sql-go/go.mod Adds indirect dependencies for Redis client.
src/Backend/opti-sql-go/go.sum Adds checksums for new indirect dependencies.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Backend/opti-sql-go/config/config.go
Comment thread src/Backend/opti-sql-go/substrait/GC.go Outdated
Comment thread src/Backend/opti-sql-go/substrait/GC.go
Comment thread src/Backend/opti-sql-go/substrait/GC.go Outdated
Comment thread src/Backend/opti-sql-go/substrait/GC.go Outdated
Comment thread src/Backend/opti-sql-go/substrait/server.go
Comment thread src/Backend/opti-sql-go/config/config.go
Comment thread src/Backend/opti-sql-go/substrait/GC.go
Comment thread src/Backend/opti-sql-go/substrait/GC.go Outdated
@Rich-T-kid Rich-T-kid force-pushed the garbage-collection-thread branch from 9b97828 to 3290029 Compare February 8, 2026 07:34
@Rich-T-kid Rich-T-kid merged commit 4e5292a into pre-release Feb 8, 2026
Rich-T-kid added a commit that referenced this pull request Feb 8, 2026
Feat: Implement garbage collection for s3
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.

2 participants