Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions api/doris/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
var (
AnnotationDebugKey = "selectdb.com.doris/runmode"
AnnotationDebugValue = "debug"
AnnotationDebugDorisKey = "apache.com.doris/runmode"
)

// DorisClusterSpec defines the desired state of DorisCluster
Expand Down
8 changes: 7 additions & 1 deletion cmd/doris-debug/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,13 @@ func kickOffDebug() bool {
return true
}

fmt.Println("the value not equal!", value, v1.AnnotationDebugValue)
valueDoris := viper.GetString(v1.AnnotationDebugDorisKey)

if valueDoris == "\""+v1.AnnotationDebugDorisKey+"\"" {
return true
}

fmt.Println("the value not equal!", value, v1.AnnotationDebugValue, v1.AnnotationDebugDorisKey)
return false
}

Expand Down