diff --git a/.gen/proto/matching/v1/service.pb.go b/.gen/proto/matching/v1/service.pb.go index e57f3efc54e..bfe34279f4e 100644 --- a/.gen/proto/matching/v1/service.pb.go +++ b/.gen/proto/matching/v1/service.pb.go @@ -49,6 +49,69 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +type TaskListPartitionConfig struct { + Version int64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` + NumReadPartitions int32 `protobuf:"varint,2,opt,name=num_read_partitions,json=numReadPartitions,proto3" json:"num_read_partitions,omitempty"` + NumWritePartitions int32 `protobuf:"varint,3,opt,name=num_write_partitions,json=numWritePartitions,proto3" json:"num_write_partitions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskListPartitionConfig) Reset() { *m = TaskListPartitionConfig{} } +func (m *TaskListPartitionConfig) String() string { return proto.CompactTextString(m) } +func (*TaskListPartitionConfig) ProtoMessage() {} +func (*TaskListPartitionConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_826e827d3aabf7fc, []int{0} +} +func (m *TaskListPartitionConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TaskListPartitionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TaskListPartitionConfig.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TaskListPartitionConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskListPartitionConfig.Merge(m, src) +} +func (m *TaskListPartitionConfig) XXX_Size() int { + return m.Size() +} +func (m *TaskListPartitionConfig) XXX_DiscardUnknown() { + xxx_messageInfo_TaskListPartitionConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskListPartitionConfig proto.InternalMessageInfo + +func (m *TaskListPartitionConfig) GetVersion() int64 { + if m != nil { + return m.Version + } + return 0 +} + +func (m *TaskListPartitionConfig) GetNumReadPartitions() int32 { + if m != nil { + return m.NumReadPartitions + } + return 0 +} + +func (m *TaskListPartitionConfig) GetNumWritePartitions() int32 { + if m != nil { + return m.NumWritePartitions + } + return 0 +} + type PollForDecisionTaskRequest struct { Request *v1.PollForDecisionTaskRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` @@ -64,7 +127,7 @@ func (m *PollForDecisionTaskRequest) Reset() { *m = PollForDecisionTaskR func (m *PollForDecisionTaskRequest) String() string { return proto.CompactTextString(m) } func (*PollForDecisionTaskRequest) ProtoMessage() {} func (*PollForDecisionTaskRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{0} + return fileDescriptor_826e827d3aabf7fc, []int{1} } func (m *PollForDecisionTaskRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -147,6 +210,7 @@ type PollForDecisionTaskResponse struct { StartedTime *types.Timestamp `protobuf:"bytes,16,opt,name=started_time,json=startedTime,proto3" json:"started_time,omitempty"` Queries map[string]*v1.WorkflowQuery `protobuf:"bytes,17,rep,name=queries,proto3" json:"queries,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` TotalHistoryBytes int64 `protobuf:"varint,18,opt,name=total_history_bytes,json=totalHistoryBytes,proto3" json:"total_history_bytes,omitempty"` + PartitionConfig *TaskListPartitionConfig `protobuf:"bytes,19,opt,name=partition_config,json=partitionConfig,proto3" json:"partition_config,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -156,7 +220,7 @@ func (m *PollForDecisionTaskResponse) Reset() { *m = PollForDecisionTask func (m *PollForDecisionTaskResponse) String() string { return proto.CompactTextString(m) } func (*PollForDecisionTaskResponse) ProtoMessage() {} func (*PollForDecisionTaskResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{1} + return fileDescriptor_826e827d3aabf7fc, []int{2} } func (m *PollForDecisionTaskResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -311,6 +375,13 @@ func (m *PollForDecisionTaskResponse) GetTotalHistoryBytes() int64 { return 0 } +func (m *PollForDecisionTaskResponse) GetPartitionConfig() *TaskListPartitionConfig { + if m != nil { + return m.PartitionConfig + } + return nil +} + type PollForActivityTaskRequest struct { Request *v1.PollForActivityTaskRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` @@ -326,7 +397,7 @@ func (m *PollForActivityTaskRequest) Reset() { *m = PollForActivityTaskR func (m *PollForActivityTaskRequest) String() string { return proto.CompactTextString(m) } func (*PollForActivityTaskRequest) ProtoMessage() {} func (*PollForActivityTaskRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{2} + return fileDescriptor_826e827d3aabf7fc, []int{3} } func (m *PollForActivityTaskRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -391,32 +462,33 @@ func (m *PollForActivityTaskRequest) GetIsolationGroup() string { } type PollForActivityTaskResponse struct { - TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3" json:"task_token,omitempty"` - WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` - ActivityId string `protobuf:"bytes,3,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` - ActivityType *v1.ActivityType `protobuf:"bytes,4,opt,name=activity_type,json=activityType,proto3" json:"activity_type,omitempty"` - Input *v1.Payload `protobuf:"bytes,5,opt,name=input,proto3" json:"input,omitempty"` - ScheduledTime *types.Timestamp `protobuf:"bytes,6,opt,name=scheduled_time,json=scheduledTime,proto3" json:"scheduled_time,omitempty"` - StartedTime *types.Timestamp `protobuf:"bytes,7,opt,name=started_time,json=startedTime,proto3" json:"started_time,omitempty"` - ScheduleToCloseTimeout *types.Duration `protobuf:"bytes,8,opt,name=schedule_to_close_timeout,json=scheduleToCloseTimeout,proto3" json:"schedule_to_close_timeout,omitempty"` - StartToCloseTimeout *types.Duration `protobuf:"bytes,9,opt,name=start_to_close_timeout,json=startToCloseTimeout,proto3" json:"start_to_close_timeout,omitempty"` - HeartbeatTimeout *types.Duration `protobuf:"bytes,10,opt,name=heartbeat_timeout,json=heartbeatTimeout,proto3" json:"heartbeat_timeout,omitempty"` - Attempt int32 `protobuf:"varint,11,opt,name=attempt,proto3" json:"attempt,omitempty"` - ScheduledTimeOfThisAttempt *types.Timestamp `protobuf:"bytes,12,opt,name=scheduled_time_of_this_attempt,json=scheduledTimeOfThisAttempt,proto3" json:"scheduled_time_of_this_attempt,omitempty"` - HeartbeatDetails *v1.Payload `protobuf:"bytes,13,opt,name=heartbeat_details,json=heartbeatDetails,proto3" json:"heartbeat_details,omitempty"` - WorkflowType *v1.WorkflowType `protobuf:"bytes,14,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` - WorkflowDomain string `protobuf:"bytes,15,opt,name=workflow_domain,json=workflowDomain,proto3" json:"workflow_domain,omitempty"` - Header *v1.Header `protobuf:"bytes,16,opt,name=header,proto3" json:"header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3" json:"task_token,omitempty"` + WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` + ActivityId string `protobuf:"bytes,3,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` + ActivityType *v1.ActivityType `protobuf:"bytes,4,opt,name=activity_type,json=activityType,proto3" json:"activity_type,omitempty"` + Input *v1.Payload `protobuf:"bytes,5,opt,name=input,proto3" json:"input,omitempty"` + ScheduledTime *types.Timestamp `protobuf:"bytes,6,opt,name=scheduled_time,json=scheduledTime,proto3" json:"scheduled_time,omitempty"` + StartedTime *types.Timestamp `protobuf:"bytes,7,opt,name=started_time,json=startedTime,proto3" json:"started_time,omitempty"` + ScheduleToCloseTimeout *types.Duration `protobuf:"bytes,8,opt,name=schedule_to_close_timeout,json=scheduleToCloseTimeout,proto3" json:"schedule_to_close_timeout,omitempty"` + StartToCloseTimeout *types.Duration `protobuf:"bytes,9,opt,name=start_to_close_timeout,json=startToCloseTimeout,proto3" json:"start_to_close_timeout,omitempty"` + HeartbeatTimeout *types.Duration `protobuf:"bytes,10,opt,name=heartbeat_timeout,json=heartbeatTimeout,proto3" json:"heartbeat_timeout,omitempty"` + Attempt int32 `protobuf:"varint,11,opt,name=attempt,proto3" json:"attempt,omitempty"` + ScheduledTimeOfThisAttempt *types.Timestamp `protobuf:"bytes,12,opt,name=scheduled_time_of_this_attempt,json=scheduledTimeOfThisAttempt,proto3" json:"scheduled_time_of_this_attempt,omitempty"` + HeartbeatDetails *v1.Payload `protobuf:"bytes,13,opt,name=heartbeat_details,json=heartbeatDetails,proto3" json:"heartbeat_details,omitempty"` + WorkflowType *v1.WorkflowType `protobuf:"bytes,14,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` + WorkflowDomain string `protobuf:"bytes,15,opt,name=workflow_domain,json=workflowDomain,proto3" json:"workflow_domain,omitempty"` + Header *v1.Header `protobuf:"bytes,16,opt,name=header,proto3" json:"header,omitempty"` + PartitionConfig *TaskListPartitionConfig `protobuf:"bytes,19,opt,name=partition_config,json=partitionConfig,proto3" json:"partition_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *PollForActivityTaskResponse) Reset() { *m = PollForActivityTaskResponse{} } func (m *PollForActivityTaskResponse) String() string { return proto.CompactTextString(m) } func (*PollForActivityTaskResponse) ProtoMessage() {} func (*PollForActivityTaskResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{3} + return fileDescriptor_826e827d3aabf7fc, []int{4} } func (m *PollForActivityTaskResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -557,6 +629,13 @@ func (m *PollForActivityTaskResponse) GetHeader() *v1.Header { return nil } +func (m *PollForActivityTaskResponse) GetPartitionConfig() *TaskListPartitionConfig { + if m != nil { + return m.PartitionConfig + } + return nil +} + type AddDecisionTaskRequest struct { DomainId string `protobuf:"bytes,1,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` @@ -575,7 +654,7 @@ func (m *AddDecisionTaskRequest) Reset() { *m = AddDecisionTaskRequest{} func (m *AddDecisionTaskRequest) String() string { return proto.CompactTextString(m) } func (*AddDecisionTaskRequest) ProtoMessage() {} func (*AddDecisionTaskRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{4} + return fileDescriptor_826e827d3aabf7fc, []int{5} } func (m *AddDecisionTaskRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -661,16 +740,17 @@ func (m *AddDecisionTaskRequest) GetPartitionConfig() map[string]string { } type AddDecisionTaskResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + PartitionConfig *TaskListPartitionConfig `protobuf:"bytes,1,opt,name=partition_config,json=partitionConfig,proto3" json:"partition_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *AddDecisionTaskResponse) Reset() { *m = AddDecisionTaskResponse{} } func (m *AddDecisionTaskResponse) String() string { return proto.CompactTextString(m) } func (*AddDecisionTaskResponse) ProtoMessage() {} func (*AddDecisionTaskResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{5} + return fileDescriptor_826e827d3aabf7fc, []int{6} } func (m *AddDecisionTaskResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -699,6 +779,13 @@ func (m *AddDecisionTaskResponse) XXX_DiscardUnknown() { var xxx_messageInfo_AddDecisionTaskResponse proto.InternalMessageInfo +func (m *AddDecisionTaskResponse) GetPartitionConfig() *TaskListPartitionConfig { + if m != nil { + return m.PartitionConfig + } + return nil +} + type AddActivityTaskRequest struct { DomainId string `protobuf:"bytes,1,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` @@ -719,7 +806,7 @@ func (m *AddActivityTaskRequest) Reset() { *m = AddActivityTaskRequest{} func (m *AddActivityTaskRequest) String() string { return proto.CompactTextString(m) } func (*AddActivityTaskRequest) ProtoMessage() {} func (*AddActivityTaskRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{6} + return fileDescriptor_826e827d3aabf7fc, []int{7} } func (m *AddActivityTaskRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -835,7 +922,7 @@ func (m *ActivityTaskDispatchInfo) Reset() { *m = ActivityTaskDispatchIn func (m *ActivityTaskDispatchInfo) String() string { return proto.CompactTextString(m) } func (*ActivityTaskDispatchInfo) ProtoMessage() {} func (*ActivityTaskDispatchInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{7} + return fileDescriptor_826e827d3aabf7fc, []int{8} } func (m *ActivityTaskDispatchInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -914,16 +1001,17 @@ func (m *ActivityTaskDispatchInfo) GetWorkflowDomain() string { } type AddActivityTaskResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + PartitionConfig *TaskListPartitionConfig `protobuf:"bytes,1,opt,name=partition_config,json=partitionConfig,proto3" json:"partition_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *AddActivityTaskResponse) Reset() { *m = AddActivityTaskResponse{} } func (m *AddActivityTaskResponse) String() string { return proto.CompactTextString(m) } func (*AddActivityTaskResponse) ProtoMessage() {} func (*AddActivityTaskResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{8} + return fileDescriptor_826e827d3aabf7fc, []int{9} } func (m *AddActivityTaskResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -952,6 +1040,13 @@ func (m *AddActivityTaskResponse) XXX_DiscardUnknown() { var xxx_messageInfo_AddActivityTaskResponse proto.InternalMessageInfo +func (m *AddActivityTaskResponse) GetPartitionConfig() *TaskListPartitionConfig { + if m != nil { + return m.PartitionConfig + } + return nil +} + type QueryWorkflowRequest struct { Request *v1.QueryWorkflowRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` @@ -966,7 +1061,7 @@ func (m *QueryWorkflowRequest) Reset() { *m = QueryWorkflowRequest{} } func (m *QueryWorkflowRequest) String() string { return proto.CompactTextString(m) } func (*QueryWorkflowRequest) ProtoMessage() {} func (*QueryWorkflowRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{9} + return fileDescriptor_826e827d3aabf7fc, []int{10} } func (m *QueryWorkflowRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1035,7 +1130,7 @@ func (m *QueryWorkflowResponse) Reset() { *m = QueryWorkflowResponse{} } func (m *QueryWorkflowResponse) String() string { return proto.CompactTextString(m) } func (*QueryWorkflowResponse) ProtoMessage() {} func (*QueryWorkflowResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{10} + return fileDescriptor_826e827d3aabf7fc, []int{11} } func (m *QueryWorkflowResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1092,7 +1187,7 @@ func (m *RespondQueryTaskCompletedRequest) Reset() { *m = RespondQueryTa func (m *RespondQueryTaskCompletedRequest) String() string { return proto.CompactTextString(m) } func (*RespondQueryTaskCompletedRequest) ProtoMessage() {} func (*RespondQueryTaskCompletedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{11} + return fileDescriptor_826e827d3aabf7fc, []int{12} } func (m *RespondQueryTaskCompletedRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1159,7 +1254,7 @@ func (m *RespondQueryTaskCompletedResponse) Reset() { *m = RespondQueryT func (m *RespondQueryTaskCompletedResponse) String() string { return proto.CompactTextString(m) } func (*RespondQueryTaskCompletedResponse) ProtoMessage() {} func (*RespondQueryTaskCompletedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{12} + return fileDescriptor_826e827d3aabf7fc, []int{13} } func (m *RespondQueryTaskCompletedResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1202,7 +1297,7 @@ func (m *CancelOutstandingPollRequest) Reset() { *m = CancelOutstandingP func (m *CancelOutstandingPollRequest) String() string { return proto.CompactTextString(m) } func (*CancelOutstandingPollRequest) ProtoMessage() {} func (*CancelOutstandingPollRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{13} + return fileDescriptor_826e827d3aabf7fc, []int{14} } func (m *CancelOutstandingPollRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1269,7 +1364,7 @@ func (m *CancelOutstandingPollResponse) Reset() { *m = CancelOutstanding func (m *CancelOutstandingPollResponse) String() string { return proto.CompactTextString(m) } func (*CancelOutstandingPollResponse) ProtoMessage() {} func (*CancelOutstandingPollResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{14} + return fileDescriptor_826e827d3aabf7fc, []int{15} } func (m *CancelOutstandingPollResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1310,7 +1405,7 @@ func (m *DescribeTaskListRequest) Reset() { *m = DescribeTaskListRequest func (m *DescribeTaskListRequest) String() string { return proto.CompactTextString(m) } func (*DescribeTaskListRequest) ProtoMessage() {} func (*DescribeTaskListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{15} + return fileDescriptor_826e827d3aabf7fc, []int{16} } func (m *DescribeTaskListRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1365,7 +1460,7 @@ func (m *DescribeTaskListResponse) Reset() { *m = DescribeTaskListRespon func (m *DescribeTaskListResponse) String() string { return proto.CompactTextString(m) } func (*DescribeTaskListResponse) ProtoMessage() {} func (*DescribeTaskListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{16} + return fileDescriptor_826e827d3aabf7fc, []int{17} } func (m *DescribeTaskListResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1420,7 +1515,7 @@ func (m *ListTaskListPartitionsRequest) Reset() { *m = ListTaskListParti func (m *ListTaskListPartitionsRequest) String() string { return proto.CompactTextString(m) } func (*ListTaskListPartitionsRequest) ProtoMessage() {} func (*ListTaskListPartitionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{17} + return fileDescriptor_826e827d3aabf7fc, []int{18} } func (m *ListTaskListPartitionsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1475,7 +1570,7 @@ func (m *ListTaskListPartitionsResponse) Reset() { *m = ListTaskListPart func (m *ListTaskListPartitionsResponse) String() string { return proto.CompactTextString(m) } func (*ListTaskListPartitionsResponse) ProtoMessage() {} func (*ListTaskListPartitionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{18} + return fileDescriptor_826e827d3aabf7fc, []int{19} } func (m *ListTaskListPartitionsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1529,7 +1624,7 @@ func (m *GetTaskListsByDomainRequest) Reset() { *m = GetTaskListsByDomai func (m *GetTaskListsByDomainRequest) String() string { return proto.CompactTextString(m) } func (*GetTaskListsByDomainRequest) ProtoMessage() {} func (*GetTaskListsByDomainRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{19} + return fileDescriptor_826e827d3aabf7fc, []int{20} } func (m *GetTaskListsByDomainRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1577,7 +1672,7 @@ func (m *GetTaskListsByDomainResponse) Reset() { *m = GetTaskListsByDoma func (m *GetTaskListsByDomainResponse) String() string { return proto.CompactTextString(m) } func (*GetTaskListsByDomainResponse) ProtoMessage() {} func (*GetTaskListsByDomainResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{20} + return fileDescriptor_826e827d3aabf7fc, []int{21} } func (m *GetTaskListsByDomainResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1621,6 +1716,7 @@ func (m *GetTaskListsByDomainResponse) GetActivityTaskListMap() map[string]*Desc } func init() { + proto.RegisterType((*TaskListPartitionConfig)(nil), "uber.cadence.matching.v1.TaskListPartitionConfig") proto.RegisterType((*PollForDecisionTaskRequest)(nil), "uber.cadence.matching.v1.PollForDecisionTaskRequest") proto.RegisterType((*PollForDecisionTaskResponse)(nil), "uber.cadence.matching.v1.PollForDecisionTaskResponse") proto.RegisterMapType((map[string]*v1.WorkflowQuery)(nil), "uber.cadence.matching.v1.PollForDecisionTaskResponse.QueriesEntry") @@ -1654,139 +1750,187 @@ func init() { } var fileDescriptor_826e827d3aabf7fc = []byte{ - // 2106 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5a, 0x5b, 0x6f, 0x1b, 0xc7, - 0x15, 0xc6, 0xea, 0x46, 0xf1, 0x50, 0xa2, 0xa4, 0xb1, 0xa3, 0xac, 0x28, 0xeb, 0x62, 0xa6, 0x49, - 0xd4, 0x22, 0x5d, 0x45, 0x4a, 0xec, 0x3a, 0x0e, 0x8a, 0x42, 0x57, 0x9b, 0x45, 0x5d, 0x3b, 0x6b, - 0xd5, 0x05, 0x8a, 0xc2, 0x8b, 0xe1, 0xee, 0x48, 0xdc, 0x8a, 0xdc, 0x5d, 0xef, 0x0c, 0xa9, 0xb0, - 0x0f, 0x7d, 0x28, 0xda, 0xa2, 0x40, 0x5e, 0xfb, 0x0f, 0x9a, 0xc7, 0x3e, 0xf6, 0x47, 0xf4, 0xb1, - 0x8f, 0x05, 0x82, 0x02, 0x85, 0x81, 0xfe, 0x80, 0xf6, 0x17, 0x14, 0x33, 0x3b, 0xbb, 0xdc, 0x25, - 0x67, 0x79, 0x91, 0x9c, 0xa4, 0x6f, 0x9c, 0x99, 0x73, 0xbe, 0x73, 0xe6, 0xdc, 0x67, 0x41, 0x78, - 0xaf, 0x5d, 0x27, 0xe1, 0xae, 0x8d, 0x1d, 0xe2, 0xd9, 0x64, 0xb7, 0x85, 0x99, 0xdd, 0x70, 0xbd, - 0x8b, 0xdd, 0xce, 0xde, 0x2e, 0x25, 0x61, 0xc7, 0xb5, 0x89, 0x11, 0x84, 0x3e, 0xf3, 0x91, 0xce, - 0xe9, 0x0c, 0x49, 0x67, 0xc4, 0x74, 0x46, 0x67, 0xaf, 0xb2, 0x79, 0xe1, 0xfb, 0x17, 0x4d, 0xb2, - 0x2b, 0xe8, 0xea, 0xed, 0xf3, 0x5d, 0xa7, 0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b5, 0x43, 0xb7, 0x4e, 0x12, 0x76, 0x79, 0xf5, 0xd3, 0xfe, 0x18, 0xf8, 0x40, - 0x29, 0x35, 0x87, 0x7d, 0x3c, 0xd7, 0x57, 0xbf, 0xd4, 0x40, 0x1f, 0x44, 0x90, 0x69, 0xf3, 0x09, - 0x14, 0x22, 0x73, 0x52, 0x5d, 0x13, 0x4d, 0x6d, 0x2b, 0xf7, 0xab, 0x03, 0x09, 0x45, 0xa7, 0x8c, - 0xe9, 0xd1, 0x13, 0x58, 0xee, 0x59, 0x9f, 0x32, 0xcc, 0xda, 0x54, 0xa6, 0xcc, 0x3b, 0x43, 0x6d, - 0xf7, 0x5c, 0x90, 0x9a, 0x65, 0x96, 0x59, 0x57, 0x29, 0x6c, 0x08, 0x7f, 0xc8, 0xdd, 0xa4, 0x03, - 0xd2, 0xd8, 0x58, 0xab, 0x30, 0x27, 0x8b, 0x62, 0x14, 0x24, 0x72, 0x95, 0x75, 0xde, 0xd4, 0x64, - 0xce, 0xfb, 0xc3, 0x14, 0x6c, 0xe6, 0x49, 0x95, 0x16, 0x7a, 0x05, 0x1b, 0xbd, 0x6f, 0x01, 0xc9, - 0x7d, 0x93, 0x9e, 0x1d, 0xdb, 0xcd, 0x18, 0x2a, 0x32, 0xc1, 0x7d, 0x42, 0x18, 0x76, 0x30, 0xc3, - 0x66, 0x25, 0x3d, 0x70, 0x64, 0x45, 0x73, 0x91, 0xc9, 0x07, 0x4a, 0xa5, 0xc8, 0xa9, 0xeb, 0x89, - 0x74, 0x52, 0xe3, 0x71, 0x56, 0x64, 0xf5, 0x1e, 0xac, 0x3f, 0x22, 0x89, 0x19, 0xe8, 0x61, 0x37, - 0xea, 0x34, 0x23, 0x6c, 0x5f, 0xfd, 0x72, 0x06, 0xee, 0xa8, 0xf9, 0xa4, 0xf5, 0x7e, 0xa7, 0xc1, - 0xaa, 0xe2, 0x2e, 0x2d, 0x1c, 0x48, 0xbb, 0x3d, 0xcd, 0x1f, 0xa2, 0x86,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a3, 0x2a, 0x3f, 0x98, 0x98, 0x4f, 0xaa, 0xd2, 0x85, 0xe5, 0xfe, 0x24, 0x46, 0x7b, 0x93, - 0x24, 0x7c, 0x24, 0xff, 0x1a, 0x35, 0x02, 0x7d, 0xa1, 0xc1, 0xaa, 0xba, 0xff, 0xa2, 0x21, 0xd7, - 0x19, 0x3a, 0x27, 0x54, 0x1e, 0x4c, 0xce, 0x28, 0xb5, 0xf9, 0xbd, 0x06, 0xb7, 0x55, 0xd5, 0x1e, - 0xdd, 0x9b, 0xb4, 0x3b, 0x44, 0x9a, 0xdc, 0xbf, 0x5e, 0x53, 0x39, 0x7c, 0xf4, 0xb7, 0xd7, 0x9b, - 0xda, 0xdf, 0x5f, 0x6f, 0x6a, 0xff, 0x7a, 0xbd, 0xa9, 0xfd, 0xe2, 0x93, 0x0b, 0x97, 0x35, 0xda, - 0x75, 0xc3, 0xf6, 0x5b, 0xbb, 0x99, 0x3f, 0x05, 0x18, 0x17, 0xc4, 0x8b, 0xfe, 0x45, 0x91, 0xfe, - 0x23, 0xc7, 0xa7, 0xf1, 0xef, 0xce, 0x5e, 0x7d, 0x4e, 0x9c, 0x7e, 0xf4, 0xbf, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xd6, 0x96, 0x18, 0xb5, 0xf6, 0x21, 0x00, 0x00, + // 2199 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5a, 0xcf, 0x6f, 0xdc, 0xc6, + 0xf5, 0x07, 0xf5, 0x6b, 0xb5, 0x6f, 0xa5, 0x95, 0x3c, 0x76, 0x64, 0x7a, 0x6d, 0xcb, 0xf2, 0xe6, + 0x9b, 0x44, 0xdf, 0x22, 0xa5, 0x2c, 0x25, 0x76, 0x1d, 0x07, 0x45, 0x21, 0x4b, 0x96, 0xbd, 0x45, + 0x5d, 0x3b, 0xb4, 0xea, 0x00, 0x45, 0x60, 0x62, 0x96, 0x1c, 0x69, 0x59, 0xed, 0x92, 0x34, 0x67, + 0xb8, 0xca, 0xf6, 0xd0, 0x43, 0xd1, 0x16, 0x05, 0x7a, 0x2b, 0xda, 0xbf, 0xa0, 0x39, 0xf6, 0x0f, + 0xe9, 0xb1, 0xc7, 0x02, 0x41, 0x81, 0xc2, 0x40, 0x0f, 0x3d, 0xb6, 0x7f, 0x41, 0x31, 0xc3, 0x21, + 0x97, 0xdc, 0x1d, 0xee, 0x0f, 0x49, 0x4e, 0x7a, 0xd3, 0xcc, 0xbc, 0xdf, 0xf3, 0xde, 0xfb, 0xbc, + 0xa1, 0x16, 0xde, 0x8f, 0x9a, 0x24, 0xdc, 0xb2, 0xb1, 0x43, 0x3c, 0x9b, 0x6c, 0x75, 0x30, 0xb3, + 0x5b, 0xae, 0x77, 0xbc, 0xd5, 0xdd, 0xde, 0xa2, 0x24, 0xec, 0xba, 0x36, 0x31, 0x82, 0xd0, 0x67, + 0x3e, 0xd2, 0x39, 0x9d, 0x21, 0xe9, 0x8c, 0x84, 0xce, 0xe8, 0x6e, 0xd7, 0xd6, 0x8f, 0x7d, 0xff, + 0xb8, 0x4d, 0xb6, 0x04, 0x5d, 0x33, 0x3a, 0xda, 0x72, 0xa2, 0x10, 0x33, 0xd7, 0xf7, 0x62, 0xce, + 0xda, 0xad, 0xc1, 0x73, 0xe6, 0x76, 0x08, 0x65, 0xb8, 0x13, 0x48, 0x82, 0x21, 0x01, 0xa7, 0x21, + 0x0e, 0x02, 0x12, 0x52, 0x79, 0xbe, 0x91, 0x33, 0x11, 0x07, 0x2e, 0xb7, 0xce, 0xf6, 0x3b, 0x9d, + 0xbe, 0x0a, 0x15, 0xc5, 0xeb, 0x88, 0x84, 0x3d, 0x49, 0x50, 0x57, 0x11, 0x30, 0x4c, 0x4f, 0xda, + 0x2e, 0x65, 0x92, 0x66, 0x53, 0x45, 0x23, 0x83, 0x60, 0x9d, 0xfa, 0xe1, 0x09, 0x09, 0x25, 0xe5, + 0x77, 0x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53, 0xd9, 0xe4, 0x7f, 0xf2, 0x84, 0xee, 0xf2, 0x0a, 0x96, + 0xad, 0x68, 0xa2, 0x84, 0x16, 0x0c, 0x0f, 0x66, 0xee, 0x6b, 0x59, 0x20, 0xd8, 0xb5, 0x99, 0xdb, + 0x75, 0x59, 0xef, 0xec, 0x40, 0xa0, 0x90, 0xf0, 0xbf, 0x08, 0x04, 0xff, 0x5a, 0x4c, 0x81, 0x20, + 0x6f, 0xf1, 0xb7, 0x0a, 0x04, 0xb7, 0xa0, 0x82, 0xa5, 0x35, 0xfd, 0x20, 0x40, 0xb2, 0xd5, 0x70, + 0x38, 0x52, 0xa4, 0x04, 0x02, 0x29, 0xe6, 0x46, 0x20, 0x45, 0xea, 0x98, 0x40, 0x0a, 0x9c, 0x59, + 0xa1, 0x1d, 0x98, 0x77, 0xbd, 0x20, 0x62, 0x22, 0x3a, 0x95, 0x9d, 0x1b, 0xea, 0x1b, 0xc5, 0xbd, + 0xb6, 0x8f, 0x1d, 0x33, 0x26, 0x55, 0x14, 0xfd, 0xc2, 0x79, 0x8b, 0xbe, 0x34, 0x5d, 0xd1, 0x1f, + 0xc2, 0xb5, 0x44, 0x9e, 0xc5, 0x7c, 0xcb, 0x6e, 0xfb, 0x94, 0x08, 0x41, 0x7e, 0x14, 0xc3, 0x44, + 0x65, 0xe7, 0xda, 0x90, 0xac, 0x7d, 0x39, 0xfb, 0x9a, 0x6b, 0x09, 0xef, 0xa1, 0xbf, 0xc7, 0x39, + 0x0f, 0x63, 0x46, 0xf4, 0x63, 0x58, 0x13, 0x4a, 0x86, 0x45, 0x96, 0xc7, 0x89, 0xbc, 0x2c, 0x18, + 0x07, 0xe4, 0x1d, 0xc0, 0xa5, 0x16, 0xc1, 0x21, 0x6b, 0x12, 0xcc, 0x52, 0x51, 0x30, 0x4e, 0xd4, + 0x6a, 0xca, 0x93, 0xc8, 0xc9, 0x60, 0x69, 0x25, 0x8f, 0xa5, 0xaf, 0x60, 0x3d, 0x7f, 0x13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, 0x6e, 0xf2, 0xaa, 0x7d, 0x7a, 0x26, + 0x5e, 0x69, 0xd6, 0x6f, 0x35, 0x78, 0x47, 0x39, 0x37, 0xa0, 0x7b, 0xc5, 0x62, 0x47, 0xcd, 0x51, + 0xb5, 0xef, 0x4d, 0xcd, 0x27, 0x4d, 0xe9, 0xc1, 0xea, 0x60, 0x11, 0xa3, 0xed, 0x69, 0x0a, 0x3e, + 0xd6, 0x7f, 0x86, 0x1e, 0x81, 0x7e, 0xa7, 0xc1, 0x9a, 0x1a, 0x7f, 0xd1, 0x08, 0x77, 0x46, 0xce, + 0x09, 0xb5, 0xfb, 0xd3, 0x33, 0x4a, 0x6b, 0x7e, 0xad, 0xc1, 0x15, 0x55, 0xb7, 0x47, 0x77, 0xa7, + 0x45, 0x87, 0xd8, 0x92, 0x7b, 0x67, 0x03, 0x95, 0x87, 0x8f, 0xff, 0xf2, 0x66, 0x5d, 0xfb, 0xeb, + 0x9b, 0x75, 0xed, 0x1f, 0x6f, 0xd6, 0xb5, 0x9f, 0x7e, 0x72, 0xec, 0xb2, 0x56, 0xd4, 0x34, 0x6c, + 0xbf, 0xb3, 0x95, 0xfb, 0x91, 0x88, 0x71, 0x4c, 0xbc, 0xf8, 0x57, 0x35, 0xd9, 0x1f, 0xf6, 0x7c, + 0x9a, 0xfc, 0xdd, 0xdd, 0x6e, 0x2e, 0x88, 0xd3, 0x8f, 0xfe, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x61, + 0x6e, 0x31, 0xa3, 0x06, 0x24, 0x00, 0x00, +} + +func (m *TaskListPartitionConfig) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TaskListPartitionConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TaskListPartitionConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.NumWritePartitions != 0 { + i = encodeVarintService(dAtA, i, uint64(m.NumWritePartitions)) + i-- + dAtA[i] = 0x18 + } + if m.NumReadPartitions != 0 { + i = encodeVarintService(dAtA, i, uint64(m.NumReadPartitions)) + i-- + dAtA[i] = 0x10 + } + if m.Version != 0 { + i = encodeVarintService(dAtA, i, uint64(m.Version)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *PollForDecisionTaskRequest) Marshal() (dAtA []byte, err error) { @@ -1880,6 +2024,20 @@ func (m *PollForDecisionTaskResponse) MarshalToSizedBuffer(dAtA []byte) (int, er i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } + if m.PartitionConfig != nil { + { + size, err := m.PartitionConfig.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintService(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x9a + } if m.TotalHistoryBytes != 0 { i = encodeVarintService(dAtA, i, uint64(m.TotalHistoryBytes)) i-- @@ -2156,6 +2314,20 @@ func (m *PollForActivityTaskResponse) MarshalToSizedBuffer(dAtA []byte) (int, er i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } + if m.PartitionConfig != nil { + { + size, err := m.PartitionConfig.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintService(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x9a + } if m.Header != nil { { size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) @@ -2461,6 +2633,18 @@ func (m *AddDecisionTaskResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } + if m.PartitionConfig != nil { + { + size, err := m.PartitionConfig.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintService(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } @@ -2712,6 +2896,18 @@ func (m *AddActivityTaskResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } + if m.PartitionConfig != nil { + { + size, err := m.PartitionConfig.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintService(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } @@ -3332,6 +3528,27 @@ func encodeVarintService(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } +func (m *TaskListPartitionConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Version != 0 { + n += 1 + sovService(uint64(m.Version)) + } + if m.NumReadPartitions != 0 { + n += 1 + sovService(uint64(m.NumReadPartitions)) + } + if m.NumWritePartitions != 0 { + n += 1 + sovService(uint64(m.NumWritePartitions)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + func (m *PollForDecisionTaskRequest) Size() (n int) { if m == nil { return 0 @@ -3444,6 +3661,10 @@ func (m *PollForDecisionTaskResponse) Size() (n int) { if m.TotalHistoryBytes != 0 { n += 2 + sovService(uint64(m.TotalHistoryBytes)) } + if m.PartitionConfig != nil { + l = m.PartitionConfig.Size() + n += 2 + l + sovService(uint64(l)) + } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } @@ -3551,6 +3772,10 @@ func (m *PollForActivityTaskResponse) Size() (n int) { l = m.Header.Size() n += 2 + l + sovService(uint64(l)) } + if m.PartitionConfig != nil { + l = m.PartitionConfig.Size() + n += 2 + l + sovService(uint64(l)) + } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } @@ -3609,6 +3834,10 @@ func (m *AddDecisionTaskResponse) Size() (n int) { } var l int _ = l + if m.PartitionConfig != nil { + l = m.PartitionConfig.Size() + n += 1 + l + sovService(uint64(l)) + } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } @@ -3714,6 +3943,10 @@ func (m *AddActivityTaskResponse) Size() (n int) { } var l int _ = l + if m.PartitionConfig != nil { + l = m.PartitionConfig.Size() + n += 1 + l + sovService(uint64(l)) + } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } @@ -3993,6 +4226,114 @@ func sovService(x uint64) (n int) { func sozService(x uint64) (n int) { return sovService(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func (m *TaskListPartitionConfig) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TaskListPartitionConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TaskListPartitionConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + m.Version = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Version |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumReadPartitions", wireType) + } + m.NumReadPartitions = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NumReadPartitions |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumWritePartitions", wireType) + } + m.NumWritePartitions = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NumWritePartitions |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipService(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthService + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *PollForDecisionTaskRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -4856,6 +5197,42 @@ func (m *PollForDecisionTaskResponse) Unmarshal(dAtA []byte) error { break } } + case 19: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PartitionConfig", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthService + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PartitionConfig == nil { + m.PartitionConfig = &TaskListPartitionConfig{} + } + if err := m.PartitionConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipService(dAtA[iNdEx:]) @@ -5671,6 +6048,42 @@ func (m *PollForActivityTaskResponse) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 19: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PartitionConfig", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthService + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PartitionConfig == nil { + m.PartitionConfig = &TaskListPartitionConfig{} + } + if err := m.PartitionConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipService(dAtA[iNdEx:]) @@ -6110,6 +6523,42 @@ func (m *AddDecisionTaskResponse) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: AddDecisionTaskResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PartitionConfig", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthService + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PartitionConfig == nil { + m.PartitionConfig = &TaskListPartitionConfig{} + } + if err := m.PartitionConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipService(dAtA[iNdEx:]) @@ -6899,6 +7348,42 @@ func (m *AddActivityTaskResponse) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: AddActivityTaskResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PartitionConfig", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthService + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PartitionConfig == nil { + m.PartitionConfig = &TaskListPartitionConfig{} + } + if err := m.PartitionConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipService(dAtA[iNdEx:]) diff --git a/.gen/proto/matching/v1/service.pb.yarpc.go b/.gen/proto/matching/v1/service.pb.yarpc.go index d4af1deaf93..ea7499363c9 100644 --- a/.gen/proto/matching/v1/service.pb.yarpc.go +++ b/.gen/proto/matching/v1/service.pb.yarpc.go @@ -705,137 +705,143 @@ var ( var yarpcFileDescriptorClosure826e827d3aabf7fc = [][]byte{ // uber/cadence/matching/v1/service.proto []byte{ - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5a, 0xdd, 0x6e, 0xdb, 0xc8, - 0xf5, 0x07, 0xfd, 0x25, 0xeb, 0xc8, 0x96, 0x9d, 0x49, 0xd6, 0xa1, 0x95, 0x38, 0x76, 0xb4, 0xff, - 0xdd, 0xf5, 0xbf, 0xd8, 0xd2, 0x6b, 0xef, 0x26, 0xcd, 0x26, 0x28, 0x0a, 0x7f, 0x26, 0x2a, 0x9a, - 0x26, 0x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, 0x94, 0x3f, 0x18, 0x47, 0x79, 0xe6, 0x05, - 0x97, 0x92, 0xf6, 0xbe, 0x8a, 0xb6, 0xe5, 0x52, 0x16, 0xa4, 0xca, 0xfd, 0x5f, 0x8e, 0x84, 0xb6, - 0x70, 0x44, 0x9c, 0x61, 0xaa, 0x0f, 0x0a, 0xa8, 0xf2, 0xb7, 0xa8, 0xff, 0x5b, 0x83, 0xda, 0xcb, - 0xc0, 0xf3, 0x4e, 0x82, 0xe8, 0x88, 0xd8, 0x2e, 0x75, 0x03, 0xff, 0x14, 0xd3, 0x0b, 0x93, 0xbc, - 0xed, 0x10, 0xca, 0x50, 0x03, 0x4a, 0x51, 0xfc, 0x53, 0xd7, 0xb6, 0xb4, 0xed, 0xca, 0xde, 0x8e, - 0x91, 0x73, 0x2c, 0x0e, 0x5d, 0xa3, 0xbb, 0x6b, 0x14, 0x23, 0x98, 0x09, 0x3f, 0xba, 0x03, 0x65, - 0x27, 0x68, 0x63, 0xd7, 0xb7, 0x5c, 0x47, 0x9f, 0xd9, 0xd2, 0xb6, 0xcb, 0xe6, 0x62, 0xbc, 0xd1, - 0x70, 0xf8, 0x61, 0x18, 0x78, 0x1e, 0x89, 0xf8, 0xe1, 0x6c, 0x7c, 0x18, 0x6f, 0x34, 0x1c, 0xf4, - 0x01, 0x54, 0xcf, 0x82, 0xe8, 0x12, 0x47, 0x0e, 0x71, 0xac, 0xb3, 0x28, 0x68, 0xeb, 0x73, 0x82, - 0x62, 0x39, 0xdd, 0x3d, 0x89, 0x82, 0x36, 0xfa, 0x08, 0x56, 0x5c, 0x1a, 0x78, 0x22, 0x96, 0xac, - 0xf3, 0x28, 0xe8, 0x84, 0xfa, 0xbc, 0xa0, 0xab, 0xa6, 0xdb, 0x4f, 0xf9, 0x6e, 0xfd, 0xef, 0x65, - 0xb8, 0xa3, 0xd4, 0x98, 0x86, 0x81, 0x4f, 0x09, 0xda, 0x00, 0xe0, 0x56, 0xb2, 0x58, 0x70, 0x41, - 0x7c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 0xce, 0x89, 0x1f, 0xff, 0x73, 0x22, 0xfb, 0xe7, - 0x8d, 0x27, 0xc9, 0xef, 0xee, 0x6e, 0x73, 0x41, 0x9c, 0x7e, 0xfa, 0xdf, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x81, 0x2b, 0xa0, 0xe7, 0xea, 0x21, 0x00, 0x00, + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5a, 0x5b, 0x6f, 0xdb, 0xc8, + 0x15, 0x06, 0x7d, 0x93, 0x75, 0x64, 0xcb, 0xce, 0x24, 0xeb, 0x30, 0xca, 0xcd, 0xd1, 0x76, 0x77, + 0xdd, 0x62, 0x4b, 0xc7, 0xde, 0x4d, 0x9a, 0x4d, 0x50, 0x14, 0xbe, 0x26, 0x2a, 0x9a, 0x26, 0xcb, + 0xb8, 0x59, 0xa0, 0x58, 0x84, 0x18, 0x91, 0x63, 0x8b, 0xb5, 0x44, 0x32, 0x9c, 0xa1, 0xbc, 0xea, + 0x43, 0x1f, 0x8a, 0xb6, 0x28, 0xd0, 0xb7, 0xa2, 0xfd, 0x05, 0xdd, 0xc7, 0xfe, 0xa0, 0x02, 0x8b, + 0x3e, 0xf6, 0xa1, 0x8f, 0xed, 0x2f, 0x28, 0x66, 0x38, 0xa4, 0x48, 0x69, 0xa8, 0x8b, 0xed, 0xec, + 0xf6, 0xcd, 0x33, 0x73, 0xee, 0x73, 0xce, 0xf9, 0xce, 0xd0, 0x82, 0x0f, 0xa3, 0x26, 0x09, 0x37, + 0x6d, 0xec, 0x10, 0xcf, 0x26, 0x9b, 0x1d, 0xcc, 0xec, 0x96, 0xeb, 0x9d, 0x6c, 0x76, 0xb7, 0x36, + 0x29, 0x09, 0xbb, 0xae, 0x4d, 0x8c, 0x20, 0xf4, 0x99, 0x8f, 0x74, 0x4e, 0x67, 0x48, 0x3a, 0x23, + 0xa1, 0x33, 0xba, 0x5b, 0xb5, 0x3b, 0x27, 0x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 0x8b, 0xcf, 0xd3, 0x40, 0x1f, 0xc4, 0xa7, + 0xe8, 0x11, 0xcc, 0x8b, 0x56, 0xa4, 0x83, 0x88, 0x49, 0x7d, 0x64, 0x9c, 0x3f, 0xe7, 0x94, 0x66, + 0xcc, 0x80, 0x4c, 0x58, 0x76, 0x64, 0xde, 0x58, 0xae, 0x77, 0xec, 0xeb, 0x15, 0x21, 0xe1, 0x87, + 0x79, 0x09, 0x71, 0x2b, 0xe0, 0x42, 0x8e, 0x42, 0xec, 0x51, 0x97, 0x78, 0x2c, 0xc9, 0xb6, 0x86, + 0x77, 0xec, 0x9b, 0x4b, 0x4e, 0x66, 0x85, 0xde, 0xc0, 0xad, 0xe1, 0xa4, 0xb2, 0x44, 0x1a, 0xf2, + 0x2e, 0xa2, 0x2f, 0x09, 0x15, 0xb7, 0x95, 0x46, 0x26, 0x7d, 0xc5, 0xbc, 0x31, 0x94, 0x55, 0xc9, + 0x11, 0xef, 0x24, 0x71, 0xd0, 0x79, 0xef, 0x22, 0x56, 0xd2, 0x6f, 0x96, 0xe3, 0x4e, 0x22, 0x8e, + 0x5e, 0xf1, 0x93, 0xd7, 0xb2, 0xf3, 0xdc, 0x83, 0xa5, 0x66, 0x88, 0x3d, 0xbb, 0x25, 0xab, 0xa0, + 0x2a, 0xaa, 0xa0, 0x12, 0xef, 0xc5, 0x75, 0xb0, 0x03, 0x55, 0x6a, 0xb7, 0x88, 0x13, 0xb5, 0x89, + 0x63, 0x71, 0xf0, 0xd0, 0x57, 0x84, 0x91, 0xb5, 0xa1, 0xec, 0x3a, 0x4a, 0x90, 0xc5, 0x5c, 0x4e, + 0x39, 0xf8, 0x1e, 0xfa, 0x31, 0x2c, 0x25, 0x39, 0x25, 0x04, 0xac, 0x8e, 0x15, 0x50, 0x91, 0xf4, + 0x82, 0xfd, 0x4b, 0x28, 0xf1, 0x1b, 0x71, 0x09, 0xd5, 0xaf, 0xac, 0xcf, 0x6e, 0x54, 0xb6, 0x77, + 0x8d, 0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bf, 0xbb, 0x5b, 0xcd, + 0x05, 0x71, 0xfa, 0xc9, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0xb2, 0xac, 0xe9, 0x33, 0xfa, 0x23, + 0x00, 0x00, }, // google/protobuf/duration.proto []byte{ diff --git a/client/matching/client.go b/client/matching/client.go index 2023996c093..f7113d436ae 100644 --- a/client/matching/client.go +++ b/client/matching/client.go @@ -55,7 +55,7 @@ func (c *clientImpl) AddActivityTask( ctx context.Context, request *types.AddActivityTaskRequest, opts ...yarpc.CallOption, -) error { +) (*types.AddActivityTaskResponse, error) { partition := c.loadBalancer.PickWritePartition( request.GetDomainUUID(), *request.GetTaskList(), @@ -65,7 +65,7 @@ func (c *clientImpl) AddActivityTask( request.TaskList.Name = partition peer, err := c.peerResolver.FromTaskList(request.TaskList.GetName()) if err != nil { - return err + return nil, err } return c.client.AddActivityTask(ctx, request, append(opts, yarpc.WithShardKey(peer))...) } @@ -74,7 +74,7 @@ func (c *clientImpl) AddDecisionTask( ctx context.Context, request *types.AddDecisionTaskRequest, opts ...yarpc.CallOption, -) error { +) (*types.AddDecisionTaskResponse, error) { partition := c.loadBalancer.PickWritePartition( request.GetDomainUUID(), *request.GetTaskList(), @@ -84,7 +84,7 @@ func (c *clientImpl) AddDecisionTask( request.TaskList.Name = partition peer, err := c.peerResolver.FromTaskList(request.TaskList.GetName()) if err != nil { - return err + return nil, err } return c.client.AddDecisionTask(ctx, request, append(opts, yarpc.WithShardKey(peer))...) } diff --git a/client/matching/client_test.go b/client/matching/client_test.go index a2dc208ab95..76dd045e466 100644 --- a/client/matching/client_test.go +++ b/client/matching/client_test.go @@ -58,74 +58,6 @@ func TestClient_withoutResponse(t *testing.T) { mock func(*MockPeerResolver, *MockLoadBalancer, *MockClient) wantError bool }{ - { - name: "AddActivityTask", - op: func(c Client) error { - return c.AddActivityTask(context.Background(), testAddActivityTaskRequest()) - }, - mock: func(p *MockPeerResolver, balancer *MockLoadBalancer, c *MockClient) { - balancer.EXPECT().PickWritePartition(_testDomainUUID, types.TaskList{Name: _testTaskList}, persistence.TaskListTypeActivity, "").Return(_testPartition) - p.EXPECT().FromTaskList(_testPartition).Return("peer0", nil) - c.EXPECT().AddActivityTask(gomock.Any(), gomock.Any(), []yarpc.CallOption{yarpc.WithShardKey("peer0")}).Return(nil) - }, - }, - { - name: "AddActivityTask - Error in resolving peer", - op: func(c Client) error { - return c.AddActivityTask(context.Background(), testAddActivityTaskRequest()) - }, - mock: func(p *MockPeerResolver, balancer *MockLoadBalancer, c *MockClient) { - balancer.EXPECT().PickWritePartition(_testDomainUUID, types.TaskList{Name: _testTaskList}, persistence.TaskListTypeActivity, "").Return(_testPartition) - p.EXPECT().FromTaskList(_testPartition).Return("peer0", assert.AnError) - }, - wantError: true, - }, - { - name: "AddActivityTask - Error while adding activity task", - op: func(c Client) error { - return c.AddActivityTask(context.Background(), testAddActivityTaskRequest()) - }, - mock: func(p *MockPeerResolver, balancer *MockLoadBalancer, c *MockClient) { - balancer.EXPECT().PickWritePartition(_testDomainUUID, types.TaskList{Name: _testTaskList}, persistence.TaskListTypeActivity, "").Return(_testPartition) - p.EXPECT().FromTaskList(_testPartition).Return("peer0", nil) - c.EXPECT().AddActivityTask(gomock.Any(), gomock.Any(), []yarpc.CallOption{yarpc.WithShardKey("peer0")}).Return(assert.AnError) - }, - wantError: true, - }, - { - name: "AddDecisionTask", - op: func(c Client) error { - return c.AddDecisionTask(context.Background(), testAddDecisionTaskRequest()) - }, - mock: func(p *MockPeerResolver, balancer *MockLoadBalancer, c *MockClient) { - balancer.EXPECT().PickWritePartition(_testDomainUUID, types.TaskList{Name: _testTaskList}, persistence.TaskListTypeDecision, "").Return(_testPartition) - p.EXPECT().FromTaskList(_testPartition).Return("peer0", nil) - c.EXPECT().AddDecisionTask(gomock.Any(), gomock.Any(), []yarpc.CallOption{yarpc.WithShardKey("peer0")}).Return(nil) - }, - }, - { - name: "AddDecisionTask - Error in resolving peer", - op: func(c Client) error { - return c.AddDecisionTask(context.Background(), testAddDecisionTaskRequest()) - }, - mock: func(p *MockPeerResolver, balancer *MockLoadBalancer, c *MockClient) { - balancer.EXPECT().PickWritePartition(_testDomainUUID, types.TaskList{Name: _testTaskList}, persistence.TaskListTypeDecision, "").Return(_testPartition) - p.EXPECT().FromTaskList(_testPartition).Return("peer0", assert.AnError) - }, - wantError: true, - }, - { - name: "AddDecisionTask - Error while adding decision task", - op: func(c Client) error { - return c.AddDecisionTask(context.Background(), testAddDecisionTaskRequest()) - }, - mock: func(p *MockPeerResolver, balancer *MockLoadBalancer, c *MockClient) { - balancer.EXPECT().PickWritePartition(_testDomainUUID, types.TaskList{Name: _testTaskList}, persistence.TaskListTypeDecision, "").Return(_testPartition) - p.EXPECT().FromTaskList(_testPartition).Return("peer0", nil) - c.EXPECT().AddDecisionTask(gomock.Any(), gomock.Any(), []yarpc.CallOption{yarpc.WithShardKey("peer0")}).Return(assert.AnError) - }, - wantError: true, - }, { name: "RespondQueryTaskCompleted", op: func(c Client) error { @@ -220,6 +152,76 @@ func TestClient_withResponse(t *testing.T) { want any wantError bool }{ + { + name: "AddActivityTask", + op: func(c Client) (any, error) { + return c.AddActivityTask(context.Background(), testAddActivityTaskRequest()) + }, + mock: func(p *MockPeerResolver, balancer *MockLoadBalancer, c *MockClient) { + balancer.EXPECT().PickWritePartition(_testDomainUUID, types.TaskList{Name: _testTaskList}, persistence.TaskListTypeActivity, "").Return(_testPartition) + p.EXPECT().FromTaskList(_testPartition).Return("peer0", nil) + c.EXPECT().AddActivityTask(gomock.Any(), gomock.Any(), []yarpc.CallOption{yarpc.WithShardKey("peer0")}).Return(&types.AddActivityTaskResponse{}, nil) + }, + want: &types.AddActivityTaskResponse{}, + }, + { + name: "AddActivityTask - Error in resolving peer", + op: func(c Client) (any, error) { + return c.AddActivityTask(context.Background(), testAddActivityTaskRequest()) + }, + mock: func(p *MockPeerResolver, balancer *MockLoadBalancer, c *MockClient) { + balancer.EXPECT().PickWritePartition(_testDomainUUID, types.TaskList{Name: _testTaskList}, persistence.TaskListTypeActivity, "").Return(_testPartition) + p.EXPECT().FromTaskList(_testPartition).Return("peer0", assert.AnError) + }, + wantError: true, + }, + { + name: "AddActivityTask - Error while adding activity task", + op: func(c Client) (any, error) { + return c.AddActivityTask(context.Background(), testAddActivityTaskRequest()) + }, + mock: func(p *MockPeerResolver, balancer *MockLoadBalancer, c *MockClient) { + balancer.EXPECT().PickWritePartition(_testDomainUUID, types.TaskList{Name: _testTaskList}, persistence.TaskListTypeActivity, "").Return(_testPartition) + p.EXPECT().FromTaskList(_testPartition).Return("peer0", nil) + c.EXPECT().AddActivityTask(gomock.Any(), gomock.Any(), []yarpc.CallOption{yarpc.WithShardKey("peer0")}).Return(nil, assert.AnError) + }, + wantError: true, + }, + { + name: "AddDecisionTask", + op: func(c Client) (any, error) { + return c.AddDecisionTask(context.Background(), testAddDecisionTaskRequest()) + }, + mock: func(p *MockPeerResolver, balancer *MockLoadBalancer, c *MockClient) { + balancer.EXPECT().PickWritePartition(_testDomainUUID, types.TaskList{Name: _testTaskList}, persistence.TaskListTypeDecision, "").Return(_testPartition) + p.EXPECT().FromTaskList(_testPartition).Return("peer0", nil) + c.EXPECT().AddDecisionTask(gomock.Any(), gomock.Any(), []yarpc.CallOption{yarpc.WithShardKey("peer0")}).Return(&types.AddDecisionTaskResponse{}, nil) + }, + want: &types.AddDecisionTaskResponse{}, + }, + { + name: "AddDecisionTask - Error in resolving peer", + op: func(c Client) (any, error) { + return c.AddDecisionTask(context.Background(), testAddDecisionTaskRequest()) + }, + mock: func(p *MockPeerResolver, balancer *MockLoadBalancer, c *MockClient) { + balancer.EXPECT().PickWritePartition(_testDomainUUID, types.TaskList{Name: _testTaskList}, persistence.TaskListTypeDecision, "").Return(_testPartition) + p.EXPECT().FromTaskList(_testPartition).Return("peer0", assert.AnError) + }, + wantError: true, + }, + { + name: "AddDecisionTask - Error while adding decision task", + op: func(c Client) (any, error) { + return c.AddDecisionTask(context.Background(), testAddDecisionTaskRequest()) + }, + mock: func(p *MockPeerResolver, balancer *MockLoadBalancer, c *MockClient) { + balancer.EXPECT().PickWritePartition(_testDomainUUID, types.TaskList{Name: _testTaskList}, persistence.TaskListTypeDecision, "").Return(_testPartition) + p.EXPECT().FromTaskList(_testPartition).Return("peer0", nil) + c.EXPECT().AddDecisionTask(gomock.Any(), gomock.Any(), []yarpc.CallOption{yarpc.WithShardKey("peer0")}).Return(nil, assert.AnError) + }, + wantError: true, + }, { name: "PollForActivityTask", op: func(c Client) (any, error) { diff --git a/client/matching/interface.go b/client/matching/interface.go index b5c76451387..bc43f6a453c 100644 --- a/client/matching/interface.go +++ b/client/matching/interface.go @@ -38,8 +38,8 @@ import ( // Client is the interface exposed by types service client type Client interface { - AddActivityTask(context.Context, *types.AddActivityTaskRequest, ...yarpc.CallOption) error - AddDecisionTask(context.Context, *types.AddDecisionTaskRequest, ...yarpc.CallOption) error + AddActivityTask(context.Context, *types.AddActivityTaskRequest, ...yarpc.CallOption) (*types.AddActivityTaskResponse, error) + AddDecisionTask(context.Context, *types.AddDecisionTaskRequest, ...yarpc.CallOption) (*types.AddDecisionTaskResponse, error) CancelOutstandingPoll(context.Context, *types.CancelOutstandingPollRequest, ...yarpc.CallOption) error DescribeTaskList(context.Context, *types.MatchingDescribeTaskListRequest, ...yarpc.CallOption) (*types.DescribeTaskListResponse, error) ListTaskListPartitions(context.Context, *types.MatchingListTaskListPartitionsRequest, ...yarpc.CallOption) (*types.ListTaskListPartitionsResponse, error) diff --git a/client/matching/interface_mock.go b/client/matching/interface_mock.go index 5887d0e8d5f..fccb6ba34e3 100644 --- a/client/matching/interface_mock.go +++ b/client/matching/interface_mock.go @@ -60,15 +60,16 @@ func (m *MockClient) EXPECT() *MockClientMockRecorder { } // AddActivityTask mocks base method. -func (m *MockClient) AddActivityTask(arg0 context.Context, arg1 *types.AddActivityTaskRequest, arg2 ...yarpc.CallOption) error { +func (m *MockClient) AddActivityTask(arg0 context.Context, arg1 *types.AddActivityTaskRequest, arg2 ...yarpc.CallOption) (*types.AddActivityTaskResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "AddActivityTask", varargs...) - ret0, _ := ret[0].(error) - return ret0 + ret0, _ := ret[0].(*types.AddActivityTaskResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 } // AddActivityTask indicates an expected call of AddActivityTask. @@ -79,15 +80,16 @@ func (mr *MockClientMockRecorder) AddActivityTask(arg0, arg1 interface{}, arg2 . } // AddDecisionTask mocks base method. -func (m *MockClient) AddDecisionTask(arg0 context.Context, arg1 *types.AddDecisionTaskRequest, arg2 ...yarpc.CallOption) error { +func (m *MockClient) AddDecisionTask(arg0 context.Context, arg1 *types.AddDecisionTaskRequest, arg2 ...yarpc.CallOption) (*types.AddDecisionTaskResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "AddDecisionTask", varargs...) - ret0, _ := ret[0].(error) - return ret0 + ret0, _ := ret[0].(*types.AddDecisionTaskResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 } // AddDecisionTask indicates an expected call of AddDecisionTask. diff --git a/client/templates/thrift.tmpl b/client/templates/thrift.tmpl index c36157991e0..f3d40adc3ee 100644 --- a/client/templates/thrift.tmpl +++ b/client/templates/thrift.tmpl @@ -18,6 +18,12 @@ import ( func (g {{$decorator}}) {{$method.Declaration}} { {{- if eq $method.Name "CountDLQMessages"}} return nil, thrift.ToError(&types.BadRequestError{Message: "Feature not supported on TChannel"}) + {{- else if or (eq $method.Name "AddDecisionTask") (eq $method.Name "AddActivityTask")}} + {{(index $method.Results 1).Name}} = g.c.{{$method.Name}}({{(index $method.Params 0).Name}}, thrift.From{{$prefix}}{{$Request}}({{(index $method.Params 1).Name}}), {{(index $method.Params 2).Pass}}) + if {{(index $method.Results 1).Name}} != nil { + return nil, {{(index $method.Results 1).Name}} + } + return &types.{{$method.Name}}Response{}, nil {{- else}} {{- if eq (len $method.Params) 2}} {{- if eq (len $method.Results) 1}} diff --git a/client/wrappers/errorinjectors/matching_generated.go b/client/wrappers/errorinjectors/matching_generated.go index 161d8229863..9ca509b9e76 100644 --- a/client/wrappers/errorinjectors/matching_generated.go +++ b/client/wrappers/errorinjectors/matching_generated.go @@ -62,11 +62,11 @@ func NewMatchingClient(client matching.Client, errorRate float64, logger log.Log } } -func (c *matchingClient) AddActivityTask(ctx context.Context, ap1 *types.AddActivityTaskRequest, p1 ...yarpc.CallOption) (err error) { +func (c *matchingClient) AddActivityTask(ctx context.Context, ap1 *types.AddActivityTaskRequest, p1 ...yarpc.CallOption) (ap2 *types.AddActivityTaskResponse, err error) { fakeErr := c.fakeErrFn(c.errorRate) var forwardCall bool if forwardCall = c.forwardCallFn(fakeErr); forwardCall { - err = c.client.AddActivityTask(ctx, ap1, p1...) + ap2, err = c.client.AddActivityTask(ctx, ap1, p1...) } if fakeErr != nil { @@ -82,11 +82,11 @@ func (c *matchingClient) AddActivityTask(ctx context.Context, ap1 *types.AddActi return } -func (c *matchingClient) AddDecisionTask(ctx context.Context, ap1 *types.AddDecisionTaskRequest, p1 ...yarpc.CallOption) (err error) { +func (c *matchingClient) AddDecisionTask(ctx context.Context, ap1 *types.AddDecisionTaskRequest, p1 ...yarpc.CallOption) (ap2 *types.AddDecisionTaskResponse, err error) { fakeErr := c.fakeErrFn(c.errorRate) var forwardCall bool if forwardCall = c.forwardCallFn(fakeErr); forwardCall { - err = c.client.AddDecisionTask(ctx, ap1, p1...) + ap2, err = c.client.AddDecisionTask(ctx, ap1, p1...) } if fakeErr != nil { diff --git a/client/wrappers/grpc/matching_generated.go b/client/wrappers/grpc/matching_generated.go index fc1eed13446..c940c071afc 100644 --- a/client/wrappers/grpc/matching_generated.go +++ b/client/wrappers/grpc/matching_generated.go @@ -35,14 +35,14 @@ import ( "github.com/uber/cadence/common/types/mapper/proto" ) -func (g matchingClient) AddActivityTask(ctx context.Context, ap1 *types.AddActivityTaskRequest, p1 ...yarpc.CallOption) (err error) { - _, err = g.c.AddActivityTask(ctx, proto.FromMatchingAddActivityTaskRequest(ap1), p1...) - return proto.ToError(err) +func (g matchingClient) AddActivityTask(ctx context.Context, ap1 *types.AddActivityTaskRequest, p1 ...yarpc.CallOption) (ap2 *types.AddActivityTaskResponse, err error) { + response, err := g.c.AddActivityTask(ctx, proto.FromMatchingAddActivityTaskRequest(ap1), p1...) + return proto.ToMatchingAddActivityTaskResponse(response), proto.ToError(err) } -func (g matchingClient) AddDecisionTask(ctx context.Context, ap1 *types.AddDecisionTaskRequest, p1 ...yarpc.CallOption) (err error) { - _, err = g.c.AddDecisionTask(ctx, proto.FromMatchingAddDecisionTaskRequest(ap1), p1...) - return proto.ToError(err) +func (g matchingClient) AddDecisionTask(ctx context.Context, ap1 *types.AddDecisionTaskRequest, p1 ...yarpc.CallOption) (ap2 *types.AddDecisionTaskResponse, err error) { + response, err := g.c.AddDecisionTask(ctx, proto.FromMatchingAddDecisionTaskRequest(ap1), p1...) + return proto.ToMatchingAddDecisionTaskResponse(response), proto.ToError(err) } func (g matchingClient) CancelOutstandingPoll(ctx context.Context, cp1 *types.CancelOutstandingPollRequest, p1 ...yarpc.CallOption) (err error) { diff --git a/client/wrappers/metered/matching_generated.go b/client/wrappers/metered/matching_generated.go index 55ad7dc8429..d191b7326d8 100644 --- a/client/wrappers/metered/matching_generated.go +++ b/client/wrappers/metered/matching_generated.go @@ -52,32 +52,32 @@ func NewMatchingClient(client matching.Client, metricsClient metrics.Client) mat } } -func (c *matchingClient) AddActivityTask(ctx context.Context, ap1 *types.AddActivityTaskRequest, p1 ...yarpc.CallOption) (err error) { +func (c *matchingClient) AddActivityTask(ctx context.Context, ap1 *types.AddActivityTaskRequest, p1 ...yarpc.CallOption) (ap2 *types.AddActivityTaskResponse, err error) { c.metricsClient.IncCounter(metrics.MatchingClientAddActivityTaskScope, metrics.CadenceClientRequests) c.emitForwardedFromStats(metrics.MatchingClientAddActivityTaskScope, ap1) sw := c.metricsClient.StartTimer(metrics.MatchingClientAddActivityTaskScope, metrics.CadenceClientLatency) - err = c.client.AddActivityTask(ctx, ap1, p1...) + ap2, err = c.client.AddActivityTask(ctx, ap1, p1...) sw.Stop() if err != nil { c.metricsClient.IncCounter(metrics.MatchingClientAddActivityTaskScope, metrics.CadenceClientFailures) } - return err + return ap2, err } -func (c *matchingClient) AddDecisionTask(ctx context.Context, ap1 *types.AddDecisionTaskRequest, p1 ...yarpc.CallOption) (err error) { +func (c *matchingClient) AddDecisionTask(ctx context.Context, ap1 *types.AddDecisionTaskRequest, p1 ...yarpc.CallOption) (ap2 *types.AddDecisionTaskResponse, err error) { c.metricsClient.IncCounter(metrics.MatchingClientAddDecisionTaskScope, metrics.CadenceClientRequests) c.emitForwardedFromStats(metrics.MatchingClientAddDecisionTaskScope, ap1) sw := c.metricsClient.StartTimer(metrics.MatchingClientAddDecisionTaskScope, metrics.CadenceClientLatency) - err = c.client.AddDecisionTask(ctx, ap1, p1...) + ap2, err = c.client.AddDecisionTask(ctx, ap1, p1...) sw.Stop() if err != nil { c.metricsClient.IncCounter(metrics.MatchingClientAddDecisionTaskScope, metrics.CadenceClientFailures) } - return err + return ap2, err } func (c *matchingClient) CancelOutstandingPoll(ctx context.Context, cp1 *types.CancelOutstandingPollRequest, p1 ...yarpc.CallOption) (err error) { diff --git a/client/wrappers/metered/metered_test.go b/client/wrappers/metered/metered_test.go index 650816270be..108aebc8834 100644 --- a/client/wrappers/metered/metered_test.go +++ b/client/wrappers/metered/metered_test.go @@ -88,13 +88,13 @@ func TestMatching(t *testing.T) { metricsClient := metrics.NewClient(testScope, metrics.ServiceIdx(0)) clientMock.EXPECT().AddActivityTask(gomock.Any(), gomock.Any(), gomock.Any()). - Return(nil).Times(1) + Return(&types.AddActivityTaskResponse{}, nil).Times(1) retryableClient := NewMatchingClient( clientMock, metricsClient) - err := retryableClient.AddActivityTask(context.Background(), &types.AddActivityTaskRequest{ + _, err := retryableClient.AddActivityTask(context.Background(), &types.AddActivityTaskRequest{ ForwardedFrom: "test", TaskList: &types.TaskList{Name: "test"}, }) @@ -132,13 +132,13 @@ func TestMatching(t *testing.T) { metricsClient := metrics.NewClient(testScope, metrics.ServiceIdx(0)) clientMock.EXPECT().AddActivityTask(gomock.Any(), gomock.Any(), gomock.Any()). - Return(nil).Times(1) + Return(&types.AddActivityTaskResponse{}, nil).Times(1) retryableClient := NewMatchingClient( clientMock, metricsClient) - err := retryableClient.AddActivityTask(context.Background(), &types.AddActivityTaskRequest{ + _, err := retryableClient.AddActivityTask(context.Background(), &types.AddActivityTaskRequest{ ForwardedFrom: "", TaskList: &types.TaskList{Name: "test"}, }) @@ -153,13 +153,13 @@ func TestMatching(t *testing.T) { metricsClient := metrics.NewClient(testScope, metrics.ServiceIdx(0)) clientMock.EXPECT().AddActivityTask(gomock.Any(), gomock.Any(), gomock.Any()). - Return(nil).Times(1) + Return(&types.AddActivityTaskResponse{}, nil).Times(1) retryableClient := NewMatchingClient( clientMock, metricsClient) - err := retryableClient.AddActivityTask(context.Background(), &types.AddActivityTaskRequest{ + _, err := retryableClient.AddActivityTask(context.Background(), &types.AddActivityTaskRequest{ ForwardedFrom: "", TaskList: &types.TaskList{Name: common.ReservedTaskListPrefix + "test"}, }) diff --git a/client/wrappers/retryable/matching_generated.go b/client/wrappers/retryable/matching_generated.go index 1c9960e2c27..656e6cbcd93 100644 --- a/client/wrappers/retryable/matching_generated.go +++ b/client/wrappers/retryable/matching_generated.go @@ -53,18 +53,26 @@ func NewMatchingClient(client matching.Client, policy backoff.RetryPolicy, isRet } } -func (c *matchingClient) AddActivityTask(ctx context.Context, ap1 *types.AddActivityTaskRequest, p1 ...yarpc.CallOption) (err error) { +func (c *matchingClient) AddActivityTask(ctx context.Context, ap1 *types.AddActivityTaskRequest, p1 ...yarpc.CallOption) (ap2 *types.AddActivityTaskResponse, err error) { + var resp *types.AddActivityTaskResponse op := func() error { - return c.client.AddActivityTask(ctx, ap1, p1...) + var err error + resp, err = c.client.AddActivityTask(ctx, ap1, p1...) + return err } - return c.throttleRetry.Do(ctx, op) + err = c.throttleRetry.Do(ctx, op) + return resp, err } -func (c *matchingClient) AddDecisionTask(ctx context.Context, ap1 *types.AddDecisionTaskRequest, p1 ...yarpc.CallOption) (err error) { +func (c *matchingClient) AddDecisionTask(ctx context.Context, ap1 *types.AddDecisionTaskRequest, p1 ...yarpc.CallOption) (ap2 *types.AddDecisionTaskResponse, err error) { + var resp *types.AddDecisionTaskResponse op := func() error { - return c.client.AddDecisionTask(ctx, ap1, p1...) + var err error + resp, err = c.client.AddDecisionTask(ctx, ap1, p1...) + return err } - return c.throttleRetry.Do(ctx, op) + err = c.throttleRetry.Do(ctx, op) + return resp, err } func (c *matchingClient) CancelOutstandingPoll(ctx context.Context, cp1 *types.CancelOutstandingPollRequest, p1 ...yarpc.CallOption) (err error) { diff --git a/client/wrappers/thrift/matching_generated.go b/client/wrappers/thrift/matching_generated.go index ad9035f8937..0b64f7874a0 100644 --- a/client/wrappers/thrift/matching_generated.go +++ b/client/wrappers/thrift/matching_generated.go @@ -35,14 +35,20 @@ import ( "github.com/uber/cadence/common/types/mapper/thrift" ) -func (g matchingClient) AddActivityTask(ctx context.Context, ap1 *types.AddActivityTaskRequest, p1 ...yarpc.CallOption) (err error) { +func (g matchingClient) AddActivityTask(ctx context.Context, ap1 *types.AddActivityTaskRequest, p1 ...yarpc.CallOption) (ap2 *types.AddActivityTaskResponse, err error) { err = g.c.AddActivityTask(ctx, thrift.FromMatchingAddActivityTaskRequest(ap1), p1...) - return thrift.ToError(err) + if err != nil { + return nil, err + } + return &types.AddActivityTaskResponse{}, nil } -func (g matchingClient) AddDecisionTask(ctx context.Context, ap1 *types.AddDecisionTaskRequest, p1 ...yarpc.CallOption) (err error) { +func (g matchingClient) AddDecisionTask(ctx context.Context, ap1 *types.AddDecisionTaskRequest, p1 ...yarpc.CallOption) (ap2 *types.AddDecisionTaskResponse, err error) { err = g.c.AddDecisionTask(ctx, thrift.FromMatchingAddDecisionTaskRequest(ap1), p1...) - return thrift.ToError(err) + if err != nil { + return nil, err + } + return &types.AddDecisionTaskResponse{}, nil } func (g matchingClient) CancelOutstandingPoll(ctx context.Context, cp1 *types.CancelOutstandingPollRequest, p1 ...yarpc.CallOption) (err error) { diff --git a/client/wrappers/timeout/matching_generated.go b/client/wrappers/timeout/matching_generated.go index bc3e45ff83c..16ed25dc0aa 100644 --- a/client/wrappers/timeout/matching_generated.go +++ b/client/wrappers/timeout/matching_generated.go @@ -58,13 +58,13 @@ func NewMatchingClient( } } -func (c *matchingClient) AddActivityTask(ctx context.Context, ap1 *types.AddActivityTaskRequest, p1 ...yarpc.CallOption) (err error) { +func (c *matchingClient) AddActivityTask(ctx context.Context, ap1 *types.AddActivityTaskRequest, p1 ...yarpc.CallOption) (ap2 *types.AddActivityTaskResponse, err error) { ctx, cancel := createContext(ctx, c.timeout) defer cancel() return c.client.AddActivityTask(ctx, ap1, p1...) } -func (c *matchingClient) AddDecisionTask(ctx context.Context, ap1 *types.AddDecisionTaskRequest, p1 ...yarpc.CallOption) (err error) { +func (c *matchingClient) AddDecisionTask(ctx context.Context, ap1 *types.AddDecisionTaskRequest, p1 ...yarpc.CallOption) (ap2 *types.AddDecisionTaskResponse, err error) { ctx, cancel := createContext(ctx, c.timeout) defer cancel() return c.client.AddDecisionTask(ctx, ap1, p1...) diff --git a/common/types/mapper/proto/matching.go b/common/types/mapper/proto/matching.go index 784cc5eb54d..589797dc3fe 100644 --- a/common/types/mapper/proto/matching.go +++ b/common/types/mapper/proto/matching.go @@ -94,6 +94,42 @@ func ToMatchingAddDecisionTaskRequest(t *matchingv1.AddDecisionTaskRequest) *typ } } +func FromMatchingAddActivityTaskResponse(t *types.AddActivityTaskResponse) *matchingv1.AddActivityTaskResponse { + if t == nil { + return nil + } + return &matchingv1.AddActivityTaskResponse{ + PartitionConfig: FromTaskListPartitionConfig(t.PartitionConfig), + } +} + +func ToMatchingAddActivityTaskResponse(t *matchingv1.AddActivityTaskResponse) *types.AddActivityTaskResponse { + if t == nil { + return nil + } + return &types.AddActivityTaskResponse{ + PartitionConfig: ToTaskListPartitionConfig(t.PartitionConfig), + } +} + +func FromMatchingAddDecisionTaskResponse(t *types.AddDecisionTaskResponse) *matchingv1.AddDecisionTaskResponse { + if t == nil { + return nil + } + return &matchingv1.AddDecisionTaskResponse{ + PartitionConfig: FromTaskListPartitionConfig(t.PartitionConfig), + } +} + +func ToMatchingAddDecisionTaskResponse(t *matchingv1.AddDecisionTaskResponse) *types.AddDecisionTaskResponse { + if t == nil { + return nil + } + return &types.AddDecisionTaskResponse{ + PartitionConfig: ToTaskListPartitionConfig(t.PartitionConfig), + } +} + func FromActivityTaskDispatchInfo(t *types.ActivityTaskDispatchInfo) *matchingv1.ActivityTaskDispatchInfo { if t == nil { return nil @@ -324,6 +360,28 @@ func ToMatchingPollForActivityTaskRequest(t *matchingv1.PollForActivityTaskReque } } +func FromTaskListPartitionConfig(t *types.TaskListPartitionConfig) *matchingv1.TaskListPartitionConfig { + if t == nil { + return nil + } + return &matchingv1.TaskListPartitionConfig{ + Version: t.Version, + NumReadPartitions: t.NumReadPartitions, + NumWritePartitions: t.NumWritePartitions, + } +} + +func ToTaskListPartitionConfig(t *matchingv1.TaskListPartitionConfig) *types.TaskListPartitionConfig { + if t == nil { + return nil + } + return &types.TaskListPartitionConfig{ + Version: t.Version, + NumReadPartitions: t.NumReadPartitions, + NumWritePartitions: t.NumWritePartitions, + } +} + func FromMatchingPollForActivityTaskResponse(t *types.MatchingPollForActivityTaskResponse) *matchingv1.PollForActivityTaskResponse { if t == nil { return nil @@ -345,6 +403,7 @@ func FromMatchingPollForActivityTaskResponse(t *types.MatchingPollForActivityTas WorkflowType: FromWorkflowType(t.WorkflowType), WorkflowDomain: t.WorkflowDomain, Header: FromHeader(t.Header), + PartitionConfig: FromTaskListPartitionConfig(t.PartitionConfig), } } @@ -369,6 +428,7 @@ func ToMatchingPollForActivityTaskResponse(t *matchingv1.PollForActivityTaskResp WorkflowType: ToWorkflowType(t.WorkflowType), WorkflowDomain: t.WorkflowDomain, Header: ToHeader(t.Header), + PartitionConfig: ToTaskListPartitionConfig(t.PartitionConfig), } } @@ -421,6 +481,7 @@ func FromMatchingPollForDecisionTaskResponse(t *types.MatchingPollForDecisionTas StartedTime: unixNanoToTime(t.StartedTimestamp), Queries: FromWorkflowQueryMap(t.Queries), TotalHistoryBytes: t.TotalHistoryBytes, + PartitionConfig: FromTaskListPartitionConfig(t.PartitionConfig), } } @@ -447,6 +508,7 @@ func ToMatchingPollForDecisionTaskResponse(t *matchingv1.PollForDecisionTaskResp StartedTimestamp: timeToUnixNano(t.StartedTime), Queries: ToWorkflowQueryMap(t.Queries), TotalHistoryBytes: t.TotalHistoryBytes, + PartitionConfig: ToTaskListPartitionConfig(t.PartitionConfig), } } diff --git a/common/types/mapper/proto/matching_test.go b/common/types/mapper/proto/matching_test.go index ea47bb1a8e5..92f68547fd9 100644 --- a/common/types/mapper/proto/matching_test.go +++ b/common/types/mapper/proto/matching_test.go @@ -41,6 +41,18 @@ func TestMatchingAddDecisionTaskRequest(t *testing.T) { } } +func TestMatchingAddActivityTaskResponse(t *testing.T) { + for _, item := range []*types.AddActivityTaskResponse{nil, {}, &testdata.MatchingAddActivityTaskResponse} { + assert.Equal(t, item, ToMatchingAddActivityTaskResponse(FromMatchingAddActivityTaskResponse(item))) + } +} + +func TestMatchingAddDecisionTaskResponse(t *testing.T) { + for _, item := range []*types.AddDecisionTaskResponse{nil, {}, &testdata.MatchingAddDecisionTaskResponse} { + assert.Equal(t, item, ToMatchingAddDecisionTaskResponse(FromMatchingAddDecisionTaskResponse(item))) + } +} + func TestMatchingCancelOutstandingPollRequest(t *testing.T) { for _, item := range []*types.CancelOutstandingPollRequest{nil, {}, &testdata.MatchingCancelOutstandingPollRequest} { assert.Equal(t, item, ToMatchingCancelOutstandingPollRequest(FromMatchingCancelOutstandingPollRequest(item))) @@ -89,6 +101,12 @@ func TestMatchingPollForActivityTaskResponse(t *testing.T) { } } +func TestTaskListPartitionConfig(t *testing.T) { + for _, item := range []*types.TaskListPartitionConfig{nil, {}, &testdata.TaskListPartitionConfig} { + assert.Equal(t, item, ToTaskListPartitionConfig(FromTaskListPartitionConfig(item))) + } +} + func TestMatchingPollForDecisionTaskRequest(t *testing.T) { for _, item := range []*types.MatchingPollForDecisionTaskRequest{nil, {}, &testdata.MatchingPollForDecisionTaskRequest} { assert.Equal(t, item, ToMatchingPollForDecisionTaskRequest(FromMatchingPollForDecisionTaskRequest(item))) diff --git a/common/types/mapper/thrift/matching_test.go b/common/types/mapper/thrift/matching_test.go index 83564d4fed5..95452af8f4b 100644 --- a/common/types/mapper/thrift/matching_test.go +++ b/common/types/mapper/thrift/matching_test.go @@ -256,7 +256,8 @@ func TestMatchingPollForDecisionResponse(t *testing.T) { thriftObj := FromMatchingPollForDecisionTaskResponse(tc.input) roundTripObj := ToMatchingPollForDecisionTaskResponse(thriftObj) opt := cmpopts.IgnoreFields(types.WorkflowExecutionStartedEventAttributes{}, "ParentWorkflowDomainID") - if diff := cmp.Diff(tc.input, roundTripObj, opt); diff != "" { + opt2 := cmpopts.IgnoreFields(types.MatchingPollForDecisionTaskResponse{}, "PartitionConfig") + if diff := cmp.Diff(tc.input, roundTripObj, opt, opt2); diff != "" { t.Fatalf("Mismatch (-want +got):\n%s", diff) } } @@ -283,7 +284,10 @@ func TestMatchingPollForActivityTaskResponse(t *testing.T) { for _, tc := range testCases { thriftObj := FromMatchingPollForActivityTaskResponse(tc.input) roundTripObj := ToMatchingPollForActivityTaskResponse(thriftObj) - assert.Equal(t, tc.input, roundTripObj) + opt := cmpopts.IgnoreFields(types.MatchingPollForActivityTaskResponse{}, "PartitionConfig") + if diff := cmp.Diff(tc.input, roundTripObj, opt); diff != "" { + t.Fatalf("Mismatch (-want +got):\n%s", diff) + } } } diff --git a/common/types/matching.go b/common/types/matching.go index 9d6e016e295..fa538686d4c 100644 --- a/common/types/matching.go +++ b/common/types/matching.go @@ -199,6 +199,14 @@ func (v *AddDecisionTaskRequest) GetPartitionConfig() (o map[string]string) { return } +type AddActivityTaskResponse struct { + PartitionConfig *TaskListPartitionConfig +} + +type AddDecisionTaskResponse struct { + PartitionConfig *TaskListPartitionConfig +} + // CancelOutstandingPollRequest is an internal type (TBD...) type CancelOutstandingPollRequest struct { DomainUUID string `json:"domainUUID,omitempty"` @@ -410,6 +418,12 @@ func (v *MatchingPollForDecisionTaskRequest) GetIsolationGroup() (o string) { return } +type TaskListPartitionConfig struct { + Version int64 + NumReadPartitions int32 + NumWritePartitions int32 +} + // MatchingPollForDecisionTaskResponse is an internal type (TBD...) type MatchingPollForDecisionTaskResponse struct { TaskToken []byte `json:"taskToken,omitempty"` @@ -430,6 +444,7 @@ type MatchingPollForDecisionTaskResponse struct { StartedTimestamp *int64 `json:"startedTimestamp,omitempty"` Queries map[string]*WorkflowQuery `json:"queries,omitempty"` TotalHistoryBytes int64 `json:"currentHistorySize,omitempty"` + PartitionConfig *TaskListPartitionConfig } // GetWorkflowExecution is an internal getter (TBD...) @@ -498,6 +513,7 @@ type MatchingPollForActivityTaskResponse struct { WorkflowDomain string `json:"workflowDomain,omitempty"` Header *Header `json:"header,omitempty"` BacklogCountHint int64 `json:"backlogCountHint,omitempty"` + PartitionConfig *TaskListPartitionConfig } // MatchingQueryWorkflowRequest is an internal type (TBD...) diff --git a/common/types/testdata/service_matching.go b/common/types/testdata/service_matching.go index 4ab02b16754..db49bd79a7c 100644 --- a/common/types/testdata/service_matching.go +++ b/common/types/testdata/service_matching.go @@ -31,6 +31,11 @@ const ( ) var ( + TaskListPartitionConfig = types.TaskListPartitionConfig{ + Version: 1, + NumReadPartitions: 3, + NumWritePartitions: 2, + } MatchingAddActivityTaskRequest = types.AddActivityTaskRequest{ DomainUUID: DomainID, Execution: &WorkflowExecution, @@ -52,6 +57,12 @@ var ( ForwardedFrom: ForwardedFrom, PartitionConfig: PartitionConfig, } + MatchingAddActivityTaskResponse = types.AddActivityTaskResponse{ + PartitionConfig: &TaskListPartitionConfig, + } + MatchingAddDecisionTaskResponse = types.AddDecisionTaskResponse{ + PartitionConfig: &TaskListPartitionConfig, + } MatchingCancelOutstandingPollRequest = types.CancelOutstandingPollRequest{ DomainUUID: DomainID, TaskListType: common.Int32Ptr(int32(TaskListType)), @@ -98,6 +109,7 @@ var ( WorkflowType: &WorkflowType, WorkflowDomain: DomainName, Header: &Header, + PartitionConfig: &TaskListPartitionConfig, } MatchingPollForDecisionTaskRequest = types.MatchingPollForDecisionTaskRequest{ DomainUUID: DomainID, @@ -124,6 +136,7 @@ var ( ScheduledTimestamp: &Timestamp1, StartedTimestamp: &Timestamp2, Queries: WorkflowQueryMap, + PartitionConfig: &TaskListPartitionConfig, } MatchingQueryWorkflowRequest = types.MatchingQueryWorkflowRequest{ DomainUUID: DomainID, diff --git a/proto/internal/uber/cadence/matching/v1/service.proto b/proto/internal/uber/cadence/matching/v1/service.proto index 4b297083350..482b756ae5e 100644 --- a/proto/internal/uber/cadence/matching/v1/service.proto +++ b/proto/internal/uber/cadence/matching/v1/service.proto @@ -85,6 +85,12 @@ service MatchingAPI { rpc GetTaskListsByDomain(GetTaskListsByDomainRequest) returns (GetTaskListsByDomainResponse); } +message TaskListPartitionConfig { + int64 version = 1; + int32 num_read_partitions = 2; + int32 num_write_partitions = 3; +} + message PollForDecisionTaskRequest { api.v1.PollForDecisionTaskRequest request = 1; string domain_id = 2; @@ -112,6 +118,7 @@ message PollForDecisionTaskResponse { google.protobuf.Timestamp started_time = 16; map queries = 17; int64 total_history_bytes = 18; + TaskListPartitionConfig partition_config = 19; } message PollForActivityTaskRequest { @@ -139,6 +146,7 @@ message PollForActivityTaskResponse { api.v1.WorkflowType workflow_type = 14; string workflow_domain = 15; api.v1.Header header = 16; + TaskListPartitionConfig partition_config = 19; } message AddDecisionTaskRequest { @@ -153,6 +161,7 @@ message AddDecisionTaskRequest { } message AddDecisionTaskResponse { + TaskListPartitionConfig partition_config = 1; } message AddActivityTaskRequest { @@ -168,7 +177,6 @@ message AddActivityTaskRequest { map partition_config = 10; } - message ActivityTaskDispatchInfo { api.v1.HistoryEvent scheduled_event = 1; google.protobuf.Timestamp started_time = 2; @@ -180,6 +188,7 @@ message ActivityTaskDispatchInfo { } message AddActivityTaskResponse { + TaskListPartitionConfig partition_config = 1; } message QueryWorkflowRequest { @@ -242,4 +251,3 @@ message GetTaskListsByDomainResponse { map decision_task_list_map = 1; map activity_task_list_map = 2; } - diff --git a/service/history/execution/mutable_state_builder_methods_activity.go b/service/history/execution/mutable_state_builder_methods_activity.go index 5f0064a4a99..184d79b4323 100644 --- a/service/history/execution/mutable_state_builder_methods_activity.go +++ b/service/history/execution/mutable_state_builder_methods_activity.go @@ -290,7 +290,7 @@ func (e *mutableStateBuilder) tryDispatchActivityTask( metrics.WorkflowTypeTag(e.GetWorkflowType().Name), metrics.TaskListTag(ai.TaskList)) taggedScope.IncCounter(metrics.DecisionTypeScheduleActivityDispatchCounter) - err := e.shard.GetService().GetMatchingClient().AddActivityTask(ctx, &types.AddActivityTaskRequest{ + _, err := e.shard.GetService().GetMatchingClient().AddActivityTask(ctx, &types.AddActivityTaskRequest{ DomainUUID: e.executionInfo.DomainID, SourceDomainUUID: e.domainEntry.GetInfo().ID, Execution: &types.WorkflowExecution{ diff --git a/service/history/execution/mutable_state_builder_methods_activity_test.go b/service/history/execution/mutable_state_builder_methods_activity_test.go index 517158e2dec..ecb20bda5fa 100644 --- a/service/history/execution/mutable_state_builder_methods_activity_test.go +++ b/service/history/execution/mutable_state_builder_methods_activity_test.go @@ -60,7 +60,7 @@ func testMutableStateBuilder(t *testing.T) *mutableStateBuilder { mockShard.GetConfig().EnableRetryForChecksumFailure = func(domain string) bool { return true } logger := log.NewNoop() - mockShard.Resource.MatchingClient.EXPECT().AddActivityTask(gomock.Any(), gomock.Any()).Return(nil).AnyTimes() + mockShard.Resource.MatchingClient.EXPECT().AddActivityTask(gomock.Any(), gomock.Any()).Return(&types.AddActivityTaskResponse{}, nil).AnyTimes() mockShard.Resource.DomainCache.EXPECT().GetDomainID(constants.TestDomainName).Return(constants.TestDomainID, nil).AnyTimes() mockShard.Resource.DomainCache.EXPECT().GetDomainByID(constants.TestDomainID).Return(&cache.DomainCacheEntry{}, nil).AnyTimes() return newMutableStateBuilder(mockShard, logger, constants.TestLocalDomainEntry) diff --git a/service/history/task/timer_active_task_executor.go b/service/history/task/timer_active_task_executor.go index d1bc750e659..38fb9455747 100644 --- a/service/history/task/timer_active_task_executor.go +++ b/service/history/task/timer_active_task_executor.go @@ -681,7 +681,7 @@ func (t *timerActiveTaskExecutor) executeActivityRetryTimerTask( release(nil) // release earlier as we don't need the lock anymore - return t.shard.GetService().GetMatchingClient().AddActivityTask(ctx, &types.AddActivityTaskRequest{ + _, err = t.shard.GetService().GetMatchingClient().AddActivityTask(ctx, &types.AddActivityTaskRequest{ DomainUUID: targetDomainID, SourceDomainUUID: domainID, Execution: &execution, @@ -690,6 +690,7 @@ func (t *timerActiveTaskExecutor) executeActivityRetryTimerTask( ScheduleToStartTimeoutSeconds: common.Int32Ptr(scheduleToStartTimeout), PartitionConfig: mutableState.GetExecutionInfo().PartitionConfig, }) + return err } func (t *timerActiveTaskExecutor) executeWorkflowTimeoutTask( diff --git a/service/history/task/timer_active_task_executor_test.go b/service/history/task/timer_active_task_executor_test.go index 5276aaf6a5a..3cad1fa88f9 100644 --- a/service/history/task/timer_active_task_executor_test.go +++ b/service/history/task/timer_active_task_executor_test.go @@ -1069,7 +1069,7 @@ func (s *timerActiveTaskExecutorSuite) TestActivityRetryTimer_Fire() { ScheduleToStartTimeoutSeconds: common.Int32Ptr(activityInfo.ScheduleToStartTimeout), PartitionConfig: mutableState.GetExecutionInfo().PartitionConfig, }, - ).Return(nil).Times(1) + ).Return(&types.AddActivityTaskResponse{}, nil).Times(1) err = s.timerActiveTaskExecutor.Execute(timerTask, true) s.NoError(err) diff --git a/service/history/task/transfer_active_task_executor_test.go b/service/history/task/transfer_active_task_executor_test.go index 7f2f895e0c0..8fd65ae7e46 100644 --- a/service/history/task/transfer_active_task_executor_test.go +++ b/service/history/task/transfer_active_task_executor_test.go @@ -227,7 +227,7 @@ func (s *transferActiveTaskExecutorSuite) TestProcessActivityTask_Success() { persistenceMutableState, err := test.CreatePersistenceMutableState(mutableState, event.ID, event.Version) s.NoError(err) s.mockExecutionMgr.On("GetWorkflowExecution", mock.Anything, mock.Anything).Return(&persistence.GetWorkflowExecutionResponse{State: persistenceMutableState}, nil) - s.mockMatchingClient.EXPECT().AddActivityTask(gomock.Any(), createAddActivityTaskRequest(transferTask, ai, mutableState.GetExecutionInfo().PartitionConfig)).Return(nil).Times(1) + s.mockMatchingClient.EXPECT().AddActivityTask(gomock.Any(), createAddActivityTaskRequest(transferTask, ai, mutableState.GetExecutionInfo().PartitionConfig)).Return(&types.AddActivityTaskResponse{}, nil).Times(1) s.mockWFCache.EXPECT().AllowInternal(constants.TestDomainID, constants.TestWorkflowID).Return(true).Times(1) err = s.transferActiveTaskExecutor.Execute(transferTask, true) s.Nil(err) @@ -276,8 +276,8 @@ func (s *transferActiveTaskExecutorSuite) TestProcessActivityTask_Ratelimits() { s.mockExecutionMgr.On("GetWorkflowExecution", mock.Anything, mock.Anything).Return(&persistence.GetWorkflowExecutionResponse{State: persistenceMutableState}, nil) // expected calls to matching if task processing is allowed - s.mockMatchingClient.EXPECT().AddActivityTask(gomock.Any(), createAddActivityTaskRequest(transferTaskInRatelimitedDomain, ai, mutableState.GetExecutionInfo().PartitionConfig)).Return(nil).Times(1) - s.mockMatchingClient.EXPECT().AddActivityTask(gomock.Any(), createAddActivityTaskRequest(transferTask, ai, mutableState.GetExecutionInfo().PartitionConfig)).Return(nil).Times(2) + s.mockMatchingClient.EXPECT().AddActivityTask(gomock.Any(), createAddActivityTaskRequest(transferTaskInRatelimitedDomain, ai, mutableState.GetExecutionInfo().PartitionConfig)).Return(&types.AddActivityTaskResponse{}, nil).Times(1) + s.mockMatchingClient.EXPECT().AddActivityTask(gomock.Any(), createAddActivityTaskRequest(transferTask, ai, mutableState.GetExecutionInfo().PartitionConfig)).Return(&types.AddActivityTaskResponse{}, nil).Times(2) // ratelimiter enabled for _rateLimitedDomain and RPS still below allowed value so the task can be executed s.mockWFCache.EXPECT().AllowInternal(constants.TestRateLimitedDomainID, constants.TestWorkflowID).Return(true).Times(1) @@ -362,7 +362,7 @@ func (s *transferActiveTaskExecutorSuite) TestProcessDecisionTask_FirstDecision( s.NoError(err) s.mockExecutionMgr.On("GetWorkflowExecution", mock.Anything, mock.Anything).Return(&persistence.GetWorkflowExecutionResponse{State: persistenceMutableState}, nil) s.mockWFCache.EXPECT().AllowInternal(constants.TestDomainID, constants.TestWorkflowID).Return(true).Times(1) - s.mockMatchingClient.EXPECT().AddDecisionTask(gomock.Any(), createAddDecisionTaskRequest(transferTask, mutableState)).Return(nil).Times(1) + s.mockMatchingClient.EXPECT().AddDecisionTask(gomock.Any(), createAddDecisionTaskRequest(transferTask, mutableState)).Return(&types.AddDecisionTaskResponse{}, nil).Times(1) err = s.transferActiveTaskExecutor.Execute(transferTask, true) s.Nil(err) @@ -391,7 +391,7 @@ func (s *transferActiveTaskExecutorSuite) TestProcessDecisionTask_NonFirstDecisi s.NoError(err) s.mockExecutionMgr.On("GetWorkflowExecution", mock.Anything, mock.Anything).Return(&persistence.GetWorkflowExecutionResponse{State: persistenceMutableState}, nil) s.mockWFCache.EXPECT().AllowInternal(constants.TestDomainID, constants.TestWorkflowID).Return(true).Times(1) - s.mockMatchingClient.EXPECT().AddDecisionTask(gomock.Any(), createAddDecisionTaskRequest(transferTask, mutableState)).Return(nil).Times(1) + s.mockMatchingClient.EXPECT().AddDecisionTask(gomock.Any(), createAddDecisionTaskRequest(transferTask, mutableState)).Return(&types.AddDecisionTaskResponse{}, nil).Times(1) err = s.transferActiveTaskExecutor.Execute(transferTask, true) s.Nil(err) @@ -432,8 +432,8 @@ func (s *transferActiveTaskExecutorSuite) TestProcessDecisionTask_Ratelimits() { s.mockExecutionMgr.On("GetWorkflowExecution", mock.Anything, mock.Anything).Return(&persistence.GetWorkflowExecutionResponse{State: persistenceMutableState}, nil) // expected calls to matching if task processing is allowed - s.mockMatchingClient.EXPECT().AddDecisionTask(gomock.Any(), createAddDecisionTaskRequest(transferTask, mutableState)).Return(nil).Times(2) - s.mockMatchingClient.EXPECT().AddDecisionTask(gomock.Any(), createAddDecisionTaskRequest(rateLimitedTransferTask, mutableState)).Return(nil).Times(1) + s.mockMatchingClient.EXPECT().AddDecisionTask(gomock.Any(), createAddDecisionTaskRequest(transferTask, mutableState)).Return(&types.AddDecisionTaskResponse{}, nil).Times(2) + s.mockMatchingClient.EXPECT().AddDecisionTask(gomock.Any(), createAddDecisionTaskRequest(rateLimitedTransferTask, mutableState)).Return(&types.AddDecisionTaskResponse{}, nil).Times(1) // ratelimiter enabled for _rateLimitedDomain and RPS still below allowed value so the task can be executed s.mockWFCache.EXPECT().AllowInternal(constants.TestRateLimitedDomainID, constants.TestWorkflowID).Return(true).Times(1) @@ -485,7 +485,7 @@ func (s *transferActiveTaskExecutorSuite) TestProcessDecisionTask_Sticky_NonFirs s.NoError(err) s.mockExecutionMgr.On("GetWorkflowExecution", mock.Anything, mock.Anything).Return(&persistence.GetWorkflowExecutionResponse{State: persistenceMutableState}, nil) s.mockWFCache.EXPECT().AllowInternal(constants.TestDomainID, constants.TestWorkflowID).Return(true).Times(1) - s.mockMatchingClient.EXPECT().AddDecisionTask(gomock.Any(), createAddDecisionTaskRequest(transferTask, mutableState)).Return(nil).Times(1) + s.mockMatchingClient.EXPECT().AddDecisionTask(gomock.Any(), createAddDecisionTaskRequest(transferTask, mutableState)).Return(&types.AddDecisionTaskResponse{}, nil).Times(1) err = s.transferActiveTaskExecutor.Execute(transferTask, true) s.Nil(err) @@ -519,7 +519,7 @@ func (s *transferActiveTaskExecutorSuite) TestProcessDecisionTask_DecisionNotSti s.NoError(err) s.mockExecutionMgr.On("GetWorkflowExecution", mock.Anything, mock.Anything).Return(&persistence.GetWorkflowExecutionResponse{State: persistenceMutableState}, nil) s.mockWFCache.EXPECT().AllowInternal(constants.TestDomainID, constants.TestWorkflowID).Return(true).Times(1) - s.mockMatchingClient.EXPECT().AddDecisionTask(gomock.Any(), createAddDecisionTaskRequest(transferTask, mutableState)).Return(nil).Times(1) + s.mockMatchingClient.EXPECT().AddDecisionTask(gomock.Any(), createAddDecisionTaskRequest(transferTask, mutableState)).Return(&types.AddDecisionTaskResponse{}, nil).Times(1) err = s.transferActiveTaskExecutor.Execute(transferTask, true) s.Nil(err) diff --git a/service/history/task/transfer_standby_task_executor_test.go b/service/history/task/transfer_standby_task_executor_test.go index 8e39f100f3e..6216d9d44c3 100644 --- a/service/history/task/transfer_standby_task_executor_test.go +++ b/service/history/task/transfer_standby_task_executor_test.go @@ -234,7 +234,7 @@ func (s *transferStandbyTaskExecutorSuite) TestProcessActivityTask_Pending_PushT persistenceMutableState, err := test.CreatePersistenceMutableState(mutableState, event.ID, event.Version) s.NoError(err) s.mockExecutionMgr.On("GetWorkflowExecution", mock.Anything, mock.Anything).Return(&persistence.GetWorkflowExecutionResponse{State: persistenceMutableState}, nil) - s.mockMatchingClient.EXPECT().AddActivityTask(gomock.Any(), createAddActivityTaskRequest(transferTask, ai, mutableState.GetExecutionInfo().PartitionConfig)).Return(nil).Times(1) + s.mockMatchingClient.EXPECT().AddActivityTask(gomock.Any(), createAddActivityTaskRequest(transferTask, ai, mutableState.GetExecutionInfo().PartitionConfig)).Return(&types.AddActivityTaskResponse{}, nil).Times(1) s.mockShard.SetCurrentTime(s.clusterName, now) err = s.transferStandbyTaskExecutor.Execute(transferTask, true) s.Nil(err) @@ -331,7 +331,7 @@ func (s *transferStandbyTaskExecutorSuite) TestProcessDecisionTask_Pending_PushT persistenceMutableState, err := test.CreatePersistenceMutableState(mutableState, di.ScheduleID, di.Version) s.NoError(err) s.mockExecutionMgr.On("GetWorkflowExecution", mock.Anything, mock.Anything).Return(&persistence.GetWorkflowExecutionResponse{State: persistenceMutableState}, nil) - s.mockMatchingClient.EXPECT().AddDecisionTask(gomock.Any(), createAddDecisionTaskRequest(transferTask, mutableState)).Return(nil).Times(1) + s.mockMatchingClient.EXPECT().AddDecisionTask(gomock.Any(), createAddDecisionTaskRequest(transferTask, mutableState)).Return(&types.AddDecisionTaskResponse{}, nil).Times(1) s.mockShard.SetCurrentTime(s.clusterName, now) err = s.transferStandbyTaskExecutor.Execute(transferTask, true) diff --git a/service/history/task/transfer_task_executor_base.go b/service/history/task/transfer_task_executor_base.go index ed9abeda4cf..cd2fa63e70a 100644 --- a/service/history/task/transfer_task_executor_base.go +++ b/service/history/task/transfer_task_executor_base.go @@ -104,7 +104,7 @@ func (t *transferTaskExecutorBase) pushActivity( t.logger.Fatal("Cannot process non activity task", tag.TaskType(task.GetTaskType())) } - return t.matchingClient.AddActivityTask(ctx, &types.AddActivityTaskRequest{ + _, err := t.matchingClient.AddActivityTask(ctx, &types.AddActivityTaskRequest{ DomainUUID: task.TargetDomainID, SourceDomainUUID: task.DomainID, Execution: &types.WorkflowExecution{ @@ -116,6 +116,7 @@ func (t *transferTaskExecutorBase) pushActivity( ScheduleToStartTimeoutSeconds: common.Int32Ptr(activityScheduleToStartTimeout), PartitionConfig: partitionConfig, }) + return err } func (t *transferTaskExecutorBase) pushDecision( @@ -133,7 +134,7 @@ func (t *transferTaskExecutorBase) pushDecision( t.logger.Fatal("Cannot process non decision task", tag.TaskType(task.GetTaskType())) } - return t.matchingClient.AddDecisionTask(ctx, &types.AddDecisionTaskRequest{ + _, err := t.matchingClient.AddDecisionTask(ctx, &types.AddDecisionTaskRequest{ DomainUUID: task.DomainID, Execution: &types.WorkflowExecution{ WorkflowID: task.WorkflowID, @@ -144,6 +145,7 @@ func (t *transferTaskExecutorBase) pushDecision( ScheduleToStartTimeoutSeconds: common.Int32Ptr(decisionScheduleToStartTimeout), PartitionConfig: partitionConfig, }) + return err } func (t *transferTaskExecutorBase) recordWorkflowStarted( diff --git a/service/matching/handler/handler.go b/service/matching/handler/handler.go index 22fa6eb6728..557781de1e4 100644 --- a/service/matching/handler/handler.go +++ b/service/matching/handler/handler.go @@ -125,7 +125,7 @@ func (h *handlerImpl) newHandlerContext( func (h *handlerImpl) AddActivityTask( ctx context.Context, request *types.AddActivityTaskRequest, -) (retError error) { +) (resp *types.AddActivityTaskResponse, retError error) { defer func() { log.CapturePanic(recover(), h.logger, &retError) }() startT := time.Now() @@ -145,7 +145,7 @@ func (h *handlerImpl) AddActivityTask( } if ok := h.workerRateLimiter.Allow(quotas.Info{Domain: domainName}); !ok { - return hCtx.handleErr(errMatchingHostThrottle) + return nil, hCtx.handleErr(errMatchingHostThrottle) } syncMatch, err := h.engine.AddActivityTask(hCtx, request) @@ -153,14 +153,14 @@ func (h *handlerImpl) AddActivityTask( hCtx.scope.RecordTimer(metrics.SyncMatchLatencyPerTaskList, time.Since(startT)) } - return hCtx.handleErr(err) + return &types.AddActivityTaskResponse{}, hCtx.handleErr(err) } // AddDecisionTask - adds a decision task. func (h *handlerImpl) AddDecisionTask( ctx context.Context, request *types.AddDecisionTaskRequest, -) (retError error) { +) (resp *types.AddDecisionTaskResponse, retError error) { defer func() { log.CapturePanic(recover(), h.logger, &retError) }() startT := time.Now() @@ -180,14 +180,14 @@ func (h *handlerImpl) AddDecisionTask( } if ok := h.workerRateLimiter.Allow(quotas.Info{Domain: domainName}); !ok { - return hCtx.handleErr(errMatchingHostThrottle) + return nil, hCtx.handleErr(errMatchingHostThrottle) } syncMatch, err := h.engine.AddDecisionTask(hCtx, request) if syncMatch { hCtx.scope.RecordTimer(metrics.SyncMatchLatencyPerTaskList, time.Since(startT)) } - return hCtx.handleErr(err) + return &types.AddDecisionTaskResponse{}, hCtx.handleErr(err) } // PollForActivityTask - long poll for an activity task. diff --git a/service/matching/handler/handler_test.go b/service/matching/handler/handler_test.go index b3f2c29900f..9610a15daef 100644 --- a/service/matching/handler/handler_test.go +++ b/service/matching/handler/handler_test.go @@ -195,7 +195,7 @@ func (s *handlerSuite) TestAddActivityTask() { tc.setupMocks() s.mockDomainCache.EXPECT().GetDomainName(request.DomainUUID).Return(s.testDomain, nil).Times(1) - err := s.handler.AddActivityTask(context.Background(), &request) + _, err := s.handler.AddActivityTask(context.Background(), &request) if tc.err != nil { s.Error(err) @@ -248,7 +248,7 @@ func (s *handlerSuite) TestAddDecisionTask() { tc.setupMocks() s.mockDomainCache.EXPECT().GetDomainName(request.DomainUUID).Return(s.testDomain, nil).Times(1) - err := s.handler.AddDecisionTask(context.Background(), &request) + _, err := s.handler.AddDecisionTask(context.Background(), &request) if tc.err != nil { s.Error(err) diff --git a/service/matching/handler/interfaces.go b/service/matching/handler/interfaces.go index 1535fe92693..70c63aabaa2 100644 --- a/service/matching/handler/interfaces.go +++ b/service/matching/handler/interfaces.go @@ -53,8 +53,8 @@ type ( common.Daemon Health(context.Context) (*types.HealthStatus, error) - AddActivityTask(context.Context, *types.AddActivityTaskRequest) error - AddDecisionTask(context.Context, *types.AddDecisionTaskRequest) error + AddActivityTask(context.Context, *types.AddActivityTaskRequest) (*types.AddActivityTaskResponse, error) + AddDecisionTask(context.Context, *types.AddDecisionTaskRequest) (*types.AddDecisionTaskResponse, error) CancelOutstandingPoll(context.Context, *types.CancelOutstandingPollRequest) error DescribeTaskList(context.Context, *types.MatchingDescribeTaskListRequest) (*types.DescribeTaskListResponse, error) ListTaskListPartitions(context.Context, *types.MatchingListTaskListPartitionsRequest) (*types.ListTaskListPartitionsResponse, error) diff --git a/service/matching/handler/interfaces_mock.go b/service/matching/handler/interfaces_mock.go index b2101288f56..bdfdb30f13a 100644 --- a/service/matching/handler/interfaces_mock.go +++ b/service/matching/handler/interfaces_mock.go @@ -254,11 +254,12 @@ func (m *MockHandler) EXPECT() *MockHandlerMockRecorder { } // AddActivityTask mocks base method. -func (m *MockHandler) AddActivityTask(arg0 context.Context, arg1 *types.AddActivityTaskRequest) error { +func (m *MockHandler) AddActivityTask(arg0 context.Context, arg1 *types.AddActivityTaskRequest) (*types.AddActivityTaskResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddActivityTask", arg0, arg1) - ret0, _ := ret[0].(error) - return ret0 + ret0, _ := ret[0].(*types.AddActivityTaskResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 } // AddActivityTask indicates an expected call of AddActivityTask. @@ -268,11 +269,12 @@ func (mr *MockHandlerMockRecorder) AddActivityTask(arg0, arg1 interface{}) *gomo } // AddDecisionTask mocks base method. -func (m *MockHandler) AddDecisionTask(arg0 context.Context, arg1 *types.AddDecisionTaskRequest) error { +func (m *MockHandler) AddDecisionTask(arg0 context.Context, arg1 *types.AddDecisionTaskRequest) (*types.AddDecisionTaskResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddDecisionTask", arg0, arg1) - ret0, _ := ret[0].(error) - return ret0 + ret0, _ := ret[0].(*types.AddDecisionTaskResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 } // AddDecisionTask indicates an expected call of AddDecisionTask. diff --git a/service/matching/tasklist/forwarder.go b/service/matching/tasklist/forwarder.go index a35b746edb0..020f997b5ae 100644 --- a/service/matching/tasklist/forwarder.go +++ b/service/matching/tasklist/forwarder.go @@ -138,7 +138,7 @@ func (fwdr *Forwarder) ForwardTask(ctx context.Context, task *InternalTask) erro defer sw.Stop() switch fwdr.taskListID.GetType() { case persistence.TaskListTypeDecision: - err = fwdr.client.AddDecisionTask(ctx, &types.AddDecisionTaskRequest{ + _, err = fwdr.client.AddDecisionTask(ctx, &types.AddDecisionTaskRequest{ DomainUUID: task.Event.DomainID, Execution: task.WorkflowExecution(), TaskList: &types.TaskList{ @@ -152,7 +152,7 @@ func (fwdr *Forwarder) ForwardTask(ctx context.Context, task *InternalTask) erro PartitionConfig: task.Event.PartitionConfig, }) case persistence.TaskListTypeActivity: - err = fwdr.client.AddActivityTask(ctx, &types.AddActivityTaskRequest{ + _, err = fwdr.client.AddActivityTask(ctx, &types.AddActivityTaskRequest{ DomainUUID: fwdr.taskListID.GetDomainID(), SourceDomainUUID: task.Event.DomainID, Execution: task.WorkflowExecution(), diff --git a/service/matching/tasklist/forwarder_test.go b/service/matching/tasklist/forwarder_test.go index 77af4d36b0d..1694ea667b8 100644 --- a/service/matching/tasklist/forwarder_test.go +++ b/service/matching/tasklist/forwarder_test.go @@ -92,7 +92,7 @@ func (t *ForwarderTestSuite) TestForwardDecisionTask() { func(arg0 context.Context, arg1 *types.AddDecisionTaskRequest, option ...yarpc.CallOption) { request = arg1 }, - ).Return(nil).Times(1) + ).Return(&types.AddDecisionTaskResponse{}, nil).Times(1) taskInfo := t.newTaskInfo() task := newInternalTask(taskInfo, nil, types.TaskSourceHistory, "", false, nil, "") @@ -116,7 +116,7 @@ func (t *ForwarderTestSuite) TestForwardActivityTask() { func(arg0 context.Context, arg1 *types.AddActivityTaskRequest, option ...yarpc.CallOption) { request = arg1 }, - ).Return(nil).Times(1) + ).Return(&types.AddActivityTaskResponse{}, nil).Times(1) taskInfo := t.newTaskInfo() task := newInternalTask(taskInfo, nil, types.TaskSourceHistory, "", false, nil, "") diff --git a/service/matching/tasklist/matcher_test.go b/service/matching/tasklist/matcher_test.go index 100f58d068b..6433cd00369 100644 --- a/service/matching/tasklist/matcher_test.go +++ b/service/matching/tasklist/matcher_test.go @@ -204,7 +204,7 @@ func (t *MatcherTestSuite) testRemoteSyncMatch(taskSource types.TaskSource, isol } remoteSyncMatch, err = t.rootMatcher.Offer(ctx, task) }, - ).Return(nil) + ).Return(&types.AddDecisionTaskResponse{}, nil) _, err0 := t.matcher.Offer(ctx, task) t.NoError(err0) @@ -226,7 +226,7 @@ func (t *MatcherTestSuite) TestSyncMatchFailure() { func(arg0 context.Context, arg1 *types.AddDecisionTaskRequest, option ...yarpc.CallOption) { req = arg1 }, - ).Return(&types.ServiceBusyError{}) + ).Return(nil, &types.ServiceBusyError{}) syncMatch, err := t.matcher.Offer(ctx, task) cancel() @@ -241,7 +241,7 @@ func (t *MatcherTestSuite) TestRateLimitHandling() { scope.On("RecordTimer", mock.Anything, mock.Anything) t.matcher.scope = &scope for i := 0; i < 5; i++ { - t.client.EXPECT().AddDecisionTask(gomock.Any(), gomock.Any()).Return(nil).AnyTimes() + t.client.EXPECT().AddDecisionTask(gomock.Any(), gomock.Any()).Return(&types.AddDecisionTaskResponse{}, nil).AnyTimes() task := newInternalTask(t.newTaskInfo(), nil, types.TaskSourceHistory, "", true, nil, "") ctx, cancel := context.WithTimeout(context.Background(), time.Second) _, err := t.matcher.Offer(ctx, task) @@ -444,7 +444,7 @@ func (t *MatcherTestSuite) TestMustOfferRemoteMatch() { var err error var remoteSyncMatch bool var req *types.AddDecisionTaskRequest - t.client.EXPECT().AddDecisionTask(gomock.Any(), gomock.Any()).Return(&types.ServiceBusyError{}).Times(1) + t.client.EXPECT().AddDecisionTask(gomock.Any(), gomock.Any()).Return(nil, &types.ServiceBusyError{}).Times(1) t.client.EXPECT().AddDecisionTask(gomock.Any(), gomock.Any()).Do( func(arg0 context.Context, arg1 *types.AddDecisionTaskRequest, option ...yarpc.CallOption) { req = arg1 @@ -452,7 +452,7 @@ func (t *MatcherTestSuite) TestMustOfferRemoteMatch() { close(pollSigC) remoteSyncMatch, err = t.rootMatcher.Offer(ctx, task) }, - ).Return(nil) + ).Return(&types.AddDecisionTaskResponse{}, nil) // Poll needs to happen before MustOffer, or else it goes into the non-blocking path. var pollResultMu sync.Mutex @@ -488,7 +488,7 @@ func (t *MatcherTestSuite) TestMustOfferRemoteRateLimit() { completionFunc := func(*persistence.TaskInfo, error) {} for i := 0; i < 5; i++ { scope.On("IncCounter", metrics.AsyncMatchForwardPollCounterPerTaskList) - t.client.EXPECT().AddDecisionTask(gomock.Any(), gomock.Any()).Return(nil) + t.client.EXPECT().AddDecisionTask(gomock.Any(), gomock.Any()).Return(&types.AddDecisionTaskResponse{}, nil) task := newInternalTask(t.newTaskInfo(), completionFunc, types.TaskSourceDbBacklog, "", false, nil, "") ctx, cancel := context.WithTimeout(context.Background(), 4*time.Second) t.NoError(t.matcher.MustOffer(ctx, task)) @@ -528,7 +528,7 @@ func (t *MatcherTestSuite) TestIsolationMustOfferRemoteMatch() { var err error var remoteSyncMatch bool var req *types.AddDecisionTaskRequest - t.client.EXPECT().AddDecisionTask(gomock.Any(), gomock.Any()).Return(&types.ServiceBusyError{}).Times(1) + t.client.EXPECT().AddDecisionTask(gomock.Any(), gomock.Any()).Return(nil, &types.ServiceBusyError{}).Times(1) t.client.EXPECT().AddDecisionTask(gomock.Any(), gomock.Any()).Do( func(arg0 context.Context, arg1 *types.AddDecisionTaskRequest, option ...yarpc.CallOption) { req = arg1 @@ -536,7 +536,7 @@ func (t *MatcherTestSuite) TestIsolationMustOfferRemoteMatch() { close(pollSigC) remoteSyncMatch, err = t.rootMatcher.Offer(arg0, task) }, - ).Return(nil) + ).Return(&types.AddDecisionTaskResponse{}, nil) // Poll needs to happen before MustOffer, or else it goes into the non-blocking path. var pollResultMu sync.Mutex diff --git a/service/matching/wrappers/grpc/grpc_handler_generated.go b/service/matching/wrappers/grpc/grpc_handler_generated.go index dec14ebfb18..0e614a93806 100644 --- a/service/matching/wrappers/grpc/grpc_handler_generated.go +++ b/service/matching/wrappers/grpc/grpc_handler_generated.go @@ -43,13 +43,13 @@ func NewGRPCHandler(h handler.Handler) GRPCHandler { } func (g GRPCHandler) AddActivityTask(ctx context.Context, request *matchingv1.AddActivityTaskRequest) (*matchingv1.AddActivityTaskResponse, error) { - err := g.h.AddActivityTask(ctx, proto.ToMatchingAddActivityTaskRequest(request)) - return &matchingv1.AddActivityTaskResponse{}, proto.FromError(err) + response, err := g.h.AddActivityTask(ctx, proto.ToMatchingAddActivityTaskRequest(request)) + return proto.FromMatchingAddActivityTaskResponse(response), proto.FromError(err) } func (g GRPCHandler) AddDecisionTask(ctx context.Context, request *matchingv1.AddDecisionTaskRequest) (*matchingv1.AddDecisionTaskResponse, error) { - err := g.h.AddDecisionTask(ctx, proto.ToMatchingAddDecisionTaskRequest(request)) - return &matchingv1.AddDecisionTaskResponse{}, proto.FromError(err) + response, err := g.h.AddDecisionTask(ctx, proto.ToMatchingAddDecisionTaskRequest(request)) + return proto.FromMatchingAddDecisionTaskResponse(response), proto.FromError(err) } func (g GRPCHandler) CancelOutstandingPoll(ctx context.Context, request *matchingv1.CancelOutstandingPollRequest) (*matchingv1.CancelOutstandingPollResponse, error) { diff --git a/service/matching/wrappers/thrift/thrift_handler_generated.go b/service/matching/wrappers/thrift/thrift_handler_generated.go index 011e942cd4b..06f39add7c0 100644 --- a/service/matching/wrappers/thrift/thrift_handler_generated.go +++ b/service/matching/wrappers/thrift/thrift_handler_generated.go @@ -35,12 +35,12 @@ import ( ) func (g ThriftHandler) AddActivityTask(ctx context.Context, AddRequest *matching.AddActivityTaskRequest) (err error) { - err = g.h.AddActivityTask(ctx, thrift.ToMatchingAddActivityTaskRequest(AddRequest)) + _, err = g.h.AddActivityTask(ctx, thrift.ToMatchingAddActivityTaskRequest(AddRequest)) return thrift.FromError(err) } func (g ThriftHandler) AddDecisionTask(ctx context.Context, AddRequest *matching.AddDecisionTaskRequest) (err error) { - err = g.h.AddDecisionTask(ctx, thrift.ToMatchingAddDecisionTaskRequest(AddRequest)) + _, err = g.h.AddDecisionTask(ctx, thrift.ToMatchingAddDecisionTaskRequest(AddRequest)) return thrift.FromError(err) } diff --git a/service/matching/wrappers/thrift/thrift_handler_test.go b/service/matching/wrappers/thrift/thrift_handler_test.go index cdeeadb7768..f0fd5595184 100644 --- a/service/matching/wrappers/thrift/thrift_handler_test.go +++ b/service/matching/wrappers/thrift/thrift_handler_test.go @@ -51,12 +51,12 @@ func TestThriftHandler(t *testing.T) { assert.Equal(t, expectedErr, err) }) t.Run("AddActivityTask", func(t *testing.T) { - h.EXPECT().AddActivityTask(ctx, &types.AddActivityTaskRequest{}).Return(internalErr).Times(1) + h.EXPECT().AddActivityTask(ctx, &types.AddActivityTaskRequest{}).Return(nil, internalErr).Times(1) err := th.AddActivityTask(ctx, &m.AddActivityTaskRequest{}) assert.Equal(t, expectedErr, err) }) t.Run("AddDecisionTask", func(t *testing.T) { - h.EXPECT().AddDecisionTask(ctx, &types.AddDecisionTaskRequest{}).Return(internalErr).Times(1) + h.EXPECT().AddDecisionTask(ctx, &types.AddDecisionTaskRequest{}).Return(nil, internalErr).Times(1) err := th.AddDecisionTask(ctx, &m.AddDecisionTaskRequest{}) assert.Equal(t, expectedErr, err) }) diff --git a/service/templates/thrift.tmpl b/service/templates/thrift.tmpl index efbbe15d850..d34554ffbda 100644 --- a/service/templates/thrift.tmpl +++ b/service/templates/thrift.tmpl @@ -27,7 +27,11 @@ func (g {{$Decorator}}) {{$method.Declaration}} { {{- end}} {{- else}} {{- if eq (len $method.Results) 1}} + {{- if or (eq $method.Name "AddDecisionTask") (eq $method.Name "AddActivityTask")}} + _, {{(index $method.Results 0).Name}} = g.h.{{$method.Name}}({{(index $method.Params 0).Name}}, thrift.To{{$prefix}}{{$Request}}({{(index $method.Params 1).Name}})) + {{- else}} {{(index $method.Results 0).Name}} = g.h.{{$method.Name}}({{(index $method.Params 0).Name}}, thrift.To{{$prefix}}{{$Request}}({{(index $method.Params 1).Name}})) + {{- end}} {{- else}} response, {{(index $method.Results 1).Name}} := g.h.{{$method.Name}}({{(index $method.Params 0).Name}}, thrift.To{{$prefix}}{{$Request}}({{(index $method.Params 1).Name}})) {{- end}}