-
Notifications
You must be signed in to change notification settings - Fork 279
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
enable & disable checkpoint #17043
enable & disable checkpoint #17043
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 ✨
|
b07723e
to
5434788
Compare
6eaaec0
to
ae16652
Compare
User description
What type of PR is this?
Which issue(s) this PR fixes:
issue #17034
What this PR does / why we need it:
enable & disable checkpoint
PR Type
Enhancement
Description
OpDisableCheckpoint
toOpCode
enum and updated related maps.openTime
field torunner
struct and added logic to disable checkpointing if the runner has been running for less than 20 minutes.OpDisableCheckpoint
inDebug
function.DisableCKPMethod
constant and handler.HandleDisableCheckpoint
function to handle enabling and disabling checkpoints.HandleDisableCheckpoint
method toHandler
interface.DisableCheckpoint
andEnableCheckpoint
methods.Enable
field toCheckpoint
struct and message.Changes walkthrough 📝
10 files
api.pb.go
Add `OpDisableCheckpoint` to `OpCode` enum and related maps
pkg/pb/api/api.pb.go
OpDisableCheckpoint
toOpCode
enum.OpCode_name
andOpCode_value
maps to includeOpDisableCheckpoint
.runner.go
Add
openTime
to runner and logic to disable checkpointing based onruntime
pkg/vm/engine/tae/db/checkpoint/runner.go
openTime
field torunner
struct.openTime
inNewRunner
function.for less than 20 minutes.
storage_debug.go
Handle `OpDisableCheckpoint` in Debug function
pkg/txn/storage/tae/storage_debug.go
OpDisableCheckpoint
inDebug
function to handledisabling checkpoints.
types.go
Add `DisableCKPMethod` constant and handler
pkg/sql/plan/function/ctl/types.go
DisableCKPMethod
constant.DisableCKPMethod
to the method handler map.handle_debug.go
Add `HandleDisableCheckpoint` function
pkg/vm/engine/tae/rpc/handle_debug.go
HandleDisableCheckpoint
function to handle enabling anddisabling checkpoints.
handler.go
Add `HandleDisableCheckpoint` method to Handler interface
pkg/vm/engine/tae/iface/rpchandle/handler.go
HandleDisableCheckpoint
method toHandler
interface.testutils.go
Add log messages to checkpoint enable/disable methods
pkg/vm/engine/tae/db/checkpoint/testutils.go
DisableCheckpoint
andEnableCheckpoint
methods.operations.go
Add `Enable` field to Checkpoint struct
pkg/vm/engine/tae/db/operations.go
Enable
field toCheckpoint
struct.api.proto
Add `OpDisableCheckpoint` to OpCode enum
proto/api.proto
OpDisableCheckpoint
toOpCode
enum.operations.proto
Add `Enable` field to Checkpoint message
pkg/vm/engine/tae/db/operations.proto
Enable
field toCheckpoint
message.