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
72 changes: 68 additions & 4 deletions .gen/go/shared/shared.go

Large diffs are not rendered by default.

140 changes: 134 additions & 6 deletions .gen/go/sqlblobs/sqlblobs.go

Large diffs are not rendered by default.

322 changes: 162 additions & 160 deletions .gen/proto/history/v1/service.pb.yarpc.go

Large diffs are not rendered by default.

322 changes: 162 additions & 160 deletions .gen/proto/matching/v1/service.pb.yarpc.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cmd/server/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ require (
github.com/startreedata/pinot-client-go v0.2.0 // latest release supports pinot v0.12.0 which is also internal version
github.com/stretchr/testify v1.10.0
github.com/uber-go/tally v3.3.15+incompatible
github.com/uber/cadence-idl v0.0.0-20260213213208-6fb822717d01
github.com/uber/cadence-idl v0.0.0-20260219170204-8b3ad9e7091e
github.com/uber/ringpop-go v0.8.5 // indirect
github.com/uber/tchannel-go v1.22.2 // indirect
github.com/valyala/fastjson v1.4.1 // indirect
Expand Down
4 changes: 2 additions & 2 deletions cmd/server/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,8 @@ github.com/uber-go/tally v3.3.12+incompatible/go.mod h1:YDTIBxdXyOU/sCWilKB4bgyu
github.com/uber-go/tally v3.3.15+incompatible h1:9hLSgNBP28CjIaDmAuRTq9qV+UZY+9PcvAkXO4nNMwg=
github.com/uber-go/tally v3.3.15+incompatible/go.mod h1:YDTIBxdXyOU/sCWilKB4bgyufu1cEi0jdVnRdxvjnmU=
github.com/uber/cadence-idl v0.0.0-20211111101836-d6b70b60eb8c/go.mod h1:oyUK7GCNCRHCCyWyzifSzXpVrRYVBbAMHAzF5dXiKws=
github.com/uber/cadence-idl v0.0.0-20260213213208-6fb822717d01 h1:qHVlPoKvvtivJoSqQiQr6fBGK+SBjiApbM8V+Iw+VRU=
github.com/uber/cadence-idl v0.0.0-20260213213208-6fb822717d01/go.mod h1:oyUK7GCNCRHCCyWyzifSzXpVrRYVBbAMHAzF5dXiKws=
github.com/uber/cadence-idl v0.0.0-20260219170204-8b3ad9e7091e h1:RAU4TEIdmMI4FE/a3hCoYInxJ/McUBqFfjSChPFNMa4=
github.com/uber/cadence-idl v0.0.0-20260219170204-8b3ad9e7091e/go.mod h1:oyUK7GCNCRHCCyWyzifSzXpVrRYVBbAMHAzF5dXiKws=
github.com/uber/jaeger-client-go v2.22.1+incompatible h1:NHcubEkVbahf9t3p75TOCR83gdUHXjRJvjoBh1yACsM=
github.com/uber/jaeger-client-go v2.22.1+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk=
github.com/uber/jaeger-lib v2.2.0+incompatible h1:MxZXOiR2JuoANZ3J6DE/U0kSFv/eJ/GfSYVCjK7dyaw=
Expand Down
16 changes: 16 additions & 0 deletions common/persistence/serialization/getters.go
Original file line number Diff line number Diff line change
Expand Up @@ -1574,6 +1574,14 @@ func (t *TransferTaskInfo) GetVisibilityTimestamp() time.Time {
return time.Unix(0, 0)
}

// GetOriginalTaskList internal sql blob getter
func (t *TransferTaskInfo) GetOriginalTaskList() (o string) {
if t != nil {
return t.OriginalTaskList
}
return
}

// GetDomainID internal sql blob getter
func (t *TimerTaskInfo) GetDomainID() (o []byte) {
if t != nil && t.DomainID != nil {
Expand Down Expand Up @@ -1638,6 +1646,14 @@ func (t *TimerTaskInfo) GetEventID() (o int64) {
return
}

// GetTaskList internal sql blob getter
func (t *TimerTaskInfo) GetTaskList() (o string) {
if t != nil {
return t.TaskList
}
return
}

// GetDomainID internal sql blob getter
func (t *ReplicationTaskInfo) GetDomainID() (o []byte) {
if t != nil {
Expand Down
6 changes: 6 additions & 0 deletions common/persistence/serialization/getters_fixtures_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ var expectedNil = map[string]map[string]any{
"GetScheduleID": int64(0),
"GetVersion": int64(0),
"GetVisibilityTimestamp": zeroUnix,
"GetOriginalTaskList": "",
},
"*serialization.TimerTaskInfo": {
"GetDomainID": []uint8(nil),
Expand All @@ -125,6 +126,7 @@ var expectedNil = map[string]map[string]any{
"GetTimeoutType": int16(0),
"GetVersion": int64(0),
"GetWorkflowID": "",
"GetTaskList": "",
},
"*serialization.ReplicationTaskInfo": {
"GetBranchToken": []uint8(nil),
Expand Down Expand Up @@ -360,6 +362,7 @@ var expectedEmpty = map[string]map[string]any{
"GetScheduleID": int64(0),
"GetVersion": int64(0),
"GetVisibilityTimestamp": time.Time{},
"GetOriginalTaskList": "",
},
"*serialization.TimerTaskInfo": {
"GetDomainID": []uint8(nil),
Expand All @@ -370,6 +373,7 @@ var expectedEmpty = map[string]map[string]any{
"GetTimeoutType": int16(0),
"GetVersion": int64(0),
"GetWorkflowID": "",
"GetTaskList": "",
},
"*serialization.ReplicationTaskInfo": {
"GetBranchToken": []uint8(nil),
Expand Down Expand Up @@ -607,6 +611,7 @@ var expectedNonEmpty = map[string]map[string]any{
"GetScheduleID": int64(2),
"GetVersion": int64(3),
"GetVisibilityTimestamp": taskInfoCreateTime,
"GetOriginalTaskList": "originalTaskList",
},
"*serialization.TimerTaskInfo": {
"GetDomainID": []byte(taskDomainID),
Expand All @@ -617,6 +622,7 @@ var expectedNonEmpty = map[string]map[string]any{
"GetTimeoutType": int16(2),
"GetVersion": int64(3),
"GetWorkflowID": "workflowID",
"GetTaskList": "taskList",
},
"*serialization.ReplicationTaskInfo": {
"GetBranchToken": []byte("branchToken"),
Expand Down
2 changes: 2 additions & 0 deletions common/persistence/serialization/getters_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ func TestGettersForInfos(t *testing.T) {
ScheduleID: 2,
Version: 3,
VisibilityTimestamp: taskInfoCreateTime,
OriginalTaskList: "originalTaskList",
},
&TimerTaskInfo{
DomainID: taskDomainID,
Expand All @@ -175,6 +176,7 @@ func TestGettersForInfos(t *testing.T) {
Version: 3,
ScheduleAttempt: 4,
EventID: 5,
TaskList: "taskList",
},
&ReplicationTaskInfo{
DomainID: replicationTaskDomainID,
Expand Down
2 changes: 2 additions & 0 deletions common/persistence/serialization/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ type (
ScheduleID int64
Version int64
VisibilityTimestamp time.Time
OriginalTaskList string
}

// CrossClusterTaskInfo blob in a serialization agnostic format
Expand All @@ -323,6 +324,7 @@ type (
Version int64
ScheduleAttempt int64
EventID int64
TaskList string
}

// ReplicationTaskInfo blob in a serialization agnostic format
Expand Down
4 changes: 4 additions & 0 deletions common/persistence/serialization/thrift_mapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,7 @@ func transferTaskInfoToThrift(info *TransferTaskInfo) *sqlblobs.TransferTaskInfo
ScheduleID: &info.ScheduleID,
Version: &info.Version,
VisibilityTimestampNanos: timeToUnixNanoPtr(info.VisibilityTimestamp),
OriginalTaskList: &info.OriginalTaskList,
}
if len(info.TargetDomainIDs) > 0 {
thriftTaskInfo.TargetDomainIDs = [][]byte{}
Expand Down Expand Up @@ -712,6 +713,7 @@ func transferTaskInfoFromThrift(info *sqlblobs.TransferTaskInfo) *TransferTaskIn
ScheduleID: info.GetScheduleID(),
Version: info.GetVersion(),
VisibilityTimestamp: timeFromUnixNano(info.GetVisibilityTimestampNanos()),
OriginalTaskList: info.GetOriginalTaskList(),
}
if len(info.GetTargetDomainIDs()) > 0 {
transferTaskInfo.TargetDomainIDs = []UUID{}
Expand Down Expand Up @@ -743,6 +745,7 @@ func timerTaskInfoToThrift(info *TimerTaskInfo) *sqlblobs.TimerTaskInfo {
Version: &info.Version,
ScheduleAttempt: &info.ScheduleAttempt,
EventID: &info.EventID,
TaskList: &info.TaskList,
}
}

Expand All @@ -759,6 +762,7 @@ func timerTaskInfoFromThrift(info *sqlblobs.TimerTaskInfo) *TimerTaskInfo {
Version: info.GetVersion(),
ScheduleAttempt: info.GetScheduleAttempt(),
EventID: info.GetEventID(),
TaskList: info.GetTaskList(),
}
}

Expand Down
2 changes: 2 additions & 0 deletions common/persistence/serialization/thrift_mapper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,7 @@ func TestTransferTaskInfo(t *testing.T) {
TargetChildWorkflowOnly: true,
ScheduleID: int64(rand.Intn(1000)),
Version: int64(rand.Intn(1000)),
OriginalTaskList: "OriginalTaskList",
}
actual := transferTaskInfoFromThrift(transferTaskInfoToThrift(expected))
assert.Equal(t, expected, actual)
Expand All @@ -558,6 +559,7 @@ func TestTimerTaskInfo(t *testing.T) {
Version: int64(rand.Intn(1000)),
ScheduleAttempt: int64(rand.Intn(1000)),
EventID: int64(rand.Intn(1000)),
TaskList: "TaskList",
}
actual := timerTaskInfoFromThrift(timerTaskInfoToThrift(expected))
assert.Equal(t, expected, actual)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ require (
github.com/startreedata/pinot-client-go v0.2.0 // latest release supports pinot v0.12.0 which is also internal version
github.com/stretchr/testify v1.10.0
github.com/uber-go/tally v3.3.15+incompatible
github.com/uber/cadence-idl v0.0.0-20260213213208-6fb822717d01
github.com/uber/cadence-idl v0.0.0-20260219170204-8b3ad9e7091e
github.com/uber/ringpop-go v0.8.5
github.com/uber/tchannel-go v1.22.2
github.com/urfave/cli/v2 v2.27.4
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,8 @@ github.com/uber-go/tally v3.3.12+incompatible/go.mod h1:YDTIBxdXyOU/sCWilKB4bgyu
github.com/uber-go/tally v3.3.15+incompatible h1:9hLSgNBP28CjIaDmAuRTq9qV+UZY+9PcvAkXO4nNMwg=
github.com/uber-go/tally v3.3.15+incompatible/go.mod h1:YDTIBxdXyOU/sCWilKB4bgyufu1cEi0jdVnRdxvjnmU=
github.com/uber/cadence-idl v0.0.0-20211111101836-d6b70b60eb8c/go.mod h1:oyUK7GCNCRHCCyWyzifSzXpVrRYVBbAMHAzF5dXiKws=
github.com/uber/cadence-idl v0.0.0-20260213213208-6fb822717d01 h1:qHVlPoKvvtivJoSqQiQr6fBGK+SBjiApbM8V+Iw+VRU=
github.com/uber/cadence-idl v0.0.0-20260213213208-6fb822717d01/go.mod h1:oyUK7GCNCRHCCyWyzifSzXpVrRYVBbAMHAzF5dXiKws=
github.com/uber/cadence-idl v0.0.0-20260219170204-8b3ad9e7091e h1:RAU4TEIdmMI4FE/a3hCoYInxJ/McUBqFfjSChPFNMa4=
github.com/uber/cadence-idl v0.0.0-20260219170204-8b3ad9e7091e/go.mod h1:oyUK7GCNCRHCCyWyzifSzXpVrRYVBbAMHAzF5dXiKws=
github.com/uber/jaeger-client-go v2.22.1+incompatible h1:NHcubEkVbahf9t3p75TOCR83gdUHXjRJvjoBh1yACsM=
github.com/uber/jaeger-client-go v2.22.1+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk=
github.com/uber/jaeger-lib v2.2.0+incompatible h1:MxZXOiR2JuoANZ3J6DE/U0kSFv/eJ/GfSYVCjK7dyaw=
Expand Down
Loading