diff --git a/api/persistenceblobs/v1/message.pb.go b/api/persistenceblobs/v1/message.pb.go index de5ceba7723..6702ac94365 100644 --- a/api/persistenceblobs/v1/message.pb.go +++ b/api/persistenceblobs/v1/message.pb.go @@ -18,14 +18,14 @@ import ( github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" types "github.com/gogo/protobuf/types" - v12 "go.temporal.io/api/common/v1" + v13 "go.temporal.io/api/common/v1" v15 "go.temporal.io/api/enums/v1" - v11 "go.temporal.io/api/failure/v1" - v1 "go.temporal.io/api/history/v1" + v12 "go.temporal.io/api/failure/v1" + v11 "go.temporal.io/api/history/v1" v16 "go.temporal.io/api/namespace/v1" _ "go.temporal.io/server/api/dependencies/gogoproto/v1" - v13 "go.temporal.io/server/api/enums/v1" - v14 "go.temporal.io/server/api/replication/v1" + v14 "go.temporal.io/server/api/enums/v1" + v1 "go.temporal.io/server/api/replication/v1" ) // Reference imports to suppress errors if they are not otherwise used. @@ -40,6 +40,128 @@ var _ = time.Kitchen // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// ExecutionStats is not persisted and is used internally and as part of mutableState +type ExecutionStats struct { + HistorySize int64 `protobuf:"varint,1,opt,name=history_size,json=historySize,proto3" json:"history_size,omitempty"` +} + +func (m *ExecutionStats) Reset() { *m = ExecutionStats{} } +func (*ExecutionStats) ProtoMessage() {} +func (*ExecutionStats) Descriptor() ([]byte, []int) { + return fileDescriptor_ef806e155800e59a, []int{0} +} +func (m *ExecutionStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ExecutionStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ExecutionStats.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 *ExecutionStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutionStats.Merge(m, src) +} +func (m *ExecutionStats) XXX_Size() int { + return m.Size() +} +func (m *ExecutionStats) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutionStats.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutionStats proto.InternalMessageInfo + +func (m *ExecutionStats) GetHistorySize() int64 { + if m != nil { + return m.HistorySize + } + return 0 +} + +// ReplicationState represents mutable state information for global namespaces. +// This information is used by replication protocol when applying events from remote clusters +// (not persisted) +type ReplicationState struct { + CurrentVersion int64 `protobuf:"varint,1,opt,name=current_version,json=currentVersion,proto3" json:"current_version,omitempty"` + StartVersion int64 `protobuf:"varint,2,opt,name=start_version,json=startVersion,proto3" json:"start_version,omitempty"` + LastWriteVersion int64 `protobuf:"varint,3,opt,name=last_write_version,json=lastWriteVersion,proto3" json:"last_write_version,omitempty"` + LastWriteEventId int64 `protobuf:"varint,4,opt,name=last_write_event_id,json=lastWriteEventId,proto3" json:"last_write_event_id,omitempty"` + LastReplicationInfo map[string]*v1.ReplicationInfo `protobuf:"bytes,5,rep,name=last_replication_info,json=lastReplicationInfo,proto3" json:"last_replication_info,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (m *ReplicationState) Reset() { *m = ReplicationState{} } +func (*ReplicationState) ProtoMessage() {} +func (*ReplicationState) Descriptor() ([]byte, []int) { + return fileDescriptor_ef806e155800e59a, []int{1} +} +func (m *ReplicationState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReplicationState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReplicationState.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 *ReplicationState) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReplicationState.Merge(m, src) +} +func (m *ReplicationState) XXX_Size() int { + return m.Size() +} +func (m *ReplicationState) XXX_DiscardUnknown() { + xxx_messageInfo_ReplicationState.DiscardUnknown(m) +} + +var xxx_messageInfo_ReplicationState proto.InternalMessageInfo + +func (m *ReplicationState) GetCurrentVersion() int64 { + if m != nil { + return m.CurrentVersion + } + return 0 +} + +func (m *ReplicationState) GetStartVersion() int64 { + if m != nil { + return m.StartVersion + } + return 0 +} + +func (m *ReplicationState) GetLastWriteVersion() int64 { + if m != nil { + return m.LastWriteVersion + } + return 0 +} + +func (m *ReplicationState) GetLastWriteEventId() int64 { + if m != nil { + return m.LastWriteEventId + } + return 0 +} + +func (m *ReplicationState) GetLastReplicationInfo() map[string]*v1.ReplicationInfo { + if m != nil { + return m.LastReplicationInfo + } + return nil +} + // ImmutableClusterMetadata contains initialization configuration and metadata for the cluster. type ImmutableClusterMetadata struct { ClusterName string `protobuf:"bytes,1,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` @@ -49,7 +171,7 @@ type ImmutableClusterMetadata struct { func (m *ImmutableClusterMetadata) Reset() { *m = ImmutableClusterMetadata{} } func (*ImmutableClusterMetadata) ProtoMessage() {} func (*ImmutableClusterMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_ef806e155800e59a, []int{0} + return fileDescriptor_ef806e155800e59a, []int{2} } func (m *ImmutableClusterMetadata) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -93,15 +215,15 @@ func (m *ImmutableClusterMetadata) GetHistoryShardCount() int32 { } type ActivityInfo struct { - Version int64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` - ScheduledEventBatchId int64 `protobuf:"varint,2,opt,name=scheduled_event_batch_id,json=scheduledEventBatchId,proto3" json:"scheduled_event_batch_id,omitempty"` - ScheduledEvent *v1.HistoryEvent `protobuf:"bytes,3,opt,name=scheduled_event,json=scheduledEvent,proto3" json:"scheduled_event,omitempty"` - ScheduledTime *time.Time `protobuf:"bytes,5,opt,name=scheduled_time,json=scheduledTime,proto3,stdtime" json:"scheduled_time,omitempty"` - StartedId int64 `protobuf:"varint,6,opt,name=started_id,json=startedId,proto3" json:"started_id,omitempty"` - StartedEvent *v1.HistoryEvent `protobuf:"bytes,7,opt,name=started_event,json=startedEvent,proto3" json:"started_event,omitempty"` - StartedTime *time.Time `protobuf:"bytes,9,opt,name=started_time,json=startedTime,proto3,stdtime" json:"started_time,omitempty"` - ActivityId string `protobuf:"bytes,10,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` - RequestId string `protobuf:"bytes,11,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + Version int64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` + ScheduledEventBatchId int64 `protobuf:"varint,2,opt,name=scheduled_event_batch_id,json=scheduledEventBatchId,proto3" json:"scheduled_event_batch_id,omitempty"` + ScheduledEvent *v11.HistoryEvent `protobuf:"bytes,3,opt,name=scheduled_event,json=scheduledEvent,proto3" json:"scheduled_event,omitempty"` + ScheduledTime *time.Time `protobuf:"bytes,5,opt,name=scheduled_time,json=scheduledTime,proto3,stdtime" json:"scheduled_time,omitempty"` + StartedId int64 `protobuf:"varint,6,opt,name=started_id,json=startedId,proto3" json:"started_id,omitempty"` + StartedEvent *v11.HistoryEvent `protobuf:"bytes,7,opt,name=started_event,json=startedEvent,proto3" json:"started_event,omitempty"` + StartedTime *time.Time `protobuf:"bytes,9,opt,name=started_time,json=startedTime,proto3,stdtime" json:"started_time,omitempty"` + ActivityId string `protobuf:"bytes,10,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` + RequestId string `protobuf:"bytes,11,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // (-- api-linter: core::0140::prepositions=disabled // aip.dev/not-precedent: "to" is used to indicate interval. --) ScheduleToStartTimeout *time.Duration `protobuf:"bytes,12,opt,name=schedule_to_start_timeout,json=scheduleToStartTimeout,proto3,stdduration" json:"schedule_to_start_timeout,omitempty"` @@ -125,18 +247,18 @@ type ActivityInfo struct { RetryExpirationTime *time.Time `protobuf:"bytes,26,opt,name=retry_expiration_time,json=retryExpirationTime,proto3,stdtime" json:"retry_expiration_time,omitempty"` RetryBackoffCoefficient float64 `protobuf:"fixed64,27,opt,name=retry_backoff_coefficient,json=retryBackoffCoefficient,proto3" json:"retry_backoff_coefficient,omitempty"` RetryNonRetryableErrorTypes []string `protobuf:"bytes,28,rep,name=retry_non_retryable_error_types,json=retryNonRetryableErrorTypes,proto3" json:"retry_non_retryable_error_types,omitempty"` - RetryLastFailure *v11.Failure `protobuf:"bytes,29,opt,name=retry_last_failure,json=retryLastFailure,proto3" json:"retry_last_failure,omitempty"` + RetryLastFailure *v12.Failure `protobuf:"bytes,29,opt,name=retry_last_failure,json=retryLastFailure,proto3" json:"retry_last_failure,omitempty"` RetryLastWorkerIdentity string `protobuf:"bytes,30,opt,name=retry_last_worker_identity,json=retryLastWorkerIdentity,proto3" json:"retry_last_worker_identity,omitempty"` NamespaceId string `protobuf:"bytes,31,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` ScheduleId int64 `protobuf:"varint,32,opt,name=schedule_id,json=scheduleId,proto3" json:"schedule_id,omitempty"` - LastHeartbeatDetails *v12.Payloads `protobuf:"bytes,33,opt,name=last_heartbeat_details,json=lastHeartbeatDetails,proto3" json:"last_heartbeat_details,omitempty"` + LastHeartbeatDetails *v13.Payloads `protobuf:"bytes,33,opt,name=last_heartbeat_details,json=lastHeartbeatDetails,proto3" json:"last_heartbeat_details,omitempty"` LastHeartbeatUpdateTime *time.Time `protobuf:"bytes,34,opt,name=last_heartbeat_update_time,json=lastHeartbeatUpdateTime,proto3,stdtime" json:"last_heartbeat_update_time,omitempty"` } func (m *ActivityInfo) Reset() { *m = ActivityInfo{} } func (*ActivityInfo) ProtoMessage() {} func (*ActivityInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_ef806e155800e59a, []int{1} + return fileDescriptor_ef806e155800e59a, []int{3} } func (m *ActivityInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -179,7 +301,7 @@ func (m *ActivityInfo) GetScheduledEventBatchId() int64 { return 0 } -func (m *ActivityInfo) GetScheduledEvent() *v1.HistoryEvent { +func (m *ActivityInfo) GetScheduledEvent() *v11.HistoryEvent { if m != nil { return m.ScheduledEvent } @@ -200,7 +322,7 @@ func (m *ActivityInfo) GetStartedId() int64 { return 0 } -func (m *ActivityInfo) GetStartedEvent() *v1.HistoryEvent { +func (m *ActivityInfo) GetStartedEvent() *v11.HistoryEvent { if m != nil { return m.StartedEvent } @@ -347,7 +469,7 @@ func (m *ActivityInfo) GetRetryNonRetryableErrorTypes() []string { return nil } -func (m *ActivityInfo) GetRetryLastFailure() *v11.Failure { +func (m *ActivityInfo) GetRetryLastFailure() *v12.Failure { if m != nil { return m.RetryLastFailure } @@ -375,7 +497,7 @@ func (m *ActivityInfo) GetScheduleId() int64 { return 0 } -func (m *ActivityInfo) GetLastHeartbeatDetails() *v12.Payloads { +func (m *ActivityInfo) GetLastHeartbeatDetails() *v13.Payloads { if m != nil { return m.LastHeartbeatDetails } @@ -410,7 +532,7 @@ type ShardInfo struct { func (m *ShardInfo) Reset() { *m = ShardInfo{} } func (*ShardInfo) ProtoMessage() {} func (*ShardInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_ef806e155800e59a, []int{2} + return fileDescriptor_ef806e155800e59a, []int{4} } func (m *ShardInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -531,27 +653,27 @@ func (m *ShardInfo) GetReplicationDlqAckLevel() map[string]int64 { } type ReplicationTaskInfo struct { - NamespaceId string `protobuf:"bytes,1,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` - WorkflowId string `protobuf:"bytes,2,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` - RunId string `protobuf:"bytes,3,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` - TaskType v13.TaskType `protobuf:"varint,4,opt,name=task_type,json=taskType,proto3,enum=temporal.server.api.enums.v1.TaskType" json:"task_type,omitempty"` - Version int64 `protobuf:"varint,5,opt,name=version,proto3" json:"version,omitempty"` - FirstEventId int64 `protobuf:"varint,6,opt,name=first_event_id,json=firstEventId,proto3" json:"first_event_id,omitempty"` - NextEventId int64 `protobuf:"varint,7,opt,name=next_event_id,json=nextEventId,proto3" json:"next_event_id,omitempty"` - ScheduledId int64 `protobuf:"varint,8,opt,name=scheduled_id,json=scheduledId,proto3" json:"scheduled_id,omitempty"` - EventStoreVersion int32 `protobuf:"varint,9,opt,name=event_store_version,json=eventStoreVersion,proto3" json:"event_store_version,omitempty"` - NewRunEventStoreVersion int32 `protobuf:"varint,10,opt,name=new_run_event_store_version,json=newRunEventStoreVersion,proto3" json:"new_run_event_store_version,omitempty"` - BranchToken []byte `protobuf:"bytes,11,opt,name=branch_token,json=branchToken,proto3" json:"branch_token,omitempty"` - LastReplicationInfo map[string]*v14.ReplicationInfo `protobuf:"bytes,12,rep,name=last_replication_info,json=lastReplicationInfo,proto3" json:"last_replication_info,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - NewRunBranchToken []byte `protobuf:"bytes,13,opt,name=new_run_branch_token,json=newRunBranchToken,proto3" json:"new_run_branch_token,omitempty"` - ResetWorkflow bool `protobuf:"varint,14,opt,name=reset_workflow,json=resetWorkflow,proto3" json:"reset_workflow,omitempty"` - TaskId int64 `protobuf:"varint,15,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` + NamespaceId string `protobuf:"bytes,1,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` + WorkflowId string `protobuf:"bytes,2,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` + RunId string `protobuf:"bytes,3,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` + TaskType v14.TaskType `protobuf:"varint,4,opt,name=task_type,json=taskType,proto3,enum=temporal.server.api.enums.v1.TaskType" json:"task_type,omitempty"` + Version int64 `protobuf:"varint,5,opt,name=version,proto3" json:"version,omitempty"` + FirstEventId int64 `protobuf:"varint,6,opt,name=first_event_id,json=firstEventId,proto3" json:"first_event_id,omitempty"` + NextEventId int64 `protobuf:"varint,7,opt,name=next_event_id,json=nextEventId,proto3" json:"next_event_id,omitempty"` + ScheduledId int64 `protobuf:"varint,8,opt,name=scheduled_id,json=scheduledId,proto3" json:"scheduled_id,omitempty"` + EventStoreVersion int32 `protobuf:"varint,9,opt,name=event_store_version,json=eventStoreVersion,proto3" json:"event_store_version,omitempty"` + NewRunEventStoreVersion int32 `protobuf:"varint,10,opt,name=new_run_event_store_version,json=newRunEventStoreVersion,proto3" json:"new_run_event_store_version,omitempty"` + BranchToken []byte `protobuf:"bytes,11,opt,name=branch_token,json=branchToken,proto3" json:"branch_token,omitempty"` + LastReplicationInfo map[string]*v1.ReplicationInfo `protobuf:"bytes,12,rep,name=last_replication_info,json=lastReplicationInfo,proto3" json:"last_replication_info,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + NewRunBranchToken []byte `protobuf:"bytes,13,opt,name=new_run_branch_token,json=newRunBranchToken,proto3" json:"new_run_branch_token,omitempty"` + ResetWorkflow bool `protobuf:"varint,14,opt,name=reset_workflow,json=resetWorkflow,proto3" json:"reset_workflow,omitempty"` + TaskId int64 `protobuf:"varint,15,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` } func (m *ReplicationTaskInfo) Reset() { *m = ReplicationTaskInfo{} } func (*ReplicationTaskInfo) ProtoMessage() {} func (*ReplicationTaskInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_ef806e155800e59a, []int{3} + return fileDescriptor_ef806e155800e59a, []int{5} } func (m *ReplicationTaskInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -601,11 +723,11 @@ func (m *ReplicationTaskInfo) GetRunId() string { return "" } -func (m *ReplicationTaskInfo) GetTaskType() v13.TaskType { +func (m *ReplicationTaskInfo) GetTaskType() v14.TaskType { if m != nil { return m.TaskType } - return v13.TASK_TYPE_UNSPECIFIED + return v14.TASK_TYPE_UNSPECIFIED } func (m *ReplicationTaskInfo) GetVersion() int64 { @@ -657,7 +779,7 @@ func (m *ReplicationTaskInfo) GetBranchToken() []byte { return nil } -func (m *ReplicationTaskInfo) GetLastReplicationInfo() map[string]*v14.ReplicationInfo { +func (m *ReplicationTaskInfo) GetLastReplicationInfo() map[string]*v1.ReplicationInfo { if m != nil { return m.LastReplicationInfo } @@ -689,9 +811,9 @@ type TimerTaskInfo struct { NamespaceId string `protobuf:"bytes,1,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` WorkflowId string `protobuf:"bytes,2,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` RunId string `protobuf:"bytes,3,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` - TaskType v13.TaskType `protobuf:"varint,4,opt,name=task_type,json=taskType,proto3,enum=temporal.server.api.enums.v1.TaskType" json:"task_type,omitempty"` + TaskType v14.TaskType `protobuf:"varint,4,opt,name=task_type,json=taskType,proto3,enum=temporal.server.api.enums.v1.TaskType" json:"task_type,omitempty"` TimeoutType v15.TimeoutType `protobuf:"varint,5,opt,name=timeout_type,json=timeoutType,proto3,enum=temporal.api.enums.v1.TimeoutType" json:"timeout_type,omitempty"` - WorkflowBackoffType v13.WorkflowBackoffType `protobuf:"varint,6,opt,name=workflow_backoff_type,json=workflowBackoffType,proto3,enum=temporal.server.api.enums.v1.WorkflowBackoffType" json:"workflow_backoff_type,omitempty"` + WorkflowBackoffType v14.WorkflowBackoffType `protobuf:"varint,6,opt,name=workflow_backoff_type,json=workflowBackoffType,proto3,enum=temporal.server.api.enums.v1.WorkflowBackoffType" json:"workflow_backoff_type,omitempty"` Version int64 `protobuf:"varint,7,opt,name=version,proto3" json:"version,omitempty"` ScheduleAttempt int64 `protobuf:"varint,8,opt,name=schedule_attempt,json=scheduleAttempt,proto3" json:"schedule_attempt,omitempty"` EventId int64 `protobuf:"varint,9,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"` @@ -702,7 +824,7 @@ type TimerTaskInfo struct { func (m *TimerTaskInfo) Reset() { *m = TimerTaskInfo{} } func (*TimerTaskInfo) ProtoMessage() {} func (*TimerTaskInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_ef806e155800e59a, []int{4} + return fileDescriptor_ef806e155800e59a, []int{6} } func (m *TimerTaskInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -752,11 +874,11 @@ func (m *TimerTaskInfo) GetRunId() string { return "" } -func (m *TimerTaskInfo) GetTaskType() v13.TaskType { +func (m *TimerTaskInfo) GetTaskType() v14.TaskType { if m != nil { return m.TaskType } - return v13.TASK_TYPE_UNSPECIFIED + return v14.TASK_TYPE_UNSPECIFIED } func (m *TimerTaskInfo) GetTimeoutType() v15.TimeoutType { @@ -766,11 +888,11 @@ func (m *TimerTaskInfo) GetTimeoutType() v15.TimeoutType { return v15.TIMEOUT_TYPE_UNSPECIFIED } -func (m *TimerTaskInfo) GetWorkflowBackoffType() v13.WorkflowBackoffType { +func (m *TimerTaskInfo) GetWorkflowBackoffType() v14.WorkflowBackoffType { if m != nil { return m.WorkflowBackoffType } - return v13.WORKFLOW_BACKOFF_TYPE_UNSPECIFIED + return v14.WORKFLOW_BACKOFF_TYPE_UNSPECIFIED } func (m *TimerTaskInfo) GetVersion() int64 { @@ -812,7 +934,7 @@ type TransferTaskInfo struct { NamespaceId string `protobuf:"bytes,1,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` WorkflowId string `protobuf:"bytes,2,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` RunId string `protobuf:"bytes,3,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` - TaskType v13.TaskType `protobuf:"varint,4,opt,name=task_type,json=taskType,proto3,enum=temporal.server.api.enums.v1.TaskType" json:"task_type,omitempty"` + TaskType v14.TaskType `protobuf:"varint,4,opt,name=task_type,json=taskType,proto3,enum=temporal.server.api.enums.v1.TaskType" json:"task_type,omitempty"` TargetNamespaceId string `protobuf:"bytes,5,opt,name=target_namespace_id,json=targetNamespaceId,proto3" json:"target_namespace_id,omitempty"` TargetWorkflowId string `protobuf:"bytes,6,opt,name=target_workflow_id,json=targetWorkflowId,proto3" json:"target_workflow_id,omitempty"` TargetRunId string `protobuf:"bytes,7,opt,name=target_run_id,json=targetRunId,proto3" json:"target_run_id,omitempty"` @@ -828,7 +950,7 @@ type TransferTaskInfo struct { func (m *TransferTaskInfo) Reset() { *m = TransferTaskInfo{} } func (*TransferTaskInfo) ProtoMessage() {} func (*TransferTaskInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_ef806e155800e59a, []int{5} + return fileDescriptor_ef806e155800e59a, []int{7} } func (m *TransferTaskInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -878,11 +1000,11 @@ func (m *TransferTaskInfo) GetRunId() string { return "" } -func (m *TransferTaskInfo) GetTaskType() v13.TaskType { +func (m *TransferTaskInfo) GetTaskType() v14.TaskType { if m != nil { return m.TaskType } - return v13.TASK_TYPE_UNSPECIFIED + return v14.TASK_TYPE_UNSPECIFIED } func (m *TransferTaskInfo) GetTargetNamespaceId() string { @@ -968,7 +1090,7 @@ type HistoryBranchRange struct { func (m *HistoryBranchRange) Reset() { *m = HistoryBranchRange{} } func (*HistoryBranchRange) ProtoMessage() {} func (*HistoryBranchRange) Descriptor() ([]byte, []int) { - return fileDescriptor_ef806e155800e59a, []int{6} + return fileDescriptor_ef806e155800e59a, []int{8} } func (m *HistoryBranchRange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1028,7 +1150,7 @@ type HistoryBranch struct { func (m *HistoryBranch) Reset() { *m = HistoryBranch{} } func (*HistoryBranch) ProtoMessage() {} func (*HistoryBranch) Descriptor() ([]byte, []int) { - return fileDescriptor_ef806e155800e59a, []int{7} + return fileDescriptor_ef806e155800e59a, []int{9} } func (m *HistoryBranch) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1089,7 +1211,7 @@ type HistoryTreeInfo struct { func (m *HistoryTreeInfo) Reset() { *m = HistoryTreeInfo{} } func (*HistoryTreeInfo) ProtoMessage() {} func (*HistoryTreeInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_ef806e155800e59a, []int{8} + return fileDescriptor_ef806e155800e59a, []int{10} } func (m *HistoryTreeInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1151,7 +1273,7 @@ type TimerInfo struct { func (m *TimerInfo) Reset() { *m = TimerInfo{} } func (*TimerInfo) ProtoMessage() {} func (*TimerInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_ef806e155800e59a, []int{9} + return fileDescriptor_ef806e155800e59a, []int{11} } func (m *TimerInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1227,7 +1349,7 @@ type TaskInfo struct { func (m *TaskInfo) Reset() { *m = TaskInfo{} } func (*TaskInfo) ProtoMessage() {} func (*TaskInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_ef806e155800e59a, []int{10} + return fileDescriptor_ef806e155800e59a, []int{12} } func (m *TaskInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1306,7 +1428,7 @@ type AllocatedTaskInfo struct { func (m *AllocatedTaskInfo) Reset() { *m = AllocatedTaskInfo{} } func (*AllocatedTaskInfo) ProtoMessage() {} func (*AllocatedTaskInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_ef806e155800e59a, []int{11} + return fileDescriptor_ef806e155800e59a, []int{13} } func (m *AllocatedTaskInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1362,7 +1484,7 @@ type TaskQueueInfo struct { func (m *TaskQueueInfo) Reset() { *m = TaskQueueInfo{} } func (*TaskQueueInfo) ProtoMessage() {} func (*TaskQueueInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_ef806e155800e59a, []int{12} + return fileDescriptor_ef806e155800e59a, []int{14} } func (m *TaskQueueInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1445,7 +1567,7 @@ type SignalInfo struct { InitiatedEventBatchId int64 `protobuf:"varint,2,opt,name=initiated_event_batch_id,json=initiatedEventBatchId,proto3" json:"initiated_event_batch_id,omitempty"` RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` - Input *v12.Payloads `protobuf:"bytes,5,opt,name=input,proto3" json:"input,omitempty"` + Input *v13.Payloads `protobuf:"bytes,5,opt,name=input,proto3" json:"input,omitempty"` Control string `protobuf:"bytes,6,opt,name=control,proto3" json:"control,omitempty"` InitiatedId int64 `protobuf:"varint,7,opt,name=initiated_id,json=initiatedId,proto3" json:"initiated_id,omitempty"` } @@ -1453,7 +1575,7 @@ type SignalInfo struct { func (m *SignalInfo) Reset() { *m = SignalInfo{} } func (*SignalInfo) ProtoMessage() {} func (*SignalInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_ef806e155800e59a, []int{13} + return fileDescriptor_ef806e155800e59a, []int{15} } func (m *SignalInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1510,7 +1632,7 @@ func (m *SignalInfo) GetName() string { return "" } -func (m *SignalInfo) GetInput() *v12.Payloads { +func (m *SignalInfo) GetInput() *v13.Payloads { if m != nil { return m.Input } @@ -1541,7 +1663,7 @@ type RequestCancelInfo struct { func (m *RequestCancelInfo) Reset() { *m = RequestCancelInfo{} } func (*RequestCancelInfo) ProtoMessage() {} func (*RequestCancelInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_ef806e155800e59a, []int{14} + return fileDescriptor_ef806e155800e59a, []int{16} } func (m *RequestCancelInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1601,14 +1723,14 @@ func (m *RequestCancelInfo) GetInitiatedId() int64 { type WorkflowExecutionState struct { CreateRequestId string `protobuf:"bytes,1,opt,name=create_request_id,json=createRequestId,proto3" json:"create_request_id,omitempty"` RunId string `protobuf:"bytes,2,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` - State v13.WorkflowExecutionState `protobuf:"varint,3,opt,name=state,proto3,enum=temporal.server.api.enums.v1.WorkflowExecutionState" json:"state,omitempty"` + State v14.WorkflowExecutionState `protobuf:"varint,3,opt,name=state,proto3,enum=temporal.server.api.enums.v1.WorkflowExecutionState" json:"state,omitempty"` Status v15.WorkflowExecutionStatus `protobuf:"varint,4,opt,name=status,proto3,enum=temporal.api.enums.v1.WorkflowExecutionStatus" json:"status,omitempty"` } func (m *WorkflowExecutionState) Reset() { *m = WorkflowExecutionState{} } func (*WorkflowExecutionState) ProtoMessage() {} func (*WorkflowExecutionState) Descriptor() ([]byte, []int) { - return fileDescriptor_ef806e155800e59a, []int{15} + return fileDescriptor_ef806e155800e59a, []int{17} } func (m *WorkflowExecutionState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1651,11 +1773,11 @@ func (m *WorkflowExecutionState) GetRunId() string { return "" } -func (m *WorkflowExecutionState) GetState() v13.WorkflowExecutionState { +func (m *WorkflowExecutionState) GetState() v14.WorkflowExecutionState { if m != nil { return m.State } - return v13.WORKFLOW_EXECUTION_STATE_UNSPECIFIED + return v14.WORKFLOW_EXECUTION_STATE_UNSPECIFIED } func (m *WorkflowExecutionState) GetStatus() v15.WorkflowExecutionStatus { @@ -1721,8 +1843,8 @@ type WorkflowExecutionInfo struct { ClientImpl string `protobuf:"bytes,53,opt,name=client_impl,json=clientImpl,proto3" json:"client_impl,omitempty"` AutoResetPoints []byte `protobuf:"bytes,54,opt,name=auto_reset_points,json=autoResetPoints,proto3" json:"auto_reset_points,omitempty"` AutoResetPointsEncoding string `protobuf:"bytes,55,opt,name=auto_reset_points_encoding,json=autoResetPointsEncoding,proto3" json:"auto_reset_points_encoding,omitempty"` - SearchAttributes map[string]*v12.Payload `protobuf:"bytes,56,rep,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Memo map[string]*v12.Payload `protobuf:"bytes,57,rep,name=memo,proto3" json:"memo,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + SearchAttributes map[string]*v13.Payload `protobuf:"bytes,56,rep,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Memo map[string]*v13.Payload `protobuf:"bytes,57,rep,name=memo,proto3" json:"memo,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` VersionHistories []byte `protobuf:"bytes,58,opt,name=version_histories,json=versionHistories,proto3" json:"version_histories,omitempty"` VersionHistoriesEncoding string `protobuf:"bytes,59,opt,name=version_histories_encoding,json=versionHistoriesEncoding,proto3" json:"version_histories_encoding,omitempty"` } @@ -1730,7 +1852,7 @@ type WorkflowExecutionInfo struct { func (m *WorkflowExecutionInfo) Reset() { *m = WorkflowExecutionInfo{} } func (*WorkflowExecutionInfo) ProtoMessage() {} func (*WorkflowExecutionInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_ef806e155800e59a, []int{16} + return fileDescriptor_ef806e155800e59a, []int{18} } func (m *WorkflowExecutionInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2130,14 +2252,14 @@ func (m *WorkflowExecutionInfo) GetAutoResetPointsEncoding() string { return "" } -func (m *WorkflowExecutionInfo) GetSearchAttributes() map[string]*v12.Payload { +func (m *WorkflowExecutionInfo) GetSearchAttributes() map[string]*v13.Payload { if m != nil { return m.SearchAttributes } return nil } -func (m *WorkflowExecutionInfo) GetMemo() map[string]*v12.Payload { +func (m *WorkflowExecutionInfo) GetMemo() map[string]*v13.Payload { if m != nil { return m.Memo } @@ -2160,14 +2282,14 @@ func (m *WorkflowExecutionInfo) GetVersionHistoriesEncoding() string { type Checksum struct { Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` - Flavor v13.ChecksumFlavor `protobuf:"varint,2,opt,name=flavor,proto3,enum=temporal.server.api.enums.v1.ChecksumFlavor" json:"flavor,omitempty"` + Flavor v14.ChecksumFlavor `protobuf:"varint,2,opt,name=flavor,proto3,enum=temporal.server.api.enums.v1.ChecksumFlavor" json:"flavor,omitempty"` Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` } func (m *Checksum) Reset() { *m = Checksum{} } func (*Checksum) ProtoMessage() {} func (*Checksum) Descriptor() ([]byte, []int) { - return fileDescriptor_ef806e155800e59a, []int{17} + return fileDescriptor_ef806e155800e59a, []int{19} } func (m *Checksum) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2203,11 +2325,11 @@ func (m *Checksum) GetVersion() int32 { return 0 } -func (m *Checksum) GetFlavor() v13.ChecksumFlavor { +func (m *Checksum) GetFlavor() v14.ChecksumFlavor { if m != nil { return m.Flavor } - return v13.CHECKSUM_FLAVOR_UNSPECIFIED + return v14.CHECKSUM_FLAVOR_UNSPECIFIED } func (m *Checksum) GetValue() []byte { @@ -2221,10 +2343,10 @@ type ChildExecutionInfo struct { Version int64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` InitiatedEventBatchId int64 `protobuf:"varint,2,opt,name=initiated_event_batch_id,json=initiatedEventBatchId,proto3" json:"initiated_event_batch_id,omitempty"` StartedId int64 `protobuf:"varint,3,opt,name=started_id,json=startedId,proto3" json:"started_id,omitempty"` - InitiatedEvent *v1.HistoryEvent `protobuf:"bytes,4,opt,name=initiated_event,json=initiatedEvent,proto3" json:"initiated_event,omitempty"` + InitiatedEvent *v11.HistoryEvent `protobuf:"bytes,4,opt,name=initiated_event,json=initiatedEvent,proto3" json:"initiated_event,omitempty"` StartedWorkflowId string `protobuf:"bytes,5,opt,name=started_workflow_id,json=startedWorkflowId,proto3" json:"started_workflow_id,omitempty"` StartedRunId string `protobuf:"bytes,6,opt,name=started_run_id,json=startedRunId,proto3" json:"started_run_id,omitempty"` - StartedEvent *v1.HistoryEvent `protobuf:"bytes,7,opt,name=started_event,json=startedEvent,proto3" json:"started_event,omitempty"` + StartedEvent *v11.HistoryEvent `protobuf:"bytes,7,opt,name=started_event,json=startedEvent,proto3" json:"started_event,omitempty"` CreateRequestId string `protobuf:"bytes,8,opt,name=create_request_id,json=createRequestId,proto3" json:"create_request_id,omitempty"` Namespace string `protobuf:"bytes,9,opt,name=namespace,proto3" json:"namespace,omitempty"` WorkflowTypeName string `protobuf:"bytes,10,opt,name=workflow_type_name,json=workflowTypeName,proto3" json:"workflow_type_name,omitempty"` @@ -2235,7 +2357,7 @@ type ChildExecutionInfo struct { func (m *ChildExecutionInfo) Reset() { *m = ChildExecutionInfo{} } func (*ChildExecutionInfo) ProtoMessage() {} func (*ChildExecutionInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_ef806e155800e59a, []int{18} + return fileDescriptor_ef806e155800e59a, []int{20} } func (m *ChildExecutionInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2285,7 +2407,7 @@ func (m *ChildExecutionInfo) GetStartedId() int64 { return 0 } -func (m *ChildExecutionInfo) GetInitiatedEvent() *v1.HistoryEvent { +func (m *ChildExecutionInfo) GetInitiatedEvent() *v11.HistoryEvent { if m != nil { return m.InitiatedEvent } @@ -2306,7 +2428,7 @@ func (m *ChildExecutionInfo) GetStartedRunId() string { return "" } -func (m *ChildExecutionInfo) GetStartedEvent() *v1.HistoryEvent { +func (m *ChildExecutionInfo) GetStartedEvent() *v11.HistoryEvent { if m != nil { return m.StartedEvent } @@ -2361,7 +2483,7 @@ type NamespaceDetail struct { func (m *NamespaceDetail) Reset() { *m = NamespaceDetail{} } func (*NamespaceDetail) ProtoMessage() {} func (*NamespaceDetail) Descriptor() ([]byte, []int) { - return fileDescriptor_ef806e155800e59a, []int{19} + return fileDescriptor_ef806e155800e59a, []int{21} } func (m *NamespaceDetail) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2451,7 +2573,7 @@ type NamespaceInfo struct { func (m *NamespaceInfo) Reset() { *m = NamespaceInfo{} } func (*NamespaceInfo) ProtoMessage() {} func (*NamespaceInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_ef806e155800e59a, []int{20} + return fileDescriptor_ef806e155800e59a, []int{22} } func (m *NamespaceInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2530,7 +2652,7 @@ type NamespaceReplicationConfig struct { func (m *NamespaceReplicationConfig) Reset() { *m = NamespaceReplicationConfig{} } func (*NamespaceReplicationConfig) ProtoMessage() {} func (*NamespaceReplicationConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_ef806e155800e59a, []int{21} + return fileDescriptor_ef806e155800e59a, []int{23} } func (m *NamespaceReplicationConfig) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2586,7 +2708,7 @@ type NamespaceConfig struct { func (m *NamespaceConfig) Reset() { *m = NamespaceConfig{} } func (*NamespaceConfig) ProtoMessage() {} func (*NamespaceConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_ef806e155800e59a, []int{22} + return fileDescriptor_ef806e155800e59a, []int{24} } func (m *NamespaceConfig) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2668,14 +2790,14 @@ func (m *NamespaceConfig) GetVisibilityArchivalUri() string { // This information is used by replication protocol when applying events from remote clusters // only used in cassandra type ReplicationData struct { - LastWriteEventId int64 `protobuf:"varint,1,opt,name=last_write_event_id,json=lastWriteEventId,proto3" json:"last_write_event_id,omitempty"` - LastReplicationInfo map[string]*v14.ReplicationInfo `protobuf:"bytes,2,rep,name=last_replication_info,json=lastReplicationInfo,proto3" json:"last_replication_info,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + LastWriteEventId int64 `protobuf:"varint,1,opt,name=last_write_event_id,json=lastWriteEventId,proto3" json:"last_write_event_id,omitempty"` + LastReplicationInfo map[string]*v1.ReplicationInfo `protobuf:"bytes,2,rep,name=last_replication_info,json=lastReplicationInfo,proto3" json:"last_replication_info,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } func (m *ReplicationData) Reset() { *m = ReplicationData{} } func (*ReplicationData) ProtoMessage() {} func (*ReplicationData) Descriptor() ([]byte, []int) { - return fileDescriptor_ef806e155800e59a, []int{23} + return fileDescriptor_ef806e155800e59a, []int{25} } func (m *ReplicationData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2711,7 +2833,7 @@ func (m *ReplicationData) GetLastWriteEventId() int64 { return 0 } -func (m *ReplicationData) GetLastReplicationInfo() map[string]*v14.ReplicationInfo { +func (m *ReplicationData) GetLastReplicationInfo() map[string]*v1.ReplicationInfo { if m != nil { return m.LastReplicationInfo } @@ -2726,7 +2848,7 @@ type ReplicationVersions struct { func (m *ReplicationVersions) Reset() { *m = ReplicationVersions{} } func (*ReplicationVersions) ProtoMessage() {} func (*ReplicationVersions) Descriptor() ([]byte, []int) { - return fileDescriptor_ef806e155800e59a, []int{24} + return fileDescriptor_ef806e155800e59a, []int{26} } func (m *ReplicationVersions) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2770,6 +2892,9 @@ func (m *ReplicationVersions) GetLastWriteVersion() *types.Int64Value { } func init() { + proto.RegisterType((*ExecutionStats)(nil), "temporal.server.api.persistenceblobs.v1.ExecutionStats") + proto.RegisterType((*ReplicationState)(nil), "temporal.server.api.persistenceblobs.v1.ReplicationState") + proto.RegisterMapType((map[string]*v1.ReplicationInfo)(nil), "temporal.server.api.persistenceblobs.v1.ReplicationState.LastReplicationInfoEntry") proto.RegisterType((*ImmutableClusterMetadata)(nil), "temporal.server.api.persistenceblobs.v1.ImmutableClusterMetadata") proto.RegisterType((*ActivityInfo)(nil), "temporal.server.api.persistenceblobs.v1.ActivityInfo") proto.RegisterType((*ShardInfo)(nil), "temporal.server.api.persistenceblobs.v1.ShardInfo") @@ -2778,7 +2903,7 @@ func init() { proto.RegisterMapType((map[string]int64)(nil), "temporal.server.api.persistenceblobs.v1.ShardInfo.ClusterTransferAckLevelEntry") proto.RegisterMapType((map[string]int64)(nil), "temporal.server.api.persistenceblobs.v1.ShardInfo.ReplicationDlqAckLevelEntry") proto.RegisterType((*ReplicationTaskInfo)(nil), "temporal.server.api.persistenceblobs.v1.ReplicationTaskInfo") - proto.RegisterMapType((map[string]*v14.ReplicationInfo)(nil), "temporal.server.api.persistenceblobs.v1.ReplicationTaskInfo.LastReplicationInfoEntry") + proto.RegisterMapType((map[string]*v1.ReplicationInfo)(nil), "temporal.server.api.persistenceblobs.v1.ReplicationTaskInfo.LastReplicationInfoEntry") proto.RegisterType((*TimerTaskInfo)(nil), "temporal.server.api.persistenceblobs.v1.TimerTaskInfo") proto.RegisterType((*TransferTaskInfo)(nil), "temporal.server.api.persistenceblobs.v1.TransferTaskInfo") proto.RegisterType((*HistoryBranchRange)(nil), "temporal.server.api.persistenceblobs.v1.HistoryBranchRange") @@ -2792,8 +2917,8 @@ func init() { proto.RegisterType((*RequestCancelInfo)(nil), "temporal.server.api.persistenceblobs.v1.RequestCancelInfo") proto.RegisterType((*WorkflowExecutionState)(nil), "temporal.server.api.persistenceblobs.v1.WorkflowExecutionState") proto.RegisterType((*WorkflowExecutionInfo)(nil), "temporal.server.api.persistenceblobs.v1.WorkflowExecutionInfo") - proto.RegisterMapType((map[string]*v12.Payload)(nil), "temporal.server.api.persistenceblobs.v1.WorkflowExecutionInfo.MemoEntry") - proto.RegisterMapType((map[string]*v12.Payload)(nil), "temporal.server.api.persistenceblobs.v1.WorkflowExecutionInfo.SearchAttributesEntry") + proto.RegisterMapType((map[string]*v13.Payload)(nil), "temporal.server.api.persistenceblobs.v1.WorkflowExecutionInfo.MemoEntry") + proto.RegisterMapType((map[string]*v13.Payload)(nil), "temporal.server.api.persistenceblobs.v1.WorkflowExecutionInfo.SearchAttributesEntry") proto.RegisterType((*Checksum)(nil), "temporal.server.api.persistenceblobs.v1.Checksum") proto.RegisterType((*ChildExecutionInfo)(nil), "temporal.server.api.persistenceblobs.v1.ChildExecutionInfo") proto.RegisterType((*NamespaceDetail)(nil), "temporal.server.api.persistenceblobs.v1.NamespaceDetail") @@ -2802,7 +2927,7 @@ func init() { proto.RegisterType((*NamespaceReplicationConfig)(nil), "temporal.server.api.persistenceblobs.v1.NamespaceReplicationConfig") proto.RegisterType((*NamespaceConfig)(nil), "temporal.server.api.persistenceblobs.v1.NamespaceConfig") proto.RegisterType((*ReplicationData)(nil), "temporal.server.api.persistenceblobs.v1.ReplicationData") - proto.RegisterMapType((map[string]*v14.ReplicationInfo)(nil), "temporal.server.api.persistenceblobs.v1.ReplicationData.LastReplicationInfoEntry") + proto.RegisterMapType((map[string]*v1.ReplicationInfo)(nil), "temporal.server.api.persistenceblobs.v1.ReplicationData.LastReplicationInfoEntry") proto.RegisterType((*ReplicationVersions)(nil), "temporal.server.api.persistenceblobs.v1.ReplicationVersions") } @@ -2811,268 +2936,337 @@ func init() { } var fileDescriptor_ef806e155800e59a = []byte{ - // 4132 bytes of a gzipped FileDescriptorProto + // 4195 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x3b, 0x4d, 0x73, 0x1b, 0x47, - 0x76, 0x02, 0xbf, 0xf1, 0xc0, 0x0f, 0xa0, 0xf9, 0x35, 0x84, 0x64, 0x88, 0x82, 0x25, 0x8b, 0xb2, - 0xb4, 0xa0, 0x24, 0xdb, 0x92, 0x6c, 0xee, 0x6e, 0x56, 0xfc, 0x50, 0x0c, 0xad, 0x4c, 0xcb, 0x43, - 0xca, 0xda, 0xb8, 0xb2, 0x35, 0x19, 0xcc, 0x34, 0xc8, 0x29, 0x0e, 0x66, 0xe0, 0x99, 0x01, 0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, 0x8e, 0x17, 0x05, 0xa7, 0xfa, 0xb2, 0x95, - 0x8f, 0x25, 0x7f, 0x5a, 0x80, 0xe5, 0x58, 0x9d, 0xf4, 0x52, 0x69, 0x25, 0xd4, 0xe5, 0xd9, 0xb7, - 0xd0, 0x45, 0x5d, 0x43, 0xae, 0xc8, 0x82, 0x95, 0x83, 0x22, 0x7f, 0x59, 0x80, 0x15, 0xa9, 0x85, - 0x6a, 0x7d, 0x5c, 0x8f, 0xe9, 0x6f, 0xbb, 0x26, 0x7a, 0x22, 0x32, 0x67, 0x4d, 0xb2, 0x58, 0xf2, - 0x17, 0x05, 0x16, 0x67, 0x13, 0x2d, 0x6c, 0xf7, 0x73, 0x65, 0x55, 0x66, 0x50, 0x9b, 0xdd, 0xd7, - 0xd0, 0x46, 0x19, 0x68, 0xdb, 0xfd, 0x3c, 0xbd, 0x2e, 0x4b, 0x41, 0x2e, 0xb2, 0xfa, 0x14, 0xae, - 0x9c, 0xb7, 0xb1, 0xa4, 0x0c, 0xa3, 0x47, 0xf4, 0x54, 0x24, 0xfc, 0xec, 0x27, 0x73, 0xeb, 0x63, - 0xd3, 0xed, 0x51, 0xe1, 0xee, 0xfc, 0xe3, 0x83, 0x91, 0x47, 0x85, 0xaa, 0x05, 0x2b, 0x67, 0x6e, - 0x4c, 0x8e, 0xa0, 0xbb, 0xaa, 0xa0, 0xf3, 0xbd, 0x45, 0x19, 0x24, 0x51, 0x38, 0x77, 0xd5, 0x2f, - 0xa4, 0x70, 0x13, 0x2e, 0x9f, 0xb3, 0x66, 0x17, 0x11, 0x55, 0xff, 0x97, 0x09, 0x98, 0x57, 0x64, - 0xb1, 0xe4, 0x08, 0x43, 0x67, 0xf6, 0x0c, 0x29, 0xe4, 0x9e, 0x21, 0xb2, 0xca, 0x93, 0x51, 0xb4, - 0xa8, 0x83, 0x04, 0x35, 0x6d, 0xb2, 0x08, 0x13, 0x41, 0xcf, 0x63, 0x38, 0x11, 0x49, 0x83, 0x9e, - 0xd7, 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 0x5d, 0xe1, 0xb3, 0xdc, 0x54, 0x94, 0xbf, 0x01, - 0xb3, 0x01, 0x0d, 0x29, 0x4f, 0x78, 0x98, 0x11, 0x61, 0xb9, 0x32, 0xa5, 0xcf, 0x20, 0xf4, 0xa5, - 0x00, 0x92, 0x65, 0x98, 0x44, 0x03, 0x72, 0x6c, 0xac, 0x3e, 0x46, 0xf5, 0x09, 0xf6, 0xd9, 0xb4, - 0xab, 0x7f, 0x0c, 0xda, 0x59, 0x1a, 0xe6, 0x38, 0x45, 0x33, 0xed, 0xc7, 0xef, 0xe4, 0xae, 0x8c, - 0xb2, 0x8c, 0x99, 0x45, 0x61, 0xa2, 0x55, 0x4f, 0xfa, 0xc5, 0x18, 0xcc, 0xec, 0xcb, 0x02, 0xe3, - 0x77, 0xc2, 0x87, 0x76, 0x60, 0x5a, 0x54, 0x71, 0x5c, 0xce, 0x38, 0xca, 0xa9, 0xa7, 0x33, 0xbb, - 0x44, 0x00, 0x27, 0x45, 0x19, 0xa5, 0x28, 0xf9, 0x20, 0x14, 0x16, 0xe3, 0x39, 0xc8, 0x04, 0x1c, - 0xe5, 0x4d, 0xa0, 0xbc, 0x7b, 0xe7, 0xeb, 0x25, 0x77, 0x55, 0xa4, 0xe6, 0x28, 0x7e, 0xfe, 0xa4, - 0x1f, 0xa8, 0x7a, 0xfc, 0x64, 0xda, 0xe3, 0x59, 0x35, 0x26, 0x93, 0x59, 0x59, 0xcf, 0x71, 0x5f, - 0x8d, 0xdb, 0x28, 0xa2, 0x00, 0x61, 0x69, 0x5f, 0xec, 0xf1, 0x3c, 0x2b, 0x99, 0xa4, 0xc2, 0xdb, - 0x15, 0xab, 0x02, 0xd5, 0xaa, 0xc8, 0x16, 0xcc, 0x1d, 0x3b, 0xa1, 0xd3, 0x72, 0x5c, 0x27, 0x3a, - 0xe5, 0x79, 0x52, 0x69, 0x60, 0xe4, 0x9f, 0x4d, 0x58, 0x30, 0x31, 0xfd, 0xb7, 0x31, 0x28, 0xcb, -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c5, 0x35, 0x09, 0xa8, 0x62, 0xc7, 0x13, 0xec, 0xb3, 0x69, - 0xa7, 0x75, 0x19, 0xc9, 0xe8, 0xf2, 0x07, 0x50, 0x34, 0x3d, 0x8b, 0x32, 0x41, 0xa1, 0x36, 0x8a, - 0x47, 0xd4, 0xc6, 0xd0, 0x47, 0x54, 0xff, 0xc4, 0xf5, 0x44, 0x5a, 0xfd, 0x97, 0x05, 0x98, 0x13, - 0x14, 0xfb, 0x4c, 0x13, 0xe6, 0x71, 0x2f, 0xa1, 0x24, 0x75, 0x61, 0x67, 0x62, 0x01, 0xf7, 0xe6, - 0xc1, 0x6b, 0x0e, 0x08, 0x62, 0x16, 0x4c, 0xf0, 0x43, 0x28, 0xb6, 0xfd, 0xe0, 0x88, 0x6f, 0xf9, - 0xe0, 0xc4, 0x70, 0x8a, 0x11, 0xe3, 0x66, 0x13, 0x18, 0x43, 0x55, 0xb8, 0xf7, 0xe2, 0xef, 0xfa, - 0x3f, 0x15, 0xa0, 0x88, 0x47, 0xc9, 0x80, 0x06, 0x73, 0xba, 0x1d, 0x3b, 0x92, 0x6d, 0xc7, 0x6e, - 0x40, 0x09, 0xdb, 0x2c, 0xc2, 0x10, 0x47, 0x07, 0x97, 0x88, 0x9c, 0x5c, 0xb6, 0x4e, 0xd5, 0x0e, - 0x1a, 0xaf, 0x72, 0xd1, 0x19, 0x45, 0xf3, 0x6c, 0x05, 0xa6, 0x78, 0x61, 0x14, 0x47, 0x84, 0x49, - 0xfc, 0x6e, 0xda, 0xf5, 0x2f, 0x47, 0x60, 0xea, 0xff, 0x23, 0xc8, 0x65, 0x3c, 0x78, 0xac, 0xcf, - 0x83, 0x37, 0xa0, 0x64, 0x05, 0x34, 0x2e, 0x92, 0xc7, 0x07, 0xaf, 0x00, 0x27, 0xc7, 0x15, 0xc8, - 0x2c, 0xdf, 0xc4, 0x45, 0x96, 0xaf, 0x1e, 0x42, 0xe5, 0xb1, 0xeb, 0xfa, 0x96, 0x19, 0x51, 0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, 0x88, 0xce, 0xfb, 0x16, 0xb6, 0xe1, 0xbf, 0xab, 0x05, 0xc9, 0xbd, - 0x00, 0xe0, 0xeb, 0xd2, 0x77, 0x01, 0x90, 0xd5, 0x7b, 0xac, 0x5f, 0xef, 0xff, 0x2d, 0xc0, 0x92, - 0x4c, 0x05, 0x76, 0xbe, 0xa0, 0x56, 0x8f, 0xe5, 0xf3, 0x2c, 0xac, 0x51, 0x1c, 0x89, 0x47, 0x0c, - 0x65, 0xa4, 0x82, 0x18, 0x09, 0x11, 0xc9, 0x48, 0x49, 0x54, 0x1a, 0x51, 0xa3, 0xd2, 0x53, 0x18, - 0x67, 0x41, 0x53, 0x3a, 0xce, 0xbb, 0xc3, 0xe5, 0xbf, 0x69, 0x3d, 0x74, 0x2e, 0x82, 0x3c, 0x81, - 0x09, 0x25, 0x00, 0xcf, 0xde, 0x6f, 0x9c, 0xe1, 0x47, 0xb9, 0x52, 0x7a, 0xa1, 0x2e, 0xb8, 0xeb, - 0xff, 0x78, 0x05, 0x16, 0xfb, 0x68, 0x72, 0x23, 0xc4, 0x0f, 0x06, 0x86, 0xe7, 0x1f, 0xf6, 0x85, - 0xe7, 0x06, 0xcc, 0x77, 0xcd, 0x80, 0x6d, 0x67, 0x4e, 0xb0, 0xa9, 0x70, 0x54, 0x26, 0x4f, 0x14, - 0xf4, 0xfd, 0x61, 0xbf, 0xcc, 0x31, 0xe9, 0x3c, 0x51, 0x50, 0xa7, 0xce, 0x80, 0x12, 0x07, 0xf2, - 0x3c, 0x71, 0xf0, 0xa6, 0x93, 0xf7, 0x61, 0xc5, 0xf2, 0x3b, 0x5d, 0x97, 0x62, 0x49, 0x9c, 0xb1, - 0x3e, 0xde, 0x43, 0x58, 0x4a, 0x08, 0x52, 0xe6, 0x77, 0x0b, 0xca, 0x59, 0x56, 0xf4, 0x96, 0x69, - 0x7d, 0x2e, 0xc3, 0x41, 0x3e, 0xc8, 0x19, 0x85, 0x7a, 0x96, 0x6f, 0x3b, 0xde, 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, + 0x5f, 0xbf, 0xaa, 0xe6, 0x7e, 0xfe, 0x75, 0xf5, 0xc2, 0x97, 0x5f, 0x57, 0x2f, 0xfc, 0xea, 0xeb, + 0xea, 0x85, 0x4f, 0x7f, 0x78, 0xe0, 0xc5, 0xc6, 0xb1, 0xbd, 0x21, 0xff, 0x4d, 0xdd, 0x4c, 0xc3, + 0x5a, 0x53, 0xa8, 0xdc, 0xdb, 0xff, 0x17, 0x00, 0x00, 0xff, 0xff, 0x60, 0xc5, 0xf4, 0xf9, 0xde, + 0x3a, 0x00, 0x00, +} + +func (this *ExecutionStats) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*ExecutionStats) + if !ok { + that2, ok := that.(ExecutionStats) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.HistorySize != that1.HistorySize { + return false + } + return true } +func (this *ReplicationState) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + that1, ok := that.(*ReplicationState) + if !ok { + that2, ok := that.(ReplicationState) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.CurrentVersion != that1.CurrentVersion { + return false + } + if this.StartVersion != that1.StartVersion { + return false + } + if this.LastWriteVersion != that1.LastWriteVersion { + return false + } + if this.LastWriteEventId != that1.LastWriteEventId { + return false + } + if len(this.LastReplicationInfo) != len(that1.LastReplicationInfo) { + return false + } + for i := range this.LastReplicationInfo { + if !this.LastReplicationInfo[i].Equal(that1.LastReplicationInfo[i]) { + return false + } + } + return true +} func (this *ImmutableClusterMetadata) Equal(that interface{}) bool { if that == nil { return this == nil @@ -4474,6 +4668,42 @@ func (this *ReplicationVersions) Equal(that interface{}) bool { } return true } +func (this *ExecutionStats) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&persistenceblobs.ExecutionStats{") + s = append(s, "HistorySize: "+fmt.Sprintf("%#v", this.HistorySize)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} +func (this *ReplicationState) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 9) + s = append(s, "&persistenceblobs.ReplicationState{") + s = append(s, "CurrentVersion: "+fmt.Sprintf("%#v", this.CurrentVersion)+",\n") + s = append(s, "StartVersion: "+fmt.Sprintf("%#v", this.StartVersion)+",\n") + s = append(s, "LastWriteVersion: "+fmt.Sprintf("%#v", this.LastWriteVersion)+",\n") + s = append(s, "LastWriteEventId: "+fmt.Sprintf("%#v", this.LastWriteEventId)+",\n") + keysForLastReplicationInfo := make([]string, 0, len(this.LastReplicationInfo)) + for k, _ := range this.LastReplicationInfo { + keysForLastReplicationInfo = append(keysForLastReplicationInfo, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForLastReplicationInfo) + mapStringForLastReplicationInfo := "map[string]*v1.ReplicationInfo{" + for _, k := range keysForLastReplicationInfo { + mapStringForLastReplicationInfo += fmt.Sprintf("%#v: %#v,", k, this.LastReplicationInfo[k]) + } + mapStringForLastReplicationInfo += "}" + if this.LastReplicationInfo != nil { + s = append(s, "LastReplicationInfo: "+mapStringForLastReplicationInfo+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} func (this *ImmutableClusterMetadata) GoString() string { if this == nil { return "nil" @@ -4630,7 +4860,7 @@ func (this *ReplicationTaskInfo) GoString() string { keysForLastReplicationInfo = append(keysForLastReplicationInfo, k) } github_com_gogo_protobuf_sortkeys.Strings(keysForLastReplicationInfo) - mapStringForLastReplicationInfo := "map[string]*v14.ReplicationInfo{" + mapStringForLastReplicationInfo := "map[string]*v1.ReplicationInfo{" for _, k := range keysForLastReplicationInfo { mapStringForLastReplicationInfo += fmt.Sprintf("%#v: %#v,", k, this.LastReplicationInfo[k]) } @@ -4911,7 +5141,7 @@ func (this *WorkflowExecutionInfo) GoString() string { keysForSearchAttributes = append(keysForSearchAttributes, k) } github_com_gogo_protobuf_sortkeys.Strings(keysForSearchAttributes) - mapStringForSearchAttributes := "map[string]*v12.Payload{" + mapStringForSearchAttributes := "map[string]*v13.Payload{" for _, k := range keysForSearchAttributes { mapStringForSearchAttributes += fmt.Sprintf("%#v: %#v,", k, this.SearchAttributes[k]) } @@ -4924,7 +5154,7 @@ func (this *WorkflowExecutionInfo) GoString() string { keysForMemo = append(keysForMemo, k) } github_com_gogo_protobuf_sortkeys.Strings(keysForMemo) - mapStringForMemo := "map[string]*v12.Payload{" + mapStringForMemo := "map[string]*v13.Payload{" for _, k := range keysForMemo { mapStringForMemo += fmt.Sprintf("%#v: %#v,", k, this.Memo[k]) } @@ -5064,7 +5294,7 @@ func (this *ReplicationData) GoString() string { keysForLastReplicationInfo = append(keysForLastReplicationInfo, k) } github_com_gogo_protobuf_sortkeys.Strings(keysForLastReplicationInfo) - mapStringForLastReplicationInfo := "map[string]*v14.ReplicationInfo{" + mapStringForLastReplicationInfo := "map[string]*v1.ReplicationInfo{" for _, k := range keysForLastReplicationInfo { mapStringForLastReplicationInfo += fmt.Sprintf("%#v: %#v,", k, this.LastReplicationInfo[k]) } @@ -5098,7 +5328,7 @@ func valueToGoStringMessage(v interface{}, typ string) string { pv := reflect.Indirect(rv).Interface() return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) } -func (m *ImmutableClusterMetadata) Marshal() (dAtA []byte, err error) { +func (m *ExecutionStats) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5108,32 +5338,25 @@ func (m *ImmutableClusterMetadata) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ImmutableClusterMetadata) MarshalTo(dAtA []byte) (int, error) { +func (m *ExecutionStats) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ImmutableClusterMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ExecutionStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.HistoryShardCount != 0 { - i = encodeVarintMessage(dAtA, i, uint64(m.HistoryShardCount)) - i-- - dAtA[i] = 0x10 - } - if len(m.ClusterName) > 0 { - i -= len(m.ClusterName) - copy(dAtA[i:], m.ClusterName) - i = encodeVarintMessage(dAtA, i, uint64(len(m.ClusterName))) + if m.HistorySize != 0 { + i = encodeVarintMessage(dAtA, i, uint64(m.HistorySize)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *ActivityInfo) Marshal() (dAtA []byte, err error) { +func (m *ReplicationState) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5143,24 +5366,128 @@ func (m *ActivityInfo) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ActivityInfo) MarshalTo(dAtA []byte) (int, error) { +func (m *ReplicationState) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ActivityInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ReplicationState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.LastHeartbeatUpdateTime != nil { - n1, err1 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.LastHeartbeatUpdateTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.LastHeartbeatUpdateTime):]) - if err1 != nil { - return 0, err1 + if len(m.LastReplicationInfo) > 0 { + for k := range m.LastReplicationInfo { + v := m.LastReplicationInfo[k] + baseI := i + if v != nil { + { + size, err := v.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMessage(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarintMessage(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarintMessage(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x2a } - i -= n1 - i = encodeVarintMessage(dAtA, i, uint64(n1)) - i-- + } + if m.LastWriteEventId != 0 { + i = encodeVarintMessage(dAtA, i, uint64(m.LastWriteEventId)) + i-- + dAtA[i] = 0x20 + } + if m.LastWriteVersion != 0 { + i = encodeVarintMessage(dAtA, i, uint64(m.LastWriteVersion)) + i-- + dAtA[i] = 0x18 + } + if m.StartVersion != 0 { + i = encodeVarintMessage(dAtA, i, uint64(m.StartVersion)) + i-- + dAtA[i] = 0x10 + } + if m.CurrentVersion != 0 { + i = encodeVarintMessage(dAtA, i, uint64(m.CurrentVersion)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ImmutableClusterMetadata) 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 *ImmutableClusterMetadata) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ImmutableClusterMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.HistoryShardCount != 0 { + i = encodeVarintMessage(dAtA, i, uint64(m.HistoryShardCount)) + i-- + dAtA[i] = 0x10 + } + if len(m.ClusterName) > 0 { + i -= len(m.ClusterName) + copy(dAtA[i:], m.ClusterName) + i = encodeVarintMessage(dAtA, i, uint64(len(m.ClusterName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ActivityInfo) 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 *ActivityInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActivityInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.LastHeartbeatUpdateTime != nil { + n2, err2 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.LastHeartbeatUpdateTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.LastHeartbeatUpdateTime):]) + if err2 != nil { + return 0, err2 + } + i -= n2 + i = encodeVarintMessage(dAtA, i, uint64(n2)) + i-- dAtA[i] = 0x2 i-- dAtA[i] = 0x92 @@ -5238,12 +5565,12 @@ func (m *ActivityInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0xd9 } if m.RetryExpirationTime != nil { - n4, err4 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.RetryExpirationTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.RetryExpirationTime):]) - if err4 != nil { - return 0, err4 + n5, err5 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.RetryExpirationTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.RetryExpirationTime):]) + if err5 != nil { + return 0, err5 } - i -= n4 - i = encodeVarintMessage(dAtA, i, uint64(n4)) + i -= n5 + i = encodeVarintMessage(dAtA, i, uint64(n5)) i-- dAtA[i] = 0x1 i-- @@ -5257,24 +5584,24 @@ func (m *ActivityInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0xc8 } if m.RetryMaximumInterval != nil { - n5, err5 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.RetryMaximumInterval, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.RetryMaximumInterval):]) - if err5 != nil { - return 0, err5 + n6, err6 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.RetryMaximumInterval, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.RetryMaximumInterval):]) + if err6 != nil { + return 0, err6 } - i -= n5 - i = encodeVarintMessage(dAtA, i, uint64(n5)) + i -= n6 + i = encodeVarintMessage(dAtA, i, uint64(n6)) i-- dAtA[i] = 0x1 i-- dAtA[i] = 0xc2 } if m.RetryInitialInterval != nil { - n6, err6 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.RetryInitialInterval, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.RetryInitialInterval):]) - if err6 != nil { - return 0, err6 + n7, err7 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.RetryInitialInterval, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.RetryInitialInterval):]) + if err7 != nil { + return 0, err7 } - i -= n6 - i = encodeVarintMessage(dAtA, i, uint64(n6)) + i -= n7 + i = encodeVarintMessage(dAtA, i, uint64(n7)) i-- dAtA[i] = 0x1 i-- @@ -5344,43 +5671,43 @@ func (m *ActivityInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x80 } if m.HeartbeatTimeout != nil { - n7, err7 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.HeartbeatTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.HeartbeatTimeout):]) - if err7 != nil { - return 0, err7 - } - i -= n7 - i = encodeVarintMessage(dAtA, i, uint64(n7)) - i-- - dAtA[i] = 0x7a - } - if m.StartToCloseTimeout != nil { - n8, err8 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.StartToCloseTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.StartToCloseTimeout):]) + n8, err8 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.HeartbeatTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.HeartbeatTimeout):]) if err8 != nil { return 0, err8 } i -= n8 i = encodeVarintMessage(dAtA, i, uint64(n8)) i-- - dAtA[i] = 0x72 + dAtA[i] = 0x7a } - if m.ScheduleToCloseTimeout != nil { - n9, err9 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.ScheduleToCloseTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ScheduleToCloseTimeout):]) + if m.StartToCloseTimeout != nil { + n9, err9 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.StartToCloseTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.StartToCloseTimeout):]) if err9 != nil { return 0, err9 } i -= n9 i = encodeVarintMessage(dAtA, i, uint64(n9)) i-- - dAtA[i] = 0x6a + dAtA[i] = 0x72 } - if m.ScheduleToStartTimeout != nil { - n10, err10 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.ScheduleToStartTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ScheduleToStartTimeout):]) + if m.ScheduleToCloseTimeout != nil { + n10, err10 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.ScheduleToCloseTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ScheduleToCloseTimeout):]) if err10 != nil { return 0, err10 } i -= n10 i = encodeVarintMessage(dAtA, i, uint64(n10)) i-- + dAtA[i] = 0x6a + } + if m.ScheduleToStartTimeout != nil { + n11, err11 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.ScheduleToStartTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ScheduleToStartTimeout):]) + if err11 != nil { + return 0, err11 + } + i -= n11 + i = encodeVarintMessage(dAtA, i, uint64(n11)) + i-- dAtA[i] = 0x62 } if len(m.RequestId) > 0 { @@ -5398,12 +5725,12 @@ func (m *ActivityInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x52 } if m.StartedTime != nil { - n11, err11 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.StartedTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartedTime):]) - if err11 != nil { - return 0, err11 + n12, err12 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.StartedTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartedTime):]) + if err12 != nil { + return 0, err12 } - i -= n11 - i = encodeVarintMessage(dAtA, i, uint64(n11)) + i -= n12 + i = encodeVarintMessage(dAtA, i, uint64(n12)) i-- dAtA[i] = 0x4a } @@ -5425,12 +5752,12 @@ func (m *ActivityInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x30 } if m.ScheduledTime != nil { - n13, err13 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.ScheduledTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.ScheduledTime):]) - if err13 != nil { - return 0, err13 + n14, err14 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.ScheduledTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.ScheduledTime):]) + if err14 != nil { + return 0, err14 } - i -= n13 - i = encodeVarintMessage(dAtA, i, uint64(n13)) + i -= n14 + i = encodeVarintMessage(dAtA, i, uint64(n14)) i-- dAtA[i] = 0x2a } @@ -6743,12 +7070,12 @@ func (m *WorkflowExecutionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { } } if m.RetryExpirationTime != nil { - n32, err32 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.RetryExpirationTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.RetryExpirationTime):]) - if err32 != nil { - return 0, err32 + n33, err33 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.RetryExpirationTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.RetryExpirationTime):]) + if err33 != nil { + return 0, err33 } - i -= n32 - i = encodeVarintMessage(dAtA, i, uint64(n32)) + i -= n33 + i = encodeVarintMessage(dAtA, i, uint64(n33)) i-- dAtA[i] = 0x2 i-- @@ -6770,24 +7097,24 @@ func (m *WorkflowExecutionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0xc8 } if m.RetryMaximumInterval != nil { - n33, err33 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.RetryMaximumInterval, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.RetryMaximumInterval):]) - if err33 != nil { - return 0, err33 + n34, err34 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.RetryMaximumInterval, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.RetryMaximumInterval):]) + if err34 != nil { + return 0, err34 } - i -= n33 - i = encodeVarintMessage(dAtA, i, uint64(n33)) + i -= n34 + i = encodeVarintMessage(dAtA, i, uint64(n34)) i-- dAtA[i] = 0x2 i-- dAtA[i] = 0xc2 } if m.RetryInitialInterval != nil { - n34, err34 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.RetryInitialInterval, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.RetryInitialInterval):]) - if err34 != nil { - return 0, err34 + n35, err35 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.RetryInitialInterval, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.RetryInitialInterval):]) + if err35 != nil { + return 0, err35 } - i -= n34 - i = encodeVarintMessage(dAtA, i, uint64(n34)) + i -= n35 + i = encodeVarintMessage(dAtA, i, uint64(n35)) i-- dAtA[i] = 0x2 i-- @@ -6801,12 +7128,12 @@ func (m *WorkflowExecutionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0xb0 } if m.StickyScheduleToStartTimeout != nil { - n35, err35 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.StickyScheduleToStartTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.StickyScheduleToStartTimeout):]) - if err35 != nil { - return 0, err35 + n36, err36 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.StickyScheduleToStartTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.StickyScheduleToStartTimeout):]) + if err36 != nil { + return 0, err36 } - i -= n35 - i = encodeVarintMessage(dAtA, i, uint64(n35)) + i -= n36 + i = encodeVarintMessage(dAtA, i, uint64(n36)) i-- dAtA[i] = 0x2 i-- @@ -6840,12 +7167,12 @@ func (m *WorkflowExecutionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x92 } if m.WorkflowTaskOriginalScheduledTime != nil { - n36, err36 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.WorkflowTaskOriginalScheduledTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.WorkflowTaskOriginalScheduledTime):]) - if err36 != nil { - return 0, err36 + n37, err37 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.WorkflowTaskOriginalScheduledTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.WorkflowTaskOriginalScheduledTime):]) + if err37 != nil { + return 0, err37 } - i -= n36 - i = encodeVarintMessage(dAtA, i, uint64(n36)) + i -= n37 + i = encodeVarintMessage(dAtA, i, uint64(n37)) i-- dAtA[i] = 0x2 i-- @@ -6864,24 +7191,24 @@ func (m *WorkflowExecutionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0xf8 } if m.WorkflowTaskScheduledTime != nil { - n37, err37 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.WorkflowTaskScheduledTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.WorkflowTaskScheduledTime):]) - if err37 != nil { - return 0, err37 + n38, err38 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.WorkflowTaskScheduledTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.WorkflowTaskScheduledTime):]) + if err38 != nil { + return 0, err38 } - i -= n37 - i = encodeVarintMessage(dAtA, i, uint64(n37)) + i -= n38 + i = encodeVarintMessage(dAtA, i, uint64(n38)) i-- dAtA[i] = 0x1 i-- dAtA[i] = 0xf2 } if m.WorkflowTaskStartedTime != nil { - n38, err38 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.WorkflowTaskStartedTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.WorkflowTaskStartedTime):]) - if err38 != nil { - return 0, err38 + n39, err39 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.WorkflowTaskStartedTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.WorkflowTaskStartedTime):]) + if err39 != nil { + return 0, err39 } - i -= n38 - i = encodeVarintMessage(dAtA, i, uint64(n38)) + i -= n39 + i = encodeVarintMessage(dAtA, i, uint64(n39)) i-- dAtA[i] = 0x1 i-- @@ -6895,12 +7222,12 @@ func (m *WorkflowExecutionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0xe0 } if m.WorkflowTaskTimeout != nil { - n39, err39 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.WorkflowTaskTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.WorkflowTaskTimeout):]) - if err39 != nil { - return 0, err39 + n40, err40 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.WorkflowTaskTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.WorkflowTaskTimeout):]) + if err40 != nil { + return 0, err40 } - i -= n39 - i = encodeVarintMessage(dAtA, i, uint64(n39)) + i -= n40 + i = encodeVarintMessage(dAtA, i, uint64(n40)) i-- dAtA[i] = 0x1 i-- @@ -6928,24 +7255,24 @@ func (m *WorkflowExecutionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0xc0 } if m.LastUpdateTime != nil { - n40, err40 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.LastUpdateTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.LastUpdateTime):]) - if err40 != nil { - return 0, err40 + n41, err41 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.LastUpdateTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.LastUpdateTime):]) + if err41 != nil { + return 0, err41 } - i -= n40 - i = encodeVarintMessage(dAtA, i, uint64(n40)) + i -= n41 + i = encodeVarintMessage(dAtA, i, uint64(n41)) i-- dAtA[i] = 0x1 i-- dAtA[i] = 0xba } if m.StartTime != nil { - n41, err41 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.StartTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartTime):]) - if err41 != nil { - return 0, err41 + n42, err42 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.StartTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartTime):]) + if err42 != nil { + return 0, err42 } - i -= n41 - i = encodeVarintMessage(dAtA, i, uint64(n41)) + i -= n42 + i = encodeVarintMessage(dAtA, i, uint64(n42)) i-- dAtA[i] = 0x1 i-- @@ -6999,33 +7326,33 @@ func (m *WorkflowExecutionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x78 } if m.DefaultWorkflowTaskTimeout != nil { - n43, err43 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.DefaultWorkflowTaskTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.DefaultWorkflowTaskTimeout):]) - if err43 != nil { - return 0, err43 - } - i -= n43 - i = encodeVarintMessage(dAtA, i, uint64(n43)) - i-- - dAtA[i] = 0x62 - } - if m.WorkflowRunTimeout != nil { - n44, err44 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.WorkflowRunTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.WorkflowRunTimeout):]) + n44, err44 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.DefaultWorkflowTaskTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.DefaultWorkflowTaskTimeout):]) if err44 != nil { return 0, err44 } i -= n44 i = encodeVarintMessage(dAtA, i, uint64(n44)) i-- - dAtA[i] = 0x5a + dAtA[i] = 0x62 } - if m.WorkflowExecutionTimeout != nil { - n45, err45 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.WorkflowExecutionTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.WorkflowExecutionTimeout):]) + if m.WorkflowRunTimeout != nil { + n45, err45 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.WorkflowRunTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.WorkflowRunTimeout):]) if err45 != nil { return 0, err45 } i -= n45 i = encodeVarintMessage(dAtA, i, uint64(n45)) i-- + dAtA[i] = 0x5a + } + if m.WorkflowExecutionTimeout != nil { + n46, err46 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.WorkflowExecutionTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.WorkflowExecutionTimeout):]) + if err46 != nil { + return 0, err46 + } + i -= n46 + i = encodeVarintMessage(dAtA, i, uint64(n46)) + i-- dAtA[i] = 0x52 } if len(m.WorkflowTypeName) > 0 { @@ -7494,12 +7821,12 @@ func (m *NamespaceConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x12 } if m.Retention != nil { - n52, err52 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.Retention, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.Retention):]) - if err52 != nil { - return 0, err52 + n53, err53 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.Retention, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.Retention):]) + if err53 != nil { + return 0, err53 } - i -= n52 - i = encodeVarintMessage(dAtA, i, uint64(n52)) + i -= n53 + i = encodeVarintMessage(dAtA, i, uint64(n53)) i-- dAtA[i] = 0xa } @@ -7620,6 +7947,52 @@ func encodeVarintMessage(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } +func (m *ExecutionStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HistorySize != 0 { + n += 1 + sovMessage(uint64(m.HistorySize)) + } + return n +} + +func (m *ReplicationState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.CurrentVersion != 0 { + n += 1 + sovMessage(uint64(m.CurrentVersion)) + } + if m.StartVersion != 0 { + n += 1 + sovMessage(uint64(m.StartVersion)) + } + if m.LastWriteVersion != 0 { + n += 1 + sovMessage(uint64(m.LastWriteVersion)) + } + if m.LastWriteEventId != 0 { + n += 1 + sovMessage(uint64(m.LastWriteEventId)) + } + if len(m.LastReplicationInfo) > 0 { + for k, v := range m.LastReplicationInfo { + _ = k + _ = v + l = 0 + if v != nil { + l = v.Size() + l += 1 + sovMessage(uint64(l)) + } + mapEntrySize := 1 + len(k) + sovMessage(uint64(len(k))) + l + n += mapEntrySize + 1 + sovMessage(uint64(mapEntrySize)) + } + } + return n +} + func (m *ImmutableClusterMetadata) Size() (n int) { if m == nil { return 0 @@ -8744,6 +9117,40 @@ func sovMessage(x uint64) (n int) { func sozMessage(x uint64) (n int) { return sovMessage(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func (this *ExecutionStats) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ExecutionStats{`, + `HistorySize:` + fmt.Sprintf("%v", this.HistorySize) + `,`, + `}`, + }, "") + return s +} +func (this *ReplicationState) String() string { + if this == nil { + return "nil" + } + keysForLastReplicationInfo := make([]string, 0, len(this.LastReplicationInfo)) + for k, _ := range this.LastReplicationInfo { + keysForLastReplicationInfo = append(keysForLastReplicationInfo, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForLastReplicationInfo) + mapStringForLastReplicationInfo := "map[string]*v1.ReplicationInfo{" + for _, k := range keysForLastReplicationInfo { + mapStringForLastReplicationInfo += fmt.Sprintf("%v: %v,", k, this.LastReplicationInfo[k]) + } + mapStringForLastReplicationInfo += "}" + s := strings.Join([]string{`&ReplicationState{`, + `CurrentVersion:` + fmt.Sprintf("%v", this.CurrentVersion) + `,`, + `StartVersion:` + fmt.Sprintf("%v", this.StartVersion) + `,`, + `LastWriteVersion:` + fmt.Sprintf("%v", this.LastWriteVersion) + `,`, + `LastWriteEventId:` + fmt.Sprintf("%v", this.LastWriteEventId) + `,`, + `LastReplicationInfo:` + mapStringForLastReplicationInfo + `,`, + `}`, + }, "") + return s +} func (this *ImmutableClusterMetadata) String() string { if this == nil { return "nil" @@ -8762,10 +9169,10 @@ func (this *ActivityInfo) String() string { s := strings.Join([]string{`&ActivityInfo{`, `Version:` + fmt.Sprintf("%v", this.Version) + `,`, `ScheduledEventBatchId:` + fmt.Sprintf("%v", this.ScheduledEventBatchId) + `,`, - `ScheduledEvent:` + strings.Replace(fmt.Sprintf("%v", this.ScheduledEvent), "HistoryEvent", "v1.HistoryEvent", 1) + `,`, + `ScheduledEvent:` + strings.Replace(fmt.Sprintf("%v", this.ScheduledEvent), "HistoryEvent", "v11.HistoryEvent", 1) + `,`, `ScheduledTime:` + strings.Replace(fmt.Sprintf("%v", this.ScheduledTime), "Timestamp", "types.Timestamp", 1) + `,`, `StartedId:` + fmt.Sprintf("%v", this.StartedId) + `,`, - `StartedEvent:` + strings.Replace(fmt.Sprintf("%v", this.StartedEvent), "HistoryEvent", "v1.HistoryEvent", 1) + `,`, + `StartedEvent:` + strings.Replace(fmt.Sprintf("%v", this.StartedEvent), "HistoryEvent", "v11.HistoryEvent", 1) + `,`, `StartedTime:` + strings.Replace(fmt.Sprintf("%v", this.StartedTime), "Timestamp", "types.Timestamp", 1) + `,`, `ActivityId:` + fmt.Sprintf("%v", this.ActivityId) + `,`, `RequestId:` + fmt.Sprintf("%v", this.RequestId) + `,`, @@ -8786,11 +9193,11 @@ func (this *ActivityInfo) String() string { `RetryExpirationTime:` + strings.Replace(fmt.Sprintf("%v", this.RetryExpirationTime), "Timestamp", "types.Timestamp", 1) + `,`, `RetryBackoffCoefficient:` + fmt.Sprintf("%v", this.RetryBackoffCoefficient) + `,`, `RetryNonRetryableErrorTypes:` + fmt.Sprintf("%v", this.RetryNonRetryableErrorTypes) + `,`, - `RetryLastFailure:` + strings.Replace(fmt.Sprintf("%v", this.RetryLastFailure), "Failure", "v11.Failure", 1) + `,`, + `RetryLastFailure:` + strings.Replace(fmt.Sprintf("%v", this.RetryLastFailure), "Failure", "v12.Failure", 1) + `,`, `RetryLastWorkerIdentity:` + fmt.Sprintf("%v", this.RetryLastWorkerIdentity) + `,`, `NamespaceId:` + fmt.Sprintf("%v", this.NamespaceId) + `,`, `ScheduleId:` + fmt.Sprintf("%v", this.ScheduleId) + `,`, - `LastHeartbeatDetails:` + strings.Replace(fmt.Sprintf("%v", this.LastHeartbeatDetails), "Payloads", "v12.Payloads", 1) + `,`, + `LastHeartbeatDetails:` + strings.Replace(fmt.Sprintf("%v", this.LastHeartbeatDetails), "Payloads", "v13.Payloads", 1) + `,`, `LastHeartbeatUpdateTime:` + strings.Replace(fmt.Sprintf("%v", this.LastHeartbeatUpdateTime), "Timestamp", "types.Timestamp", 1) + `,`, `}`, }, "") @@ -8867,7 +9274,7 @@ func (this *ReplicationTaskInfo) String() string { keysForLastReplicationInfo = append(keysForLastReplicationInfo, k) } github_com_gogo_protobuf_sortkeys.Strings(keysForLastReplicationInfo) - mapStringForLastReplicationInfo := "map[string]*v14.ReplicationInfo{" + mapStringForLastReplicationInfo := "map[string]*v1.ReplicationInfo{" for _, k := range keysForLastReplicationInfo { mapStringForLastReplicationInfo += fmt.Sprintf("%v: %v,", k, this.LastReplicationInfo[k]) } @@ -9041,7 +9448,7 @@ func (this *SignalInfo) String() string { `InitiatedEventBatchId:` + fmt.Sprintf("%v", this.InitiatedEventBatchId) + `,`, `RequestId:` + fmt.Sprintf("%v", this.RequestId) + `,`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Input:` + strings.Replace(fmt.Sprintf("%v", this.Input), "Payloads", "v12.Payloads", 1) + `,`, + `Input:` + strings.Replace(fmt.Sprintf("%v", this.Input), "Payloads", "v13.Payloads", 1) + `,`, `Control:` + fmt.Sprintf("%v", this.Control) + `,`, `InitiatedId:` + fmt.Sprintf("%v", this.InitiatedId) + `,`, `}`, @@ -9083,7 +9490,7 @@ func (this *WorkflowExecutionInfo) String() string { keysForSearchAttributes = append(keysForSearchAttributes, k) } github_com_gogo_protobuf_sortkeys.Strings(keysForSearchAttributes) - mapStringForSearchAttributes := "map[string]*v12.Payload{" + mapStringForSearchAttributes := "map[string]*v13.Payload{" for _, k := range keysForSearchAttributes { mapStringForSearchAttributes += fmt.Sprintf("%v: %v,", k, this.SearchAttributes[k]) } @@ -9093,7 +9500,7 @@ func (this *WorkflowExecutionInfo) String() string { keysForMemo = append(keysForMemo, k) } github_com_gogo_protobuf_sortkeys.Strings(keysForMemo) - mapStringForMemo := "map[string]*v12.Payload{" + mapStringForMemo := "map[string]*v13.Payload{" for _, k := range keysForMemo { mapStringForMemo += fmt.Sprintf("%v: %v,", k, this.Memo[k]) } @@ -9180,10 +9587,10 @@ func (this *ChildExecutionInfo) String() string { `Version:` + fmt.Sprintf("%v", this.Version) + `,`, `InitiatedEventBatchId:` + fmt.Sprintf("%v", this.InitiatedEventBatchId) + `,`, `StartedId:` + fmt.Sprintf("%v", this.StartedId) + `,`, - `InitiatedEvent:` + strings.Replace(fmt.Sprintf("%v", this.InitiatedEvent), "HistoryEvent", "v1.HistoryEvent", 1) + `,`, + `InitiatedEvent:` + strings.Replace(fmt.Sprintf("%v", this.InitiatedEvent), "HistoryEvent", "v11.HistoryEvent", 1) + `,`, `StartedWorkflowId:` + fmt.Sprintf("%v", this.StartedWorkflowId) + `,`, `StartedRunId:` + fmt.Sprintf("%v", this.StartedRunId) + `,`, - `StartedEvent:` + strings.Replace(fmt.Sprintf("%v", this.StartedEvent), "HistoryEvent", "v1.HistoryEvent", 1) + `,`, + `StartedEvent:` + strings.Replace(fmt.Sprintf("%v", this.StartedEvent), "HistoryEvent", "v11.HistoryEvent", 1) + `,`, `CreateRequestId:` + fmt.Sprintf("%v", this.CreateRequestId) + `,`, `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, `WorkflowTypeName:` + fmt.Sprintf("%v", this.WorkflowTypeName) + `,`, @@ -9270,7 +9677,7 @@ func (this *ReplicationData) String() string { keysForLastReplicationInfo = append(keysForLastReplicationInfo, k) } github_com_gogo_protobuf_sortkeys.Strings(keysForLastReplicationInfo) - mapStringForLastReplicationInfo := "map[string]*v14.ReplicationInfo{" + mapStringForLastReplicationInfo := "map[string]*v1.ReplicationInfo{" for _, k := range keysForLastReplicationInfo { mapStringForLastReplicationInfo += fmt.Sprintf("%v: %v,", k, this.LastReplicationInfo[k]) } @@ -9301,6 +9708,336 @@ func valueToStringMessage(v interface{}) string { pv := reflect.Indirect(rv).Interface() return fmt.Sprintf("*%v", pv) } +func (m *ExecutionStats) 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 ErrIntOverflowMessage + } + 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: ExecutionStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ExecutionStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HistorySize", wireType) + } + m.HistorySize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HistorySize |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipMessage(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ReplicationState) 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 ErrIntOverflowMessage + } + 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: ReplicationState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReplicationState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentVersion", wireType) + } + m.CurrentVersion = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CurrentVersion |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartVersion", wireType) + } + m.StartVersion = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StartVersion |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastWriteVersion", wireType) + } + m.LastWriteVersion = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastWriteVersion |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastWriteEventId", wireType) + } + m.LastWriteEventId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastWriteEventId |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastReplicationInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.LastReplicationInfo == nil { + m.LastReplicationInfo = make(map[string]*v1.ReplicationInfo) + } + var mapkey string + var mapvalue *v1.ReplicationInfo + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthMessage + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMessage + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthMessage + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return ErrInvalidLengthMessage + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &v1.ReplicationInfo{} + if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := skipMessage(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.LastReplicationInfo[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMessage(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *ImmutableClusterMetadata) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -9502,7 +10239,7 @@ func (m *ActivityInfo) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.ScheduledEvent == nil { - m.ScheduledEvent = &v1.HistoryEvent{} + m.ScheduledEvent = &v11.HistoryEvent{} } if err := m.ScheduledEvent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -9593,7 +10330,7 @@ func (m *ActivityInfo) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.StartedEvent == nil { - m.StartedEvent = &v1.HistoryEvent{} + m.StartedEvent = &v11.HistoryEvent{} } if err := m.StartedEvent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -10204,7 +10941,7 @@ func (m *ActivityInfo) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.RetryLastFailure == nil { - m.RetryLastFailure = &v11.Failure{} + m.RetryLastFailure = &v12.Failure{} } if err := m.RetryLastFailure.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -10323,7 +11060,7 @@ func (m *ActivityInfo) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.LastHeartbeatDetails == nil { - m.LastHeartbeatDetails = &v12.Payloads{} + m.LastHeartbeatDetails = &v13.Payloads{} } if err := m.LastHeartbeatDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -11267,7 +12004,7 @@ func (m *ReplicationTaskInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TaskType |= v13.TaskType(b&0x7F) << shift + m.TaskType |= v14.TaskType(b&0x7F) << shift if b < 0x80 { break } @@ -11450,10 +12187,10 @@ func (m *ReplicationTaskInfo) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.LastReplicationInfo == nil { - m.LastReplicationInfo = make(map[string]*v14.ReplicationInfo) + m.LastReplicationInfo = make(map[string]*v1.ReplicationInfo) } var mapkey string - var mapvalue *v14.ReplicationInfo + var mapvalue *v1.ReplicationInfo for iNdEx < postIndex { entryPreIndex := iNdEx var wire uint64 @@ -11527,7 +12264,7 @@ func (m *ReplicationTaskInfo) Unmarshal(dAtA []byte) error { if postmsgIndex > l { return io.ErrUnexpectedEOF } - mapvalue = &v14.ReplicationInfo{} + mapvalue = &v1.ReplicationInfo{} if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { return err } @@ -11785,7 +12522,7 @@ func (m *TimerTaskInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TaskType |= v13.TaskType(b&0x7F) << shift + m.TaskType |= v14.TaskType(b&0x7F) << shift if b < 0x80 { break } @@ -11823,7 +12560,7 @@ func (m *TimerTaskInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.WorkflowBackoffType |= v13.WorkflowBackoffType(b&0x7F) << shift + m.WorkflowBackoffType |= v14.WorkflowBackoffType(b&0x7F) << shift if b < 0x80 { break } @@ -12103,7 +12840,7 @@ func (m *TransferTaskInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TaskType |= v13.TaskType(b&0x7F) << shift + m.TaskType |= v14.TaskType(b&0x7F) << shift if b < 0x80 { break } @@ -13757,7 +14494,7 @@ func (m *SignalInfo) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Input == nil { - m.Input = &v12.Payloads{} + m.Input = &v13.Payloads{} } if err := m.Input.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -14087,7 +14824,7 @@ func (m *WorkflowExecutionState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.State |= v13.WorkflowExecutionState(b&0x7F) << shift + m.State |= v14.WorkflowExecutionState(b&0x7F) << shift if b < 0x80 { break } @@ -15635,10 +16372,10 @@ func (m *WorkflowExecutionInfo) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.SearchAttributes == nil { - m.SearchAttributes = make(map[string]*v12.Payload) + m.SearchAttributes = make(map[string]*v13.Payload) } var mapkey string - var mapvalue *v12.Payload + var mapvalue *v13.Payload for iNdEx < postIndex { entryPreIndex := iNdEx var wire uint64 @@ -15712,7 +16449,7 @@ func (m *WorkflowExecutionInfo) Unmarshal(dAtA []byte) error { if postmsgIndex > l { return io.ErrUnexpectedEOF } - mapvalue = &v12.Payload{} + mapvalue = &v13.Payload{} if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { return err } @@ -15764,10 +16501,10 @@ func (m *WorkflowExecutionInfo) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Memo == nil { - m.Memo = make(map[string]*v12.Payload) + m.Memo = make(map[string]*v13.Payload) } var mapkey string - var mapvalue *v12.Payload + var mapvalue *v13.Payload for iNdEx < postIndex { entryPreIndex := iNdEx var wire uint64 @@ -15841,7 +16578,7 @@ func (m *WorkflowExecutionInfo) Unmarshal(dAtA []byte) error { if postmsgIndex > l { return io.ErrUnexpectedEOF } - mapvalue = &v12.Payload{} + mapvalue = &v13.Payload{} if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { return err } @@ -16079,7 +16816,7 @@ func (m *Checksum) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Flavor |= v13.ChecksumFlavor(b&0x7F) << shift + m.Flavor |= v14.ChecksumFlavor(b&0x7F) << shift if b < 0x80 { break } @@ -16258,7 +16995,7 @@ func (m *ChildExecutionInfo) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.InitiatedEvent == nil { - m.InitiatedEvent = &v1.HistoryEvent{} + m.InitiatedEvent = &v11.HistoryEvent{} } if err := m.InitiatedEvent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -16358,7 +17095,7 @@ func (m *ChildExecutionInfo) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.StartedEvent == nil { - m.StartedEvent = &v1.HistoryEvent{} + m.StartedEvent = &v11.HistoryEvent{} } if err := m.StartedEvent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -17540,10 +18277,10 @@ func (m *ReplicationData) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.LastReplicationInfo == nil { - m.LastReplicationInfo = make(map[string]*v14.ReplicationInfo) + m.LastReplicationInfo = make(map[string]*v1.ReplicationInfo) } var mapkey string - var mapvalue *v14.ReplicationInfo + var mapvalue *v1.ReplicationInfo for iNdEx < postIndex { entryPreIndex := iNdEx var wire uint64 @@ -17617,7 +18354,7 @@ func (m *ReplicationData) Unmarshal(dAtA []byte) error { if postmsgIndex > l { return io.ErrUnexpectedEOF } - mapvalue = &v14.ReplicationInfo{} + mapvalue = &v1.ReplicationInfo{} if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { return err } diff --git a/common/persistence/cassandra/cassandraPersistence.go b/common/persistence/cassandra/cassandraPersistence.go index e0f8f44c61e..7bb3d86b7d6 100644 --- a/common/persistence/cassandra/cassandraPersistence.go +++ b/common/persistence/cassandra/cassandraPersistence.go @@ -2806,7 +2806,7 @@ func (d *cassandraPersistence) RangeDeleteReplicationTaskFromDLQ( return nil } -func workflowExecutionFromRow(result map[string]interface{}) (*p.InternalWorkflowExecutionInfo, *p.ReplicationState, error) { +func workflowExecutionFromRow(result map[string]interface{}) (*p.InternalWorkflowExecutionInfo, *persistenceblobs.ReplicationState, error) { eiBytes, ok := result["execution"].([]byte) if !ok { return nil, nil, newPersistedTypeMismatchError("execution", "", eiBytes, result) @@ -2834,7 +2834,7 @@ func workflowExecutionFromRow(result map[string]interface{}) (*p.InternalWorkflo info := p.ProtoWorkflowExecutionToPartialInternalExecution(protoInfo, protoState, nextEventID) - var state *p.ReplicationState + var state *persistenceblobs.ReplicationState if protoInfo.ReplicationData != nil { protoReplVersions, err := ProtoReplicationVersionsFromResultMap(result) if err != nil { diff --git a/common/persistence/cassandra/cassandraPersistenceUtil.go b/common/persistence/cassandra/cassandraPersistenceUtil.go index bc951940d8f..693343589c5 100644 --- a/common/persistence/cassandra/cassandraPersistenceUtil.go +++ b/common/persistence/cassandra/cassandraPersistenceUtil.go @@ -425,7 +425,7 @@ func createExecution( batch *gocql.Batch, shardID int, executionInfo *p.InternalWorkflowExecutionInfo, - replicationState *p.ReplicationState, + replicationState *persistenceblobs.ReplicationState, versionHistories *serialization.DataBlob, checksum checksum.Checksum, cqlNowTimestampMillis int64, @@ -506,7 +506,7 @@ func createExecution( checksumDatablob.Data, checksumDatablob.Encoding.String()) } else if replicationState != nil { - replicationVersions, err := serialization.ReplicationVersionsToBlob(replicationState.GenerateVersionProto()) + replicationVersions, err := serialization.ReplicationVersionsToBlob(p.GenerateVersionProto(replicationState)) if err != nil { return err } @@ -537,7 +537,7 @@ func updateExecution( batch *gocql.Batch, shardID int, executionInfo *p.InternalWorkflowExecutionInfo, - replicationState *p.ReplicationState, + replicationState *persistenceblobs.ReplicationState, versionHistories *serialization.DataBlob, cqlNowTimestampMillis int64, condition int64, @@ -620,7 +620,7 @@ func updateExecution( rowTypeExecutionTaskID, condition) } else if replicationState != nil { - replicationVersions, err := serialization.ReplicationVersionsToBlob(replicationState.GenerateVersionProto()) + replicationVersions, err := serialization.ReplicationVersionsToBlob(p.GenerateVersionProto(replicationState)) if err != nil { return err } @@ -1536,12 +1536,12 @@ func updateBufferedEvents( } } -func ReplicationStateFromProtos(wei *persistenceblobs.WorkflowExecutionInfo, rv *persistenceblobs.ReplicationVersions) *p.ReplicationState { +func ReplicationStateFromProtos(wei *persistenceblobs.WorkflowExecutionInfo, rv *persistenceblobs.ReplicationVersions) *persistenceblobs.ReplicationState { if rv == nil && wei.ReplicationData == nil { return nil } - info := &p.ReplicationState{} + info := &persistenceblobs.ReplicationState{} info.CurrentVersion = wei.CurrentVersion if rv != nil { @@ -1551,7 +1551,7 @@ func ReplicationStateFromProtos(wei *persistenceblobs.WorkflowExecutionInfo, rv if wei.ReplicationData != nil { info.LastReplicationInfo = wei.ReplicationData.LastReplicationInfo - info.LastWriteEventID = wei.ReplicationData.LastWriteEventId + info.LastWriteEventId = wei.ReplicationData.LastWriteEventId } if info.LastReplicationInfo == nil { diff --git a/common/persistence/dataInterfaces.go b/common/persistence/dataInterfaces.go index 1cb0d9085a9..7e804c2862a 100644 --- a/common/persistence/dataInterfaces.go +++ b/common/persistence/dataInterfaces.go @@ -257,21 +257,6 @@ type ( CronSchedule string } - // ExecutionStats is the statistics about workflow execution - ExecutionStats struct { - HistorySize int64 - } - - // ReplicationState represents mutable state information for global namespaces. - // This information is used by replication protocol when applying events from remote clusters - ReplicationState struct { - CurrentVersion int64 - StartVersion int64 - LastWriteVersion int64 - LastWriteEventID int64 - LastReplicationInfo map[string]*replicationspb.ReplicationInfo - } - // ReplicationTaskInfoWrapper describes a replication task. ReplicationTaskInfoWrapper struct { *persistenceblobs.ReplicationTaskInfo @@ -490,8 +475,8 @@ type ( SignalInfos map[int64]*persistenceblobs.SignalInfo SignalRequestedIDs map[string]struct{} ExecutionInfo *WorkflowExecutionInfo - ExecutionStats *ExecutionStats - ReplicationState *ReplicationState + ExecutionStats *persistenceblobs.ExecutionStats + ReplicationState *persistenceblobs.ReplicationState BufferedEvents []*historypb.HistoryEvent VersionHistories *VersionHistories Checksum checksum.Checksum @@ -658,8 +643,8 @@ type ( // WorkflowMutation is used as generic workflow execution state mutation WorkflowMutation struct { ExecutionInfo *WorkflowExecutionInfo - ExecutionStats *ExecutionStats - ReplicationState *ReplicationState + ExecutionStats *persistenceblobs.ExecutionStats + ReplicationState *persistenceblobs.ReplicationState VersionHistories *VersionHistories UpsertActivityInfos []*persistenceblobs.ActivityInfo @@ -688,8 +673,8 @@ type ( // WorkflowSnapshot is used as generic workflow execution state snapshot WorkflowSnapshot struct { ExecutionInfo *WorkflowExecutionInfo - ExecutionStats *ExecutionStats - ReplicationState *ReplicationState + ExecutionStats *persistenceblobs.ExecutionStats + ReplicationState *persistenceblobs.ReplicationState VersionHistories *VersionHistories ActivityInfos []*persistenceblobs.ActivityInfo @@ -2168,7 +2153,7 @@ func NewGetReplicationTasksFromDLQRequest( } } -func (r *ReplicationState) GenerateVersionProto() *persistenceblobs.ReplicationVersions { +func GenerateVersionProto(r *persistenceblobs.ReplicationState) *persistenceblobs.ReplicationVersions { return &persistenceblobs.ReplicationVersions{ StartVersion: &types.Int64Value{Value: r.StartVersion}, LastWriteVersion: &types.Int64Value{Value: r.LastWriteVersion}, diff --git a/common/persistence/executionStore.go b/common/persistence/executionStore.go index 3795eae8a96..3c664d8bbc7 100644 --- a/common/persistence/executionStore.go +++ b/common/persistence/executionStore.go @@ -28,6 +28,7 @@ import ( historypb "go.temporal.io/api/history/v1" "go.temporal.io/api/serviceerror" + "go.temporal.io/server/api/persistenceblobs/v1" "go.temporal.io/server/common" "go.temporal.io/server/common/log" "go.temporal.io/server/common/persistence/serialization" @@ -109,7 +110,7 @@ func (m *executionManagerImpl) GetWorkflowExecution( func (m *executionManagerImpl) DeserializeExecutionInfo( info *InternalWorkflowExecutionInfo, -) (*WorkflowExecutionInfo, *ExecutionStats, error) { +) (*WorkflowExecutionInfo, *persistenceblobs.ExecutionStats, error) { completionEvent, err := m.serializer.DeserializeEvent(info.CompletionEvent) if err != nil { @@ -177,7 +178,7 @@ func (m *executionManagerImpl) DeserializeExecutionInfo( SearchAttributes: info.SearchAttributes, Memo: info.Memo, } - newStats := &ExecutionStats{ + newStats := &persistenceblobs.ExecutionStats{ HistorySize: info.HistorySize, } return newInfo, newStats, nil @@ -230,7 +231,7 @@ func (m *executionManagerImpl) UpdateWorkflowExecution( func (m *executionManagerImpl) SerializeExecutionInfo( info *WorkflowExecutionInfo, - stats *ExecutionStats, + stats *persistenceblobs.ExecutionStats, encoding common.EncodingType, ) (*InternalWorkflowExecutionInfo, error) { @@ -691,7 +692,7 @@ func (m *executionManagerImpl) Close() { func getStartVersion( versionHistories *VersionHistories, - replicationState *ReplicationState, + replicationState *persistenceblobs.ReplicationState, ) (int64, error) { if replicationState == nil && versionHistories == nil { @@ -715,7 +716,7 @@ func getStartVersion( func getLastWriteVersion( versionHistories *VersionHistories, - replicationState *ReplicationState, + replicationState *persistenceblobs.ReplicationState, ) (int64, error) { if replicationState == nil && versionHistories == nil { diff --git a/common/persistence/persistence-tests/executionManagerTest.go b/common/persistence/persistence-tests/executionManagerTest.go index 63b693ca262..18570c7af9c 100644 --- a/common/persistence/persistence-tests/executionManagerTest.go +++ b/common/persistence/persistence-tests/executionManagerTest.go @@ -145,7 +145,7 @@ func (s *ExecutionManagerSuite) TestCreateWorkflowExecutionDeDup() { State: enumsspb.WORKFLOW_EXECUTION_STATE_CREATED, Status: enumspb.WORKFLOW_EXECUTION_STATUS_RUNNING, }, - ExecutionStats: &p.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, Checksum: csum, }, RangeID: s.ShardInfo.GetRangeId(), @@ -212,7 +212,7 @@ func (s *ExecutionManagerSuite) TestCreateWorkflowExecutionStateStatus() { NextEventID: nextEventID, LastProcessedEvent: lastProcessedEventID, }, - ExecutionStats: &p.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, Checksum: csum, }, RangeID: s.ShardInfo.GetRangeId(), @@ -334,7 +334,7 @@ func (s *ExecutionManagerSuite) TestCreateWorkflowExecutionWithZombieState() { State: enumsspb.WORKFLOW_EXECUTION_STATE_ZOMBIE, Status: enumspb.WORKFLOW_EXECUTION_STATUS_RUNNING, }, - ExecutionStats: &p.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, Checksum: csum, }, RangeID: s.ShardInfo.GetRangeId(), @@ -418,7 +418,7 @@ func (s *ExecutionManagerSuite) TestUpdateWorkflowExecutionStateStatus() { NextEventID: nextEventID, LastProcessedEvent: lastProcessedEventID, }, - ExecutionStats: &p.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, Checksum: csum, }, RangeID: s.ShardInfo.GetRangeId(), @@ -593,7 +593,7 @@ func (s *ExecutionManagerSuite) TestUpdateWorkflowExecutionWithZombieState() { State: enumsspb.WORKFLOW_EXECUTION_STATE_RUNNING, Status: enumspb.WORKFLOW_EXECUTION_STATUS_RUNNING, }, - ExecutionStats: &p.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, Checksum: csum, }, RangeID: s.ShardInfo.GetRangeId(), @@ -722,7 +722,7 @@ func (s *ExecutionManagerSuite) TestCreateWorkflowExecutionBrandNew() { NextEventID: nextEventID, LastProcessedEvent: lastProcessedEventID, }, - ExecutionStats: &p.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, }, RangeID: s.ShardInfo.GetRangeId(), Mode: p.CreateWorkflowModeBrandNew, @@ -755,11 +755,11 @@ func (s *ExecutionManagerSuite) TestCreateWorkflowExecutionRunIDReuseWithReplica nextEventID := int64(3) workflowTaskScheduleID := int64(2) version := int64(0) - replicationState := &p.ReplicationState{ + replicationState := &persistenceblobs.ReplicationState{ StartVersion: version, CurrentVersion: version, LastWriteVersion: version, - LastWriteEventID: nextEventID - 1, + LastWriteEventId: nextEventID - 1, } task0, err0 := s.CreateWorkflowExecutionWithReplication(namespaceID, workflowExecution, taskqueue, @@ -791,7 +791,7 @@ func (s *ExecutionManagerSuite) TestCreateWorkflowExecutionRunIDReuseWithReplica NextEventID: nextEventID, LastProcessedEvent: lastProcessedEventID, }, - ExecutionStats: &p.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, ReplicationState: replicationState, }, RangeID: s.ShardInfo.GetRangeId(), @@ -826,11 +826,11 @@ func (s *ExecutionManagerSuite) TestCreateWorkflowExecutionRunIDReuseWithReplica updatedInfo.NextEventID = int64(6) updatedInfo.LastProcessedEvent = int64(2) updatedInfo.AutoResetPoints = &testResetPoints - updateReplicationState := &p.ReplicationState{ + updateReplicationState := &persistenceblobs.ReplicationState{ StartVersion: version, CurrentVersion: version, LastWriteVersion: version, - LastWriteEventID: updatedInfo.NextEventID - 1, + LastWriteEventId: updatedInfo.NextEventID - 1, } csum := s.newRandomChecksum() _, err = s.ExecutionManager.UpdateWorkflowExecution(&p.UpdateWorkflowExecutionRequest{ @@ -875,7 +875,7 @@ func (s *ExecutionManagerSuite) TestCreateWorkflowExecutionRunIDReuseWithReplica NextEventID: nextEventID, LastProcessedEvent: lastProcessedEventID, }, - ExecutionStats: &p.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, ReplicationState: replicationState, }, RangeID: s.ShardInfo.GetRangeId(), @@ -904,7 +904,7 @@ func (s *ExecutionManagerSuite) TestCreateWorkflowExecutionRunIDReuseWithReplica NextEventID: nextEventID, LastProcessedEvent: lastProcessedEventID, }, - ExecutionStats: &p.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, ReplicationState: replicationState, }, RangeID: s.ShardInfo.GetRangeId(), @@ -933,7 +933,7 @@ func (s *ExecutionManagerSuite) TestCreateWorkflowExecutionRunIDReuseWithReplica NextEventID: nextEventID, LastProcessedEvent: lastProcessedEventID, }, - ExecutionStats: &p.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, ReplicationState: replicationState, }, RangeID: s.ShardInfo.GetRangeId(), @@ -1000,7 +1000,7 @@ func (s *ExecutionManagerSuite) TestCreateWorkflowExecutionRunIDReuseWithoutRepl NextEventID: nextEventID, LastProcessedEvent: lastProcessedEventID, }, - ExecutionStats: &p.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, }, RangeID: s.ShardInfo.GetRangeId(), Mode: p.CreateWorkflowModeWorkflowIDReuse, @@ -1109,7 +1109,7 @@ func (s *ExecutionManagerSuite) TestPersistenceStartWorkflow() { WorkflowTaskStartedID: common.EmptyEventID, WorkflowTaskTimeout: 1, }, - ExecutionStats: &p.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, TransferTasks: []p.Task{ &p.WorkflowTask{ TaskID: s.GetNextSequenceNumber(), @@ -1138,7 +1138,7 @@ func (s *ExecutionManagerSuite) TestPersistenceStartWorkflowWithReplicationState } startVersion := int64(144) lastWriteVersion := int64(1444) - replicationState := &p.ReplicationState{ + replicationState := &persistenceblobs.ReplicationState{ StartVersion: startVersion, // we are only testing this attribute CurrentVersion: lastWriteVersion, LastWriteVersion: lastWriteVersion, @@ -1179,7 +1179,7 @@ func (s *ExecutionManagerSuite) TestPersistenceStartWorkflowWithReplicationState WorkflowTaskStartedID: common.EmptyEventID, WorkflowTaskTimeout: 1, }, - ExecutionStats: &p.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, TransferTasks: []p.Task{ &p.WorkflowTask{ TaskID: s.GetNextSequenceNumber(), @@ -1265,14 +1265,14 @@ func (s *ExecutionManagerSuite) TestGetWorkflow() { SearchAttributes: testSearchAttr, Memo: testMemo, }, - ExecutionStats: &p.ExecutionStats{ + ExecutionStats: &persistenceblobs.ExecutionStats{ HistorySize: int64(rand.Int31()), }, - ReplicationState: &p.ReplicationState{ + ReplicationState: &persistenceblobs.ReplicationState{ CurrentVersion: int64(rand.Int31()), StartVersion: int64(rand.Int31()), LastWriteVersion: int64(rand.Int31()), - LastWriteEventID: int64(rand.Int31()), + LastWriteEventId: int64(rand.Int31()), LastReplicationInfo: map[string]*replicationspb.ReplicationInfo{ "r2": {Version: math.MaxInt32, LastEventId: math.MaxInt32}, }, @@ -1334,7 +1334,7 @@ func (s *ExecutionManagerSuite) TestGetWorkflow() { s.True(ok) s.True(proto.Equal(testMemoVal, memoVal)) - s.Equal(createReq.NewWorkflowSnapshot.ReplicationState.LastWriteEventID, state.ReplicationState.LastWriteEventID) + s.Equal(createReq.NewWorkflowSnapshot.ReplicationState.LastWriteEventId, state.ReplicationState.LastWriteEventId) s.Equal(createReq.NewWorkflowSnapshot.ReplicationState.LastWriteVersion, state.ReplicationState.LastWriteVersion) s.Equal(createReq.NewWorkflowSnapshot.ReplicationState.StartVersion, state.ReplicationState.StartVersion) s.Equal(createReq.NewWorkflowSnapshot.ReplicationState.CurrentVersion, state.ReplicationState.CurrentVersion) @@ -3248,11 +3248,11 @@ func (s *ExecutionManagerSuite) TestWorkflowReplicationState() { }} task0, err0 := s.CreateWorkflowExecutionWithReplication(namespaceID, workflowExecution, "taskQueue", "wType", 20, 13, 3, - 0, 2, &p.ReplicationState{ + 0, 2, &persistenceblobs.ReplicationState{ CurrentVersion: int64(9), StartVersion: int64(8), LastWriteVersion: int64(7), - LastWriteEventID: int64(6), + LastWriteEventId: int64(6), LastReplicationInfo: map[string]*replicationspb.ReplicationInfo{ "dc1": { Version: int64(3), @@ -3317,7 +3317,7 @@ func (s *ExecutionManagerSuite) TestWorkflowReplicationState() { s.Equal(int64(9), replicationState0.CurrentVersion) s.Equal(int64(8), replicationState0.StartVersion) s.Equal(int64(7), replicationState0.LastWriteVersion) - s.Equal(int64(6), replicationState0.LastWriteEventID) + s.Equal(int64(6), replicationState0.LastWriteEventId) s.Equal(2, len(replicationState0.LastReplicationInfo)) for k, v := range replicationState0.LastReplicationInfo { log.Infof("replicationspb.ReplicationInfo for %v: {Version: %v, LastEventId: %v}", k, v.Version, v.LastEventId) @@ -3341,7 +3341,7 @@ func (s *ExecutionManagerSuite) TestWorkflowReplicationState() { updatedReplicationState.CurrentVersion = int64(10) updatedReplicationState.StartVersion = int64(11) updatedReplicationState.LastWriteVersion = int64(12) - updatedReplicationState.LastWriteEventID = int64(13) + updatedReplicationState.LastWriteEventId = int64(13) updatedReplicationState.LastReplicationInfo["dc1"].Version = int64(4) updatedReplicationState.LastReplicationInfo["dc1"].LastEventId = int64(2) @@ -3407,7 +3407,7 @@ func (s *ExecutionManagerSuite) TestWorkflowReplicationState() { s.Equal(int64(10), replicationState1.CurrentVersion) s.Equal(int64(11), replicationState1.StartVersion) s.Equal(int64(12), replicationState1.LastWriteVersion) - s.Equal(int64(13), replicationState1.LastWriteEventID) + s.Equal(int64(13), replicationState1.LastWriteEventId) s.Equal(2, len(replicationState1.LastReplicationInfo)) for k, v := range replicationState1.LastReplicationInfo { log.Infof("replicationspb.ReplicationInfo for %v: {Version: %v, LastEventId: %v}", k, v.Version, v.LastEventId) @@ -3552,11 +3552,11 @@ func (s *ExecutionManagerSuite) TestConflictResolveWorkflowExecutionCurrentIsSel } version := int64(1234) nextEventID := int64(3) - replicationState := &p.ReplicationState{ + replicationState := &persistenceblobs.ReplicationState{ StartVersion: version, CurrentVersion: version, LastWriteVersion: version, - LastWriteEventID: nextEventID - 1, + LastWriteEventId: nextEventID - 1, } task0, err0 := s.CreateWorkflowExecutionWithReplication(namespaceID, workflowExecution, "taskQueue", "wType", 20, 13, 3, 0, 2, replicationState, nil) s.NoError(err0) @@ -3928,7 +3928,7 @@ func (s *ExecutionManagerSuite) TestConflictResolveWorkflowExecutionCurrentIsSel Control: "signal_control_c", }} - rState := &p.ReplicationState{ + rState := &persistenceblobs.ReplicationState{ CurrentVersion: int64(8789), StartVersion: int64(8780), } @@ -4047,11 +4047,11 @@ func (s *ExecutionManagerSuite) TestConflictResolveWorkflowExecutionWithCASCurre } version := int64(1234) nextEventID := int64(3) - replicationState := &p.ReplicationState{ + replicationState := &persistenceblobs.ReplicationState{ StartVersion: version, CurrentVersion: version, LastWriteVersion: version, - LastWriteEventID: nextEventID - 1, + LastWriteEventId: nextEventID - 1, } resp, err := s.CreateWorkflowExecutionWithReplication(namespaceID, workflowExecutionReset, "taskQueue", "wType", 20, 13, nextEventID, 0, 2, replicationState, nil) s.NoError(err) @@ -4104,13 +4104,13 @@ func (s *ExecutionManagerSuite) TestConflictResolveWorkflowExecutionWithCASCurre WorkflowTaskRequestID: uuid.New(), WorkflowTaskTimeout: 0, } - resetStats := &p.ExecutionStats{} + resetStats := &persistenceblobs.ExecutionStats{} resetActivityInfos := []*persistenceblobs.ActivityInfo{} resetTimerInfos := []*persistenceblobs.TimerInfo{} resetChildExecutionInfos := []*persistenceblobs.ChildExecutionInfo{} resetRequestCancelInfos := []*persistenceblobs.RequestCancelInfo{} resetSignalInfos := []*persistenceblobs.SignalInfo{} - rState := &p.ReplicationState{ + rState := &persistenceblobs.ReplicationState{ CurrentVersion: int64(8789), StartVersion: int64(8780), } @@ -4171,11 +4171,11 @@ func (s *ExecutionManagerSuite) TestConflictResolveWorkflowExecutionWithCASMisma } version := int64(1234) nextEventID := int64(3) - replicationState := &p.ReplicationState{ + replicationState := &persistenceblobs.ReplicationState{ StartVersion: version, CurrentVersion: version, LastWriteVersion: version, - LastWriteEventID: nextEventID - 1, + LastWriteEventId: nextEventID - 1, } resp, err := s.CreateWorkflowExecutionWithReplication(namespaceID, workflowExecutionReset, "taskQueue", "wType", 20, 13, nextEventID, 0, 2, replicationState, nil) s.NoError(err) @@ -4236,13 +4236,13 @@ func (s *ExecutionManagerSuite) TestConflictResolveWorkflowExecutionWithCASMisma WorkflowTaskRequestID: uuid.New(), WorkflowTaskTimeout: 0, } - resetStats := &p.ExecutionStats{} + resetStats := &persistenceblobs.ExecutionStats{} resetActivityInfos := []*persistenceblobs.ActivityInfo{} resetTimerInfos := []*persistenceblobs.TimerInfo{} resetChildExecutionInfos := []*persistenceblobs.ChildExecutionInfo{} resetRequestCancelInfos := []*persistenceblobs.RequestCancelInfo{} resetSignalInfos := []*persistenceblobs.SignalInfo{} - rState := &p.ReplicationState{ + rState := &persistenceblobs.ReplicationState{ CurrentVersion: int64(8789), StartVersion: int64(8780), } @@ -4285,11 +4285,11 @@ func (s *ExecutionManagerSuite) TestConflictResolveWorkflowExecutionWithTransact } version := int64(1234) nextEventID := int64(3) - replicationState := &p.ReplicationState{ + replicationState := &persistenceblobs.ReplicationState{ StartVersion: version, CurrentVersion: version, LastWriteVersion: version, - LastWriteEventID: nextEventID - 1, + LastWriteEventId: nextEventID - 1, } resp, err := s.CreateWorkflowExecutionWithReplication(namespaceID, workflowExecutionReset, "taskQueue", "wType", 20, 13, nextEventID, 0, 2, replicationState, nil) s.NoError(err) @@ -4345,7 +4345,7 @@ func (s *ExecutionManagerSuite) TestConflictResolveWorkflowExecutionWithTransact WorkflowTaskTimeout: 0, AutoResetPoints: &workflowpb.ResetPoints{}, } - resetReplicationState := &p.ReplicationState{ + resetReplicationState := &persistenceblobs.ReplicationState{ CurrentVersion: int64(8789), StartVersion: int64(8780), LastWriteVersion: int64(8912), @@ -4357,7 +4357,7 @@ func (s *ExecutionManagerSuite) TestConflictResolveWorkflowExecutionWithTransact Mode: p.ConflictResolveWorkflowModeBypassCurrent, ResetWorkflowSnapshot: p.WorkflowSnapshot{ ExecutionInfo: resetExecutionInfo, - ExecutionStats: &p.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, ReplicationState: resetReplicationState, Condition: int64(5), @@ -4371,7 +4371,7 @@ func (s *ExecutionManagerSuite) TestConflictResolveWorkflowExecutionWithTransact NewWorkflowSnapshot: nil, CurrentWorkflowMutation: &p.WorkflowMutation{ ExecutionInfo: currentInfo, - ExecutionStats: &p.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, ReplicationState: currentState, Condition: int64(3), @@ -4431,11 +4431,11 @@ func (s *ExecutionManagerSuite) TestConflictResolveWorkflowExecutionWithTransact } version := int64(1234) nextEventID := int64(3) - replicationState := &p.ReplicationState{ + replicationState := &persistenceblobs.ReplicationState{ StartVersion: version, CurrentVersion: version, LastWriteVersion: version, - LastWriteEventID: nextEventID - 1, + LastWriteEventId: nextEventID - 1, } resp, err := s.CreateWorkflowExecutionWithReplication(namespaceID, workflowExecutionReset, "taskQueue", "wType", 20, 13, nextEventID, 0, 2, replicationState, nil) s.NoError(err) @@ -4493,12 +4493,12 @@ func (s *ExecutionManagerSuite) TestConflictResolveWorkflowExecutionWithTransact AutoResetPoints: &workflowpb.ResetPoints{}, } newWorkflowExecutionInfo := copyWorkflowExecutionInfo(resetExecutionInfo) - newWorkflowExecutionStats := &p.ExecutionStats{} + newWorkflowExecutionStats := &persistenceblobs.ExecutionStats{} newWorkflowExecutionInfo.CreateRequestID = uuid.New() newWorkflowExecutionInfo.RunID = "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaa2" newWorkflowExecutionInfo.State = enumsspb.WORKFLOW_EXECUTION_STATE_RUNNING newWorkflowExecutionInfo.Status = enumspb.WORKFLOW_EXECUTION_STATUS_RUNNING - newWorkflowExecutionState := &p.ReplicationState{ + newWorkflowExecutionState := &persistenceblobs.ReplicationState{ CurrentVersion: int64(8989), StartVersion: int64(8980), LastWriteVersion: int64(8912), @@ -4510,8 +4510,8 @@ func (s *ExecutionManagerSuite) TestConflictResolveWorkflowExecutionWithTransact Mode: p.ConflictResolveWorkflowModeBypassCurrent, ResetWorkflowSnapshot: p.WorkflowSnapshot{ ExecutionInfo: resetExecutionInfo, - ExecutionStats: &p.ExecutionStats{}, - ReplicationState: &p.ReplicationState{ + ExecutionStats: &persistenceblobs.ExecutionStats{}, + ReplicationState: &persistenceblobs.ReplicationState{ CurrentVersion: int64(8789), StartVersion: int64(8780), LastReplicationInfo: map[string]*replicationspb.ReplicationInfo{}, @@ -4611,11 +4611,11 @@ func (s *ExecutionManagerSuite) TestConflictResolveWorkflowExecutionWithTransact } version := int64(1234) nextEventID := int64(3) - replicationState := &p.ReplicationState{ + replicationState := &persistenceblobs.ReplicationState{ StartVersion: version, CurrentVersion: version, LastWriteVersion: version, - LastWriteEventID: nextEventID - 1, + LastWriteEventId: nextEventID - 1, } resp, err := s.CreateWorkflowExecutionWithReplication(namespaceID, workflowExecutionReset, "taskQueue", "wType", 20, 13, nextEventID, 0, 2, replicationState, nil) s.NoError(err) @@ -4648,7 +4648,7 @@ func (s *ExecutionManagerSuite) TestConflictResolveWorkflowExecutionWithTransact WorkflowTaskTimeout: 0, AutoResetPoints: &workflowpb.ResetPoints{}, } - resetReplicationState := &p.ReplicationState{ + resetReplicationState := &persistenceblobs.ReplicationState{ CurrentVersion: int64(8789), StartVersion: int64(8780), LastWriteVersion: int64(8912), @@ -4660,7 +4660,7 @@ func (s *ExecutionManagerSuite) TestConflictResolveWorkflowExecutionWithTransact Mode: p.ConflictResolveWorkflowModeBypassCurrent, ResetWorkflowSnapshot: p.WorkflowSnapshot{ ExecutionInfo: resetExecutionInfo, - ExecutionStats: &p.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, ReplicationState: resetReplicationState, Condition: nextEventID, @@ -4714,11 +4714,11 @@ func (s *ExecutionManagerSuite) TestConflictResolveWorkflowExecutionWithTransact } version := int64(1234) nextEventID := int64(3) - replicationState := &p.ReplicationState{ + replicationState := &persistenceblobs.ReplicationState{ StartVersion: version, CurrentVersion: version, LastWriteVersion: version, - LastWriteEventID: nextEventID - 1, + LastWriteEventId: nextEventID - 1, } resp, err := s.CreateWorkflowExecutionWithReplication(namespaceID, workflowExecutionReset, "taskQueue", "wType", 20, 13, nextEventID, 0, 2, replicationState, nil) s.NoError(err) @@ -4752,12 +4752,12 @@ func (s *ExecutionManagerSuite) TestConflictResolveWorkflowExecutionWithTransact AutoResetPoints: &workflowpb.ResetPoints{}, } newWorkflowExecutionInfo := copyWorkflowExecutionInfo(resetExecutionInfo) - newWorkflowExecutionStats := &p.ExecutionStats{} + newWorkflowExecutionStats := &persistenceblobs.ExecutionStats{} newWorkflowExecutionInfo.CreateRequestID = uuid.New() newWorkflowExecutionInfo.RunID = "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaa2" newWorkflowExecutionInfo.State = enumsspb.WORKFLOW_EXECUTION_STATE_RUNNING newWorkflowExecutionInfo.Status = enumspb.WORKFLOW_EXECUTION_STATUS_RUNNING - newWorkflowExecutionState := &p.ReplicationState{ + newWorkflowExecutionState := &persistenceblobs.ReplicationState{ CurrentVersion: int64(8989), StartVersion: int64(8980), LastWriteVersion: int64(8912), @@ -4769,8 +4769,8 @@ func (s *ExecutionManagerSuite) TestConflictResolveWorkflowExecutionWithTransact Mode: p.ConflictResolveWorkflowModeBypassCurrent, ResetWorkflowSnapshot: p.WorkflowSnapshot{ ExecutionInfo: resetExecutionInfo, - ExecutionStats: &p.ExecutionStats{}, - ReplicationState: &p.ReplicationState{ + ExecutionStats: &persistenceblobs.ExecutionStats{}, + ReplicationState: &persistenceblobs.ReplicationState{ CurrentVersion: int64(8789), StartVersion: int64(8780), LastReplicationInfo: map[string]*replicationspb.ReplicationInfo{}, @@ -4850,11 +4850,11 @@ func (s *ExecutionManagerSuite) TestConflictResolveWorkflowExecutionWithTransact } version := int64(1234) nextEventID := int64(3) - replicationState := &p.ReplicationState{ + replicationState := &persistenceblobs.ReplicationState{ StartVersion: version, CurrentVersion: version, LastWriteVersion: version, - LastWriteEventID: nextEventID - 1, + LastWriteEventId: nextEventID - 1, } resp, err := s.CreateWorkflowExecutionWithReplication(namespaceID, workflowExecutionReset, "taskQueue", "wType", 20, 13, nextEventID, 0, 2, replicationState, nil) s.NoError(err) @@ -4904,7 +4904,7 @@ func (s *ExecutionManagerSuite) TestConflictResolveWorkflowExecutionWithTransact WorkflowTaskTimeout: 0, AutoResetPoints: &workflowpb.ResetPoints{}, } - resetReplicationState := &p.ReplicationState{ + resetReplicationState := &persistenceblobs.ReplicationState{ CurrentVersion: int64(8789), StartVersion: int64(8780), LastWriteVersion: int64(8912), @@ -4916,7 +4916,7 @@ func (s *ExecutionManagerSuite) TestConflictResolveWorkflowExecutionWithTransact Mode: p.ConflictResolveWorkflowModeUpdateCurrent, ResetWorkflowSnapshot: p.WorkflowSnapshot{ ExecutionInfo: resetExecutionInfo, - ExecutionStats: &p.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, ReplicationState: resetReplicationState, Condition: int64(5), @@ -4966,11 +4966,11 @@ func (s *ExecutionManagerSuite) TestConflictResolveWorkflowExecutionWithTransact } version := int64(1234) nextEventID := int64(3) - replicationState := &p.ReplicationState{ + replicationState := &persistenceblobs.ReplicationState{ StartVersion: version, CurrentVersion: version, LastWriteVersion: version, - LastWriteEventID: nextEventID - 1, + LastWriteEventId: nextEventID - 1, } resp, err := s.CreateWorkflowExecutionWithReplication(namespaceID, workflowExecutionReset, "taskQueue", "wType", 20, 13, nextEventID, 0, 2, replicationState, nil) s.NoError(err) @@ -5021,12 +5021,12 @@ func (s *ExecutionManagerSuite) TestConflictResolveWorkflowExecutionWithTransact AutoResetPoints: &workflowpb.ResetPoints{}, } newWorkflowExecutionInfo := copyWorkflowExecutionInfo(resetExecutionInfo) - newWorkflowExecutionStats := &p.ExecutionStats{} + newWorkflowExecutionStats := &persistenceblobs.ExecutionStats{} newWorkflowExecutionInfo.CreateRequestID = uuid.New() newWorkflowExecutionInfo.RunID = "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaa2" newWorkflowExecutionInfo.State = enumsspb.WORKFLOW_EXECUTION_STATE_ZOMBIE newWorkflowExecutionInfo.Status = enumspb.WORKFLOW_EXECUTION_STATUS_RUNNING - newWorkflowExecutionState := &p.ReplicationState{ + newWorkflowExecutionState := &persistenceblobs.ReplicationState{ CurrentVersion: int64(8989), StartVersion: int64(8980), LastWriteVersion: int64(8912), @@ -5038,8 +5038,8 @@ func (s *ExecutionManagerSuite) TestConflictResolveWorkflowExecutionWithTransact Mode: p.ConflictResolveWorkflowModeUpdateCurrent, ResetWorkflowSnapshot: p.WorkflowSnapshot{ ExecutionInfo: resetExecutionInfo, - ExecutionStats: &p.ExecutionStats{}, - ReplicationState: &p.ReplicationState{ + ExecutionStats: &persistenceblobs.ExecutionStats{}, + ReplicationState: &persistenceblobs.ReplicationState{ CurrentVersion: int64(8789), StartVersion: int64(8780), LastReplicationInfo: map[string]*replicationspb.ReplicationInfo{}, @@ -5325,8 +5325,8 @@ func copyWorkflowExecutionInfo(sourceInfo *p.WorkflowExecutionInfo) *p.WorkflowE } } -func copyExecutionStats(sourceStats *p.ExecutionStats) *p.ExecutionStats { - return &p.ExecutionStats{ +func copyExecutionStats(sourceStats *persistenceblobs.ExecutionStats) *persistenceblobs.ExecutionStats { + return &persistenceblobs.ExecutionStats{ HistorySize: sourceStats.HistorySize, } } @@ -5358,12 +5358,12 @@ func timeComparatorGo(t1, t2 time.Time, timeTolerance time.Duration) bool { return false } -func copyReplicationState(sourceState *p.ReplicationState) *p.ReplicationState { - state := &p.ReplicationState{ +func copyReplicationState(sourceState *persistenceblobs.ReplicationState) *persistenceblobs.ReplicationState { + state := &persistenceblobs.ReplicationState{ CurrentVersion: sourceState.CurrentVersion, StartVersion: sourceState.StartVersion, LastWriteVersion: sourceState.LastWriteVersion, - LastWriteEventID: sourceState.LastWriteEventID, + LastWriteEventId: sourceState.LastWriteEventId, } if sourceState.LastReplicationInfo != nil { state.LastReplicationInfo = map[string]*replicationspb.ReplicationInfo{} diff --git a/common/persistence/persistence-tests/executionManagerTestForEventsV2.go b/common/persistence/persistence-tests/executionManagerTestForEventsV2.go index a15ab4927ad..74f8722a52d 100644 --- a/common/persistence/persistence-tests/executionManagerTestForEventsV2.go +++ b/common/persistence/persistence-tests/executionManagerTestForEventsV2.go @@ -136,7 +136,7 @@ func (s *ExecutionManagerSuiteForEventsV2) TestWorkflowCreation() { WorkflowTaskTimeout: 1, BranchToken: []byte("branchToken1"), }, - ExecutionStats: &p.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, TransferTasks: []p.Task{ &p.WorkflowTask{ TaskID: s.GetNextSequenceNumber(), @@ -240,7 +240,7 @@ func (s *ExecutionManagerSuiteForEventsV2) TestWorkflowCreationWithVersionHistor WorkflowTaskTimeout: 1, BranchToken: nil, }, - ExecutionStats: &p.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, VersionHistories: versionHistories, TransferTasks: []p.Task{ &p.WorkflowTask{ @@ -363,7 +363,7 @@ func (s *ExecutionManagerSuiteForEventsV2) TestContinueAsNew() { WorkflowTaskTimeout: 1, BranchToken: []byte("branchToken1"), }, - ExecutionStats: &p.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, TransferTasks: nil, TimerTasks: nil, }, @@ -424,11 +424,11 @@ func (s *ExecutionManagerSuiteForEventsV2) TestWorkflowWithReplicationState() { }} task0, err0 := s.createWorkflowExecutionWithReplication(namespaceID, workflowExecution, "taskQueue", "wType", 20, 13, 3, - 0, 2, &p.ReplicationState{ + 0, 2, &persistenceblobs.ReplicationState{ CurrentVersion: int64(9), StartVersion: int64(8), LastWriteVersion: int64(7), - LastWriteEventID: int64(6), + LastWriteEventId: int64(6), LastReplicationInfo: map[string]*replicationspb.ReplicationInfo{ "dc1": { Version: int64(3), @@ -495,7 +495,7 @@ func (s *ExecutionManagerSuiteForEventsV2) TestWorkflowWithReplicationState() { s.Equal(int64(9), replicationState0.CurrentVersion) s.Equal(int64(8), replicationState0.StartVersion) s.Equal(int64(7), replicationState0.LastWriteVersion) - s.Equal(int64(6), replicationState0.LastWriteEventID) + s.Equal(int64(6), replicationState0.LastWriteEventId) s.Equal(2, len(replicationState0.LastReplicationInfo)) s.assertChecksumsEqual(testWorkflowChecksum, state0.Checksum) for k, v := range replicationState0.LastReplicationInfo { @@ -522,7 +522,7 @@ func (s *ExecutionManagerSuiteForEventsV2) TestWorkflowWithReplicationState() { updatedReplicationState.CurrentVersion = int64(10) updatedReplicationState.StartVersion = int64(11) updatedReplicationState.LastWriteVersion = int64(12) - updatedReplicationState.LastWriteEventID = int64(13) + updatedReplicationState.LastWriteEventId = int64(13) updatedReplicationState.LastReplicationInfo["dc1"].Version = int64(4) updatedReplicationState.LastReplicationInfo["dc1"].LastEventId = int64(2) @@ -594,7 +594,7 @@ func (s *ExecutionManagerSuiteForEventsV2) TestWorkflowWithReplicationState() { s.Equal(int64(10), replicationState1.CurrentVersion) s.Equal(int64(11), replicationState1.StartVersion) s.Equal(int64(12), replicationState1.LastWriteVersion) - s.Equal(int64(13), replicationState1.LastWriteEventID) + s.Equal(int64(13), replicationState1.LastWriteEventId) s.Equal(2, len(replicationState1.LastReplicationInfo)) s.assertChecksumsEqual(testWorkflowChecksum, state1.Checksum) for k, v := range replicationState1.LastReplicationInfo { @@ -614,7 +614,7 @@ func (s *ExecutionManagerSuiteForEventsV2) TestWorkflowWithReplicationState() { func (s *ExecutionManagerSuiteForEventsV2) createWorkflowExecutionWithReplication(namespaceID string, workflowExecution commonpb.WorkflowExecution, taskQueue, wType string, wTimeout int64, workflowTaskTimeout int64, nextEventID int64, - lastProcessedEventID int64, workflowTaskScheduleID int64, state *p.ReplicationState, txTasks []p.Task, brToken []byte) (*p.CreateWorkflowExecutionResponse, error) { + lastProcessedEventID int64, workflowTaskScheduleID int64, state *persistenceblobs.ReplicationState, txTasks []p.Task, brToken []byte) (*p.CreateWorkflowExecutionResponse, error) { var transferTasks []p.Task var replicationTasks []p.Task var timerTasks []p.Task @@ -657,7 +657,7 @@ func (s *ExecutionManagerSuiteForEventsV2) createWorkflowExecutionWithReplicatio WorkflowTaskTimeout: 1, BranchToken: brToken, }, - ExecutionStats: &p.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, ReplicationState: state, TimerTasks: timerTasks, TransferTasks: transferTasks, @@ -704,11 +704,11 @@ func (s *ExecutionManagerSuiteForEventsV2) TestWorkflowResetWithCurrWithReplicat }} task0, err0 := s.createWorkflowExecutionWithReplication(namespaceID, workflowExecution, "taskQueue", "wType", 20, 13, 3, - 0, 2, &p.ReplicationState{ + 0, 2, &persistenceblobs.ReplicationState{ CurrentVersion: int64(9), StartVersion: int64(8), LastWriteVersion: int64(7), - LastWriteEventID: int64(6), + LastWriteEventId: int64(6), LastReplicationInfo: map[string]*replicationspb.ReplicationInfo{ "dc1": { Version: int64(3), @@ -789,7 +789,7 @@ func (s *ExecutionManagerSuiteForEventsV2) TestWorkflowResetWithCurrWithReplicat s.Equal(int64(9), replicationState0.CurrentVersion) s.Equal(int64(8), replicationState0.StartVersion) s.Equal(int64(7), replicationState0.LastWriteVersion) - s.Equal(int64(6), replicationState0.LastWriteEventID) + s.Equal(int64(6), replicationState0.LastWriteEventId) s.Equal(2, len(replicationState0.LastReplicationInfo)) for k, v := range replicationState0.LastReplicationInfo { log.Infof("replicationspb.ReplicationInfo for %v: {Version: %v, LastEventId: %v}", k, v.Version, v.LastEventId) @@ -815,7 +815,7 @@ func (s *ExecutionManagerSuiteForEventsV2) TestWorkflowResetWithCurrWithReplicat updatedReplicationState.CurrentVersion = int64(10) updatedReplicationState.StartVersion = int64(11) updatedReplicationState.LastWriteVersion = int64(12) - updatedReplicationState.LastWriteEventID = int64(13) + updatedReplicationState.LastWriteEventId = int64(13) updatedReplicationState.LastReplicationInfo["dc1"].Version = int64(30) updatedReplicationState.LastReplicationInfo["dc1"].LastEventId = int64(10) @@ -851,7 +851,7 @@ func (s *ExecutionManagerSuiteForEventsV2) TestWorkflowResetWithCurrWithReplicat insertReplicationState.CurrentVersion = int64(100) insertReplicationState.StartVersion = int64(110) insertReplicationState.LastWriteVersion = int64(120) - insertReplicationState.LastWriteEventID = int64(130) + insertReplicationState.LastWriteEventId = int64(130) insertReplicationState.LastReplicationInfo["dc1"].Version = int64(300) insertReplicationState.LastReplicationInfo["dc1"].LastEventId = int64(100) @@ -1028,7 +1028,7 @@ func (s *ExecutionManagerSuiteForEventsV2) TestWorkflowResetWithCurrWithReplicat s.Equal(int64(10), replicationState1.CurrentVersion) s.Equal(int64(11), replicationState1.StartVersion) s.Equal(int64(12), replicationState1.LastWriteVersion) - s.Equal(int64(13), replicationState1.LastWriteEventID) + s.Equal(int64(13), replicationState1.LastWriteEventId) s.Equal(2, len(replicationState1.LastReplicationInfo)) for k, v := range replicationState1.LastReplicationInfo { log.Infof("replicationspb.ReplicationInfo for %v: {Version: %v, LastEventId: %v}", k, v.Version, v.LastEventId) @@ -1065,7 +1065,7 @@ func (s *ExecutionManagerSuiteForEventsV2) TestWorkflowResetWithCurrWithReplicat s.Equal(int64(100), replicationState2.CurrentVersion) s.Equal(int64(110), replicationState2.StartVersion) s.Equal(int64(120), replicationState2.LastWriteVersion) - s.Equal(int64(130), replicationState2.LastWriteEventID) + s.Equal(int64(130), replicationState2.LastWriteEventId) s.Equal(2, len(replicationState2.LastReplicationInfo)) for k, v := range replicationState2.LastReplicationInfo { log.Infof("replicationspb.ReplicationInfo for %v: {Version: %v, LastEventId: %v}", k, v.Version, v.LastEventId) @@ -1136,11 +1136,11 @@ func (s *ExecutionManagerSuiteForEventsV2) TestWorkflowResetNoCurrWithReplicate( }} task0, err0 := s.createWorkflowExecutionWithReplication(namespaceID, workflowExecution, "taskQueue", "wType", 20, 13, 3, - 0, 2, &p.ReplicationState{ + 0, 2, &persistenceblobs.ReplicationState{ CurrentVersion: int64(9), StartVersion: int64(8), LastWriteVersion: int64(7), - LastWriteEventID: int64(6), + LastWriteEventId: int64(6), LastReplicationInfo: map[string]*replicationspb.ReplicationInfo{ "dc1": { Version: int64(3), @@ -1224,7 +1224,7 @@ func (s *ExecutionManagerSuiteForEventsV2) TestWorkflowResetNoCurrWithReplicate( s.Equal(int64(9), replicationState0.CurrentVersion) s.Equal(int64(8), replicationState0.StartVersion) s.Equal(int64(7), replicationState0.LastWriteVersion) - s.Equal(int64(6), replicationState0.LastWriteEventID) + s.Equal(int64(6), replicationState0.LastWriteEventId) s.Equal(2, len(replicationState0.LastReplicationInfo)) for k, v := range replicationState0.LastReplicationInfo { log.Infof("replicationspb.ReplicationInfo for %v: {Version: %v, LastEventId: %v}", k, v.Version, v.LastEventId) @@ -1267,7 +1267,7 @@ func (s *ExecutionManagerSuiteForEventsV2) TestWorkflowResetNoCurrWithReplicate( insertReplicationState.CurrentVersion = int64(100) insertReplicationState.StartVersion = int64(110) insertReplicationState.LastWriteVersion = int64(120) - insertReplicationState.LastWriteEventID = int64(130) + insertReplicationState.LastWriteEventId = int64(130) insertReplicationState.LastReplicationInfo["dc1"].Version = int64(300) insertReplicationState.LastReplicationInfo["dc1"].LastEventId = int64(100) @@ -1435,7 +1435,7 @@ func (s *ExecutionManagerSuiteForEventsV2) TestWorkflowResetNoCurrWithReplicate( s.Equal(int64(9), replicationState1.CurrentVersion) s.Equal(int64(8), replicationState1.StartVersion) s.Equal(int64(7), replicationState1.LastWriteVersion) - s.Equal(int64(6), replicationState1.LastWriteEventID) + s.Equal(int64(6), replicationState1.LastWriteEventId) s.Equal(2, len(replicationState1.LastReplicationInfo)) for k, v := range replicationState1.LastReplicationInfo { log.Infof("replicationspb.ReplicationInfo for %v: {Version: %v, LastEventId: %v}", k, v.Version, v.LastEventId) @@ -1472,7 +1472,7 @@ func (s *ExecutionManagerSuiteForEventsV2) TestWorkflowResetNoCurrWithReplicate( s.Equal(int64(100), replicationState2.CurrentVersion) s.Equal(int64(110), replicationState2.StartVersion) s.Equal(int64(120), replicationState2.LastWriteVersion) - s.Equal(int64(130), replicationState2.LastWriteEventID) + s.Equal(int64(130), replicationState2.LastWriteEventId) s.Equal(2, len(replicationState2.LastReplicationInfo)) for k, v := range replicationState2.LastReplicationInfo { log.Infof("replicationspb.ReplicationInfo for %v: {Version: %v, LastEventId: %v}", k, v.Version, v.LastEventId) diff --git a/common/persistence/persistence-tests/persistenceTestBase.go b/common/persistence/persistence-tests/persistenceTestBase.go index 7b2e38102d5..dcaca2b8cc5 100644 --- a/common/persistence/persistence-tests/persistenceTestBase.go +++ b/common/persistence/persistence-tests/persistenceTestBase.go @@ -315,7 +315,7 @@ func (s *TestBase) CreateWorkflowExecutionWithBranchToken(namespaceID string, wo WorkflowTaskTimeout: 1, BranchToken: branchToken, }, - ExecutionStats: &p.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, TransferTasks: []p.Task{ &p.WorkflowTask{ TaskID: s.GetNextSequenceNumber(), @@ -343,7 +343,7 @@ func (s *TestBase) CreateWorkflowExecution(namespaceID string, workflowExecution // CreateWorkflowExecutionWithReplication is a utility method to create workflow executions func (s *TestBase) CreateWorkflowExecutionWithReplication(namespaceID string, workflowExecution commonpb.WorkflowExecution, taskQueue, wType string, wTimeout int64, workflowTaskTimeout int64, nextEventID int64, - lastProcessedEventID int64, workflowTaskScheduleID int64, state *p.ReplicationState, txTasks []p.Task) (*p.CreateWorkflowExecutionResponse, error) { + lastProcessedEventID int64, workflowTaskScheduleID int64, state *persistenceblobs.ReplicationState, txTasks []p.Task) (*p.CreateWorkflowExecutionResponse, error) { var transferTasks []p.Task var replicationTasks []p.Task for _, task := range txTasks { @@ -383,7 +383,7 @@ func (s *TestBase) CreateWorkflowExecutionWithReplication(namespaceID string, wo WorkflowTaskStartedID: common.EmptyEventID, WorkflowTaskTimeout: 1, }, - ExecutionStats: &p.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, ReplicationState: state, TransferTasks: transferTasks, ReplicationTasks: replicationTasks, @@ -438,7 +438,7 @@ func (s *TestBase) CreateWorkflowExecutionManyTasks(namespaceID string, workflow WorkflowTaskStartedID: common.EmptyEventID, WorkflowTaskTimeout: 1, }, - ExecutionStats: &p.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, TransferTasks: transferTasks, Checksum: testWorkflowChecksum, }, @@ -478,7 +478,7 @@ func (s *TestBase) CreateChildWorkflowExecution(namespaceID string, workflowExec WorkflowTaskStartedID: common.EmptyEventID, WorkflowTaskTimeout: 1, }, - ExecutionStats: &p.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, TransferTasks: []p.Task{ &p.WorkflowTask{ TaskID: s.GetNextSequenceNumber(), @@ -537,7 +537,7 @@ func (s *TestBase) GetCurrentWorkflowRunID(namespaceID, workflowID string) (stri } // ContinueAsNewExecution is a utility method to create workflow executions -func (s *TestBase) ContinueAsNewExecution(updatedInfo *p.WorkflowExecutionInfo, updatedStats *p.ExecutionStats, condition int64, +func (s *TestBase) ContinueAsNewExecution(updatedInfo *p.WorkflowExecutionInfo, updatedStats *persistenceblobs.ExecutionStats, condition int64, newExecution commonpb.WorkflowExecution, nextEventID, workflowTaskScheduleID int64, prevResetPoints *workflowpb.ResetPoints) error { return s.ContinueAsNewExecutionWithReplication( @@ -546,9 +546,9 @@ func (s *TestBase) ContinueAsNewExecution(updatedInfo *p.WorkflowExecutionInfo, } // ContinueAsNewExecutionWithReplication is a utility method to create workflow executions -func (s *TestBase) ContinueAsNewExecutionWithReplication(updatedInfo *p.WorkflowExecutionInfo, updatedStats *p.ExecutionStats, condition int64, +func (s *TestBase) ContinueAsNewExecutionWithReplication(updatedInfo *p.WorkflowExecutionInfo, updatedStats *persistenceblobs.ExecutionStats, condition int64, newExecution commonpb.WorkflowExecution, nextEventID, workflowTaskScheduleID int64, - prevResetPoints *workflowpb.ResetPoints, beforeState *p.ReplicationState, afterState *p.ReplicationState) error { + prevResetPoints *workflowpb.ResetPoints, beforeState *persistenceblobs.ReplicationState, afterState *persistenceblobs.ReplicationState) error { newworkflowTask := &p.WorkflowTask{ TaskID: s.GetNextSequenceNumber(), NamespaceID: updatedInfo.NamespaceID, @@ -605,7 +605,7 @@ func (s *TestBase) ContinueAsNewExecutionWithReplication(updatedInfo *p.Workflow } // UpdateWorkflowExecution is a utility method to update workflow execution -func (s *TestBase) UpdateWorkflowExecution(updatedInfo *p.WorkflowExecutionInfo, updatedStats *p.ExecutionStats, updatedVersionHistories *p.VersionHistories, +func (s *TestBase) UpdateWorkflowExecution(updatedInfo *p.WorkflowExecutionInfo, updatedStats *persistenceblobs.ExecutionStats, updatedVersionHistories *p.VersionHistories, workflowTaskScheduleIDs []int64, activityScheduleIDs []int64, condition int64, timerTasks []p.Task, upsertActivityInfos []*persistenceblobs.ActivityInfo, deleteActivityInfos []int64, upsertTimerInfos []*persistenceblobs.TimerInfo, deleteTimerInfos []string) error { @@ -616,7 +616,7 @@ func (s *TestBase) UpdateWorkflowExecution(updatedInfo *p.WorkflowExecutionInfo, } // UpdateWorkflowExecutionAndFinish is a utility method to update workflow execution -func (s *TestBase) UpdateWorkflowExecutionAndFinish(updatedInfo *p.WorkflowExecutionInfo, updatedStats *p.ExecutionStats, condition int64) error { +func (s *TestBase) UpdateWorkflowExecutionAndFinish(updatedInfo *p.WorkflowExecutionInfo, updatedStats *persistenceblobs.ExecutionStats, condition int64) error { transferTasks := []p.Task{} transferTasks = append(transferTasks, &p.CloseExecutionTask{TaskID: s.GetNextSequenceNumber()}) _, err := s.ExecutionManager.UpdateWorkflowExecution(&p.UpdateWorkflowExecutionRequest{ @@ -638,7 +638,7 @@ func (s *TestBase) UpdateWorkflowExecutionAndFinish(updatedInfo *p.WorkflowExecu } // UpsertChildExecutionsState is a utility method to update mutable state of workflow execution -func (s *TestBase) UpsertChildExecutionsState(updatedInfo *p.WorkflowExecutionInfo, updatedStats *p.ExecutionStats, updatedVersionHistories *p.VersionHistories, +func (s *TestBase) UpsertChildExecutionsState(updatedInfo *p.WorkflowExecutionInfo, updatedStats *persistenceblobs.ExecutionStats, updatedVersionHistories *p.VersionHistories, condition int64, upsertChildInfos []*persistenceblobs.ChildExecutionInfo) error { return s.UpdateWorkflowExecutionWithRangeID(updatedInfo, updatedStats, updatedVersionHistories, nil, nil, s.ShardInfo.GetRangeId(), condition, nil, nil, nil, @@ -647,7 +647,7 @@ func (s *TestBase) UpsertChildExecutionsState(updatedInfo *p.WorkflowExecutionIn } // UpsertRequestCancelState is a utility method to update mutable state of workflow execution -func (s *TestBase) UpsertRequestCancelState(updatedInfo *p.WorkflowExecutionInfo, updatedStats *p.ExecutionStats, updatedVersionHistories *p.VersionHistories, +func (s *TestBase) UpsertRequestCancelState(updatedInfo *p.WorkflowExecutionInfo, updatedStats *persistenceblobs.ExecutionStats, updatedVersionHistories *p.VersionHistories, condition int64, upsertCancelInfos []*persistenceblobs.RequestCancelInfo) error { return s.UpdateWorkflowExecutionWithRangeID(updatedInfo, updatedStats, updatedVersionHistories, nil, nil, s.ShardInfo.GetRangeId(), condition, nil, nil, nil, @@ -656,7 +656,7 @@ func (s *TestBase) UpsertRequestCancelState(updatedInfo *p.WorkflowExecutionInfo } // UpsertSignalInfoState is a utility method to update mutable state of workflow execution -func (s *TestBase) UpsertSignalInfoState(updatedInfo *p.WorkflowExecutionInfo, updatedStats *p.ExecutionStats, updatedVersionHistories *p.VersionHistories, +func (s *TestBase) UpsertSignalInfoState(updatedInfo *p.WorkflowExecutionInfo, updatedStats *persistenceblobs.ExecutionStats, updatedVersionHistories *p.VersionHistories, condition int64, upsertSignalInfos []*persistenceblobs.SignalInfo) error { return s.UpdateWorkflowExecutionWithRangeID(updatedInfo, updatedStats, updatedVersionHistories, nil, nil, s.ShardInfo.GetRangeId(), condition, nil, nil, nil, @@ -665,7 +665,7 @@ func (s *TestBase) UpsertSignalInfoState(updatedInfo *p.WorkflowExecutionInfo, u } // UpsertSignalsRequestedState is a utility method to update mutable state of workflow execution -func (s *TestBase) UpsertSignalsRequestedState(updatedInfo *p.WorkflowExecutionInfo, updatedStats *p.ExecutionStats, updatedVersionHistories *p.VersionHistories, +func (s *TestBase) UpsertSignalsRequestedState(updatedInfo *p.WorkflowExecutionInfo, updatedStats *persistenceblobs.ExecutionStats, updatedVersionHistories *p.VersionHistories, condition int64, upsertSignalsRequested []string) error { return s.UpdateWorkflowExecutionWithRangeID(updatedInfo, updatedStats, updatedVersionHistories, nil, nil, s.ShardInfo.GetRangeId(), condition, nil, nil, nil, @@ -674,7 +674,7 @@ func (s *TestBase) UpsertSignalsRequestedState(updatedInfo *p.WorkflowExecutionI } // DeleteChildExecutionsState is a utility method to delete child execution from mutable state -func (s *TestBase) DeleteChildExecutionsState(updatedInfo *p.WorkflowExecutionInfo, updatedStats *p.ExecutionStats, updatedVersionHistories *p.VersionHistories, +func (s *TestBase) DeleteChildExecutionsState(updatedInfo *p.WorkflowExecutionInfo, updatedStats *persistenceblobs.ExecutionStats, updatedVersionHistories *p.VersionHistories, condition int64, deleteChildInfo int64) error { return s.UpdateWorkflowExecutionWithRangeID(updatedInfo, updatedStats, updatedVersionHistories, nil, nil, s.ShardInfo.GetRangeId(), condition, nil, nil, nil, @@ -683,7 +683,7 @@ func (s *TestBase) DeleteChildExecutionsState(updatedInfo *p.WorkflowExecutionIn } // DeleteCancelState is a utility method to delete request cancel state from mutable state -func (s *TestBase) DeleteCancelState(updatedInfo *p.WorkflowExecutionInfo, updatedStats *p.ExecutionStats, updatedVersionHistories *p.VersionHistories, +func (s *TestBase) DeleteCancelState(updatedInfo *p.WorkflowExecutionInfo, updatedStats *persistenceblobs.ExecutionStats, updatedVersionHistories *p.VersionHistories, condition int64, deleteCancelInfo int64) error { return s.UpdateWorkflowExecutionWithRangeID(updatedInfo, updatedStats, updatedVersionHistories, nil, nil, s.ShardInfo.GetRangeId(), condition, nil, nil, nil, @@ -692,7 +692,7 @@ func (s *TestBase) DeleteCancelState(updatedInfo *p.WorkflowExecutionInfo, updat } // DeleteSignalState is a utility method to delete request cancel state from mutable state -func (s *TestBase) DeleteSignalState(updatedInfo *p.WorkflowExecutionInfo, updatedStats *p.ExecutionStats, updatedVersionHistories *p.VersionHistories, +func (s *TestBase) DeleteSignalState(updatedInfo *p.WorkflowExecutionInfo, updatedStats *persistenceblobs.ExecutionStats, updatedVersionHistories *p.VersionHistories, condition int64, deleteSignalInfo int64) error { return s.UpdateWorkflowExecutionWithRangeID(updatedInfo, updatedStats, updatedVersionHistories, nil, nil, s.ShardInfo.GetRangeId(), condition, nil, nil, nil, @@ -701,7 +701,7 @@ func (s *TestBase) DeleteSignalState(updatedInfo *p.WorkflowExecutionInfo, updat } // DeleteSignalsRequestedState is a utility method to delete mutable state of workflow execution -func (s *TestBase) DeleteSignalsRequestedState(updatedInfo *p.WorkflowExecutionInfo, updatedStats *p.ExecutionStats, updatedVersionHistories *p.VersionHistories, +func (s *TestBase) DeleteSignalsRequestedState(updatedInfo *p.WorkflowExecutionInfo, updatedStats *persistenceblobs.ExecutionStats, updatedVersionHistories *p.VersionHistories, condition int64, deleteSignalsRequestedID string) error { return s.UpdateWorkflowExecutionWithRangeID(updatedInfo, updatedStats, updatedVersionHistories, nil, nil, s.ShardInfo.GetRangeId(), condition, nil, nil, nil, @@ -710,8 +710,8 @@ func (s *TestBase) DeleteSignalsRequestedState(updatedInfo *p.WorkflowExecutionI } // UpdateWorklowStateAndReplication is a utility method to update workflow execution -func (s *TestBase) UpdateWorklowStateAndReplication(updatedInfo *p.WorkflowExecutionInfo, updatedStats *p.ExecutionStats, - updatedReplicationState *p.ReplicationState, updatedVersionHistories *p.VersionHistories, +func (s *TestBase) UpdateWorklowStateAndReplication(updatedInfo *p.WorkflowExecutionInfo, updatedStats *persistenceblobs.ExecutionStats, + updatedReplicationState *persistenceblobs.ReplicationState, updatedVersionHistories *p.VersionHistories, condition int64, txTasks []p.Task) error { return s.UpdateWorkflowExecutionWithReplication(updatedInfo, updatedStats, updatedReplicationState, updatedVersionHistories, nil, nil, s.ShardInfo.GetRangeId(), condition, nil, txTasks, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, "", @@ -719,7 +719,7 @@ func (s *TestBase) UpdateWorklowStateAndReplication(updatedInfo *p.WorkflowExecu } // UpdateWorkflowExecutionWithRangeID is a utility method to update workflow execution -func (s *TestBase) UpdateWorkflowExecutionWithRangeID(updatedInfo *p.WorkflowExecutionInfo, updatedStats *p.ExecutionStats, updatedVersionHistories *p.VersionHistories, +func (s *TestBase) UpdateWorkflowExecutionWithRangeID(updatedInfo *p.WorkflowExecutionInfo, updatedStats *persistenceblobs.ExecutionStats, updatedVersionHistories *p.VersionHistories, workflowTaskScheduleIDs []int64, activityScheduleIDs []int64, rangeID, condition int64, timerTasks []p.Task, upsertActivityInfos []*persistenceblobs.ActivityInfo, deleteActivityInfos []int64, upsertTimerInfos []*persistenceblobs.TimerInfo, deleteTimerInfos []string, upsertChildInfos []*persistenceblobs.ChildExecutionInfo, deleteChildInfo *int64, @@ -733,8 +733,8 @@ func (s *TestBase) UpdateWorkflowExecutionWithRangeID(updatedInfo *p.WorkflowExe } // UpdateWorkflowExecutionWithReplication is a utility method to update workflow execution -func (s *TestBase) UpdateWorkflowExecutionWithReplication(updatedInfo *p.WorkflowExecutionInfo, updatedStats *p.ExecutionStats, - updatedReplicationState *p.ReplicationState, updatedVersionHistories *p.VersionHistories, workflowTaskScheduleIDs []int64, activityScheduleIDs []int64, rangeID, +func (s *TestBase) UpdateWorkflowExecutionWithReplication(updatedInfo *p.WorkflowExecutionInfo, updatedStats *persistenceblobs.ExecutionStats, + updatedReplicationState *persistenceblobs.ReplicationState, updatedVersionHistories *p.VersionHistories, workflowTaskScheduleIDs []int64, activityScheduleIDs []int64, rangeID, condition int64, timerTasks []p.Task, txTasks []p.Task, upsertActivityInfos []*persistenceblobs.ActivityInfo, deleteActivityInfos []int64, upsertTimerInfos []*persistenceblobs.TimerInfo, deleteTimerInfos []string, upsertChildInfos []*persistenceblobs.ChildExecutionInfo, deleteChildInfo *int64, upsertCancelInfos []*persistenceblobs.RequestCancelInfo, @@ -802,7 +802,7 @@ func (s *TestBase) UpdateWorkflowExecutionWithReplication(updatedInfo *p.Workflo // UpdateWorkflowExecutionWithTransferTasks is a utility method to update workflow execution func (s *TestBase) UpdateWorkflowExecutionWithTransferTasks( - updatedInfo *p.WorkflowExecutionInfo, updatedStats *p.ExecutionStats, condition int64, transferTasks []p.Task, upsertActivityInfo []*persistenceblobs.ActivityInfo) error { + updatedInfo *p.WorkflowExecutionInfo, updatedStats *persistenceblobs.ExecutionStats, condition int64, transferTasks []p.Task, upsertActivityInfo []*persistenceblobs.ActivityInfo) error { _, err := s.ExecutionManager.UpdateWorkflowExecution(&p.UpdateWorkflowExecutionRequest{ UpdateWorkflowMutation: p.WorkflowMutation{ ExecutionInfo: updatedInfo, @@ -819,7 +819,7 @@ func (s *TestBase) UpdateWorkflowExecutionWithTransferTasks( // UpdateWorkflowExecutionForChildExecutionsInitiated is a utility method to update workflow execution func (s *TestBase) UpdateWorkflowExecutionForChildExecutionsInitiated( - updatedInfo *p.WorkflowExecutionInfo, updatedStats *p.ExecutionStats, condition int64, transferTasks []p.Task, childInfos []*persistenceblobs.ChildExecutionInfo) error { + updatedInfo *p.WorkflowExecutionInfo, updatedStats *persistenceblobs.ExecutionStats, condition int64, transferTasks []p.Task, childInfos []*persistenceblobs.ChildExecutionInfo) error { _, err := s.ExecutionManager.UpdateWorkflowExecution(&p.UpdateWorkflowExecutionRequest{ UpdateWorkflowMutation: p.WorkflowMutation{ ExecutionInfo: updatedInfo, @@ -836,7 +836,7 @@ func (s *TestBase) UpdateWorkflowExecutionForChildExecutionsInitiated( // UpdateWorkflowExecutionForRequestCancel is a utility method to update workflow execution func (s *TestBase) UpdateWorkflowExecutionForRequestCancel( - updatedInfo *p.WorkflowExecutionInfo, updatedStats *p.ExecutionStats, condition int64, transferTasks []p.Task, + updatedInfo *p.WorkflowExecutionInfo, updatedStats *persistenceblobs.ExecutionStats, condition int64, transferTasks []p.Task, upsertRequestCancelInfo []*persistenceblobs.RequestCancelInfo) error { _, err := s.ExecutionManager.UpdateWorkflowExecution(&p.UpdateWorkflowExecutionRequest{ UpdateWorkflowMutation: p.WorkflowMutation{ @@ -854,7 +854,7 @@ func (s *TestBase) UpdateWorkflowExecutionForRequestCancel( // UpdateWorkflowExecutionForSignal is a utility method to update workflow execution func (s *TestBase) UpdateWorkflowExecutionForSignal( - updatedInfo *p.WorkflowExecutionInfo, updatedStats *p.ExecutionStats, condition int64, transferTasks []p.Task, + updatedInfo *p.WorkflowExecutionInfo, updatedStats *persistenceblobs.ExecutionStats, condition int64, transferTasks []p.Task, upsertSignalInfos []*persistenceblobs.SignalInfo) error { _, err := s.ExecutionManager.UpdateWorkflowExecution(&p.UpdateWorkflowExecutionRequest{ UpdateWorkflowMutation: p.WorkflowMutation{ @@ -872,7 +872,7 @@ func (s *TestBase) UpdateWorkflowExecutionForSignal( // UpdateWorkflowExecutionForBufferEvents is a utility method to update workflow execution func (s *TestBase) UpdateWorkflowExecutionForBufferEvents( - updatedInfo *p.WorkflowExecutionInfo, updatedStats *p.ExecutionStats, rState *p.ReplicationState, condition int64, + updatedInfo *p.WorkflowExecutionInfo, updatedStats *persistenceblobs.ExecutionStats, rState *persistenceblobs.ReplicationState, condition int64, bufferEvents []*historypb.HistoryEvent, clearBufferedEvents bool) error { _, err := s.ExecutionManager.UpdateWorkflowExecution(&p.UpdateWorkflowExecutionRequest{ UpdateWorkflowMutation: p.WorkflowMutation{ @@ -941,7 +941,7 @@ func (s *TestBase) UpdateAllMutableState(updatedMutableState *p.WorkflowMutableS // ConflictResolveWorkflowExecution is utility method to reset mutable state func (s *TestBase) ConflictResolveWorkflowExecution(prevRunID string, prevLastWriteVersion int64, prevState enumsspb.WorkflowExecutionState, - info *p.WorkflowExecutionInfo, stats *p.ExecutionStats, replicationState *p.ReplicationState, nextEventID int64, + info *p.WorkflowExecutionInfo, stats *persistenceblobs.ExecutionStats, replicationState *persistenceblobs.ReplicationState, nextEventID int64, activityInfos []*persistenceblobs.ActivityInfo, timerInfos []*persistenceblobs.TimerInfo, childExecutionInfos []*persistenceblobs.ChildExecutionInfo, requestCancelInfos []*persistenceblobs.RequestCancelInfo, signalInfos []*persistenceblobs.SignalInfo, ids []string) error { return s.ExecutionManager.ConflictResolveWorkflowExecution(&p.ConflictResolveWorkflowExecutionRequest{ @@ -970,10 +970,10 @@ func (s *TestBase) ConflictResolveWorkflowExecution(prevRunID string, prevLastWr // ResetWorkflowExecution is utility method to reset WF func (s *TestBase) ResetWorkflowExecution(condition int64, info *p.WorkflowExecutionInfo, - executionStats *p.ExecutionStats, replicationState *p.ReplicationState, + executionStats *persistenceblobs.ExecutionStats, replicationState *persistenceblobs.ReplicationState, activityInfos []*persistenceblobs.ActivityInfo, timerInfos []*persistenceblobs.TimerInfo, childExecutionInfos []*persistenceblobs.ChildExecutionInfo, requestCancelInfos []*persistenceblobs.RequestCancelInfo, signalInfos []*persistenceblobs.SignalInfo, ids []string, trasTasks, timerTasks, replTasks []p.Task, - updateCurr bool, currInfo *p.WorkflowExecutionInfo, currExecutionStats *p.ExecutionStats, currReplicationState *p.ReplicationState, + updateCurr bool, currInfo *p.WorkflowExecutionInfo, currExecutionStats *persistenceblobs.ExecutionStats, currReplicationState *persistenceblobs.ReplicationState, currTrasTasks, currTimerTasks []p.Task, forkRunID string, forkRunNextEventID int64) error { req := &p.ResetWorkflowExecutionRequest{ diff --git a/common/persistence/persistenceInterface.go b/common/persistence/persistenceInterface.go index 78356836bb7..5bcb56896ec 100644 --- a/common/persistence/persistenceInterface.go +++ b/common/persistence/persistenceInterface.go @@ -268,7 +268,7 @@ type ( // InternalWorkflowMutableState indicates workflow related state for Persistence Interface InternalWorkflowMutableState struct { ExecutionInfo *InternalWorkflowExecutionInfo - ReplicationState *ReplicationState + ReplicationState *persistenceblobs.ReplicationState VersionHistories *serialization.DataBlob ActivityInfos map[int64]*persistenceblobs.ActivityInfo @@ -335,7 +335,7 @@ type ( // InternalWorkflowMutation is used as generic workflow execution state mutation for Persistence Interface InternalWorkflowMutation struct { ExecutionInfo *InternalWorkflowExecutionInfo - ReplicationState *ReplicationState + ReplicationState *persistenceblobs.ReplicationState VersionHistories *serialization.DataBlob StartVersion int64 LastWriteVersion int64 @@ -367,7 +367,7 @@ type ( // InternalWorkflowSnapshot is used as generic workflow execution state snapshot for Persistence Interface InternalWorkflowSnapshot struct { ExecutionInfo *InternalWorkflowExecutionInfo - ReplicationState *ReplicationState + ReplicationState *persistenceblobs.ReplicationState VersionHistories *serialization.DataBlob StartVersion int64 LastWriteVersion int64 @@ -678,7 +678,7 @@ func truncateDurationToSecondsInt64(d *time.Duration) int64 { return int64(d.Truncate(time.Second).Seconds()) } -func InternalWorkflowExecutionInfoToProto(executionInfo *InternalWorkflowExecutionInfo, startVersion int64, currentVersion int64, replicationState *ReplicationState, versionHistories *serialization.DataBlob) (*persistenceblobs.WorkflowExecutionInfo, *persistenceblobs.WorkflowExecutionState, error) { +func InternalWorkflowExecutionInfoToProto(executionInfo *InternalWorkflowExecutionInfo, startVersion int64, currentVersion int64, replicationState *persistenceblobs.ReplicationState, versionHistories *serialization.DataBlob) (*persistenceblobs.WorkflowExecutionInfo, *persistenceblobs.WorkflowExecutionState, error) { state := &persistenceblobs.WorkflowExecutionState{ CreateRequestId: executionInfo.CreateRequestID, State: executionInfo.State, @@ -748,7 +748,7 @@ func InternalWorkflowExecutionInfoToProto(executionInfo *InternalWorkflowExecuti // both unspecified // this is allowed } else if replicationState != nil && versionHistories == nil { - info.ReplicationData = &persistenceblobs.ReplicationData{LastReplicationInfo: replicationState.LastReplicationInfo, LastWriteEventId: replicationState.LastWriteEventID} + info.ReplicationData = &persistenceblobs.ReplicationData{LastReplicationInfo: replicationState.LastReplicationInfo, LastWriteEventId: replicationState.LastWriteEventId} } else if versionHistories != nil && replicationState == nil { info.VersionHistories = versionHistories.Data info.VersionHistoriesEncoding = string(versionHistories.GetEncoding()) diff --git a/common/persistence/sql/sqlExecutionManager.go b/common/persistence/sql/sqlExecutionManager.go index 3fc3dbbeb5d..f41946e5dd7 100644 --- a/common/persistence/sql/sqlExecutionManager.go +++ b/common/persistence/sql/sqlExecutionManager.go @@ -245,12 +245,12 @@ func (m *sqlExecutionManager) GetWorkflowExecution( state := &p.InternalWorkflowMutableState{ExecutionInfo: executionInfo} if info.ReplicationData != nil { - state.ReplicationState = &p.ReplicationState{} + state.ReplicationState = &persistenceblobs.ReplicationState{} state.ReplicationState.StartVersion = info.StartVersion state.ReplicationState.CurrentVersion = info.CurrentVersion state.ReplicationState.LastWriteVersion = executionsRow.LastWriteVersion - state.ReplicationState.LastWriteEventID = info.ReplicationData.LastWriteEventId + state.ReplicationState.LastWriteEventId = info.ReplicationData.LastWriteEventId state.ReplicationState.LastReplicationInfo = info.ReplicationData.LastReplicationInfo if state.ReplicationState.LastReplicationInfo == nil { diff --git a/common/persistence/sql/sqlExecutionManagerUtil.go b/common/persistence/sql/sqlExecutionManagerUtil.go index 940a61967ce..3b7e958bedd 100644 --- a/common/persistence/sql/sqlExecutionManagerUtil.go +++ b/common/persistence/sql/sqlExecutionManagerUtil.go @@ -1135,7 +1135,7 @@ func updateCurrentExecution( func buildExecutionRow( executionInfo *p.InternalWorkflowExecutionInfo, - replicationState *p.ReplicationState, + replicationState *persistenceblobs.ReplicationState, versionHistories *serialization.DataBlob, startVersion int64, lastWriteVersion int64, @@ -1185,7 +1185,7 @@ func buildExecutionRow( func (m *sqlExecutionManager) createExecution( tx sqlplugin.Tx, executionInfo *p.InternalWorkflowExecutionInfo, - replicationState *p.ReplicationState, + replicationState *persistenceblobs.ReplicationState, versionHistories *serialization.DataBlob, startVersion int64, lastWriteVersion int64, @@ -1244,7 +1244,7 @@ func (m *sqlExecutionManager) createExecution( func updateExecution( tx sqlplugin.Tx, executionInfo *p.InternalWorkflowExecutionInfo, - replicationState *p.ReplicationState, + replicationState *persistenceblobs.ReplicationState, versionHistories *serialization.DataBlob, startVersion int64, lastWriteVersion int64, diff --git a/proto/internal/temporal/server/api/persistenceblobs/v1/message.proto b/proto/internal/temporal/server/api/persistenceblobs/v1/message.proto index 85b3fe892f5..97e81635514 100644 --- a/proto/internal/temporal/server/api/persistenceblobs/v1/message.proto +++ b/proto/internal/temporal/server/api/persistenceblobs/v1/message.proto @@ -23,8 +23,8 @@ syntax = "proto3"; package temporal.server.api.persistenceblobs.v1; option go_package = "go.temporal.io/server/api/persistenceblobs/v1;persistenceblobs"; -import "google/protobuf/timestamp.proto"; import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; import "google/protobuf/wrappers.proto"; import "temporal/api/common/v1/message.proto"; @@ -41,6 +41,23 @@ import "temporal/server/api/enums/v1/workflow.proto"; import "temporal/server/api/enums/v1/task.proto"; import "temporal/server/api/replication/v1/message.proto"; + +// ExecutionStats is not persisted and is used internally and as part of mutableState +message ExecutionStats { + int64 history_size = 1; +} + +// ReplicationState represents mutable state information for global namespaces. +// This information is used by replication protocol when applying events from remote clusters +// (not persisted) +message ReplicationState { + int64 current_version = 1; + int64 start_version = 2; + int64 last_write_version = 3; + int64 last_write_event_id = 4; + map last_replication_info = 5; +} + // ImmutableClusterMetadata contains initialization configuration and metadata for the cluster. message ImmutableClusterMetadata { string cluster_name = 1; diff --git a/service/history/checksum.go b/service/history/checksum.go index 212ba2f099b..dc71248b780 100644 --- a/service/history/checksum.go +++ b/service/history/checksum.go @@ -75,7 +75,7 @@ func newMutableStateChecksumPayload(ms mutableState) *checksumproto.MutableState if replicationState != nil { payload.LastWriteVersion = replicationState.LastWriteVersion - payload.LastWriteEventId = replicationState.LastWriteEventID + payload.LastWriteEventId = replicationState.LastWriteEventId } versionHistories := ms.GetVersionHistories() diff --git a/service/history/commandChecker.go b/service/history/commandChecker.go index 41a83a80c93..9080bdde735 100644 --- a/service/history/commandChecker.go +++ b/service/history/commandChecker.go @@ -36,6 +36,7 @@ import ( "go.temporal.io/api/serviceerror" taskqueuepb "go.temporal.io/api/taskqueue/v1" + "go.temporal.io/server/api/persistenceblobs/v1" "go.temporal.io/server/common" "go.temporal.io/server/common/backoff" "go.temporal.io/server/common/cache" @@ -69,7 +70,7 @@ type ( completedID int64 mutableState mutableState - executionStats *persistence.ExecutionStats + executionStats *persistenceblobs.ExecutionStats metricsScope metrics.Scope logger log.Logger } @@ -108,7 +109,7 @@ func newWorkflowSizeChecker( historyCountLimitError int, completedID int64, mutableState mutableState, - executionStats *persistence.ExecutionStats, + executionStats *persistenceblobs.ExecutionStats, metricsScope metrics.Scope, logger log.Logger, ) *workflowSizeChecker { diff --git a/service/history/conflictResolver_test.go b/service/history/conflictResolver_test.go index 0745e9fc668..d582eab2c3d 100644 --- a/service/history/conflictResolver_test.go +++ b/service/history/conflictResolver_test.go @@ -249,14 +249,14 @@ func (s *conflictResolverSuite) TestReset() { }, ResetWorkflowSnapshot: persistence.WorkflowSnapshot{ ExecutionInfo: executionInfo, - ExecutionStats: &persistence.ExecutionStats{ + ExecutionStats: &persistenceblobs.ExecutionStats{ HistorySize: historySize, }, - ReplicationState: &persistence.ReplicationState{ + ReplicationState: &persistenceblobs.ReplicationState{ CurrentVersion: event1.GetVersion(), StartVersion: event1.GetVersion(), LastWriteVersion: event1.GetVersion(), - LastWriteEventID: event1.GetEventId(), + LastWriteEventId: event1.GetEventId(), LastReplicationInfo: map[string]*replicationspb.ReplicationInfo{ sourceCluster: { Version: event1.GetVersion(), @@ -288,7 +288,7 @@ func (s *conflictResolverSuite) TestReset() { State: enumsspb.WORKFLOW_EXECUTION_STATE_CREATED, Status: enumspb.WORKFLOW_EXECUTION_STATUS_RUNNING, }, - ExecutionStats: &persistence.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, }, }, nil).Once() // return empty resoonse since we are not testing the load s.mockClusterMetadata.EXPECT().IsGlobalNamespaceEnabled().Return(true).AnyTimes() diff --git a/service/history/historyEngine_test.go b/service/history/historyEngine_test.go index 322d8bb3852..86d1e7c8664 100644 --- a/service/history/historyEngine_test.go +++ b/service/history/historyEngine_test.go @@ -5222,7 +5222,7 @@ func createMutableState(ms mutableState) *persistence.WorkflowMutableState { builder := ms.(*mutableStateBuilder) builder.FlushBufferedEvents() // nolint:errcheck info := copyWorkflowExecutionInfo(builder.executionInfo) - stats := &persistence.ExecutionStats{} + stats := &persistenceblobs.ExecutionStats{} activityInfos := make(map[int64]*persistenceblobs.ActivityInfo) for id, info := range builder.pendingActivityInfoIDs { activityInfos[id] = copyActivityInfo(info) @@ -5252,7 +5252,7 @@ func createMutableState(ms mutableState) *persistence.WorkflowMutableState { if len(builder.updateBufferedEvents) > 0 { bufferedEvents = append(bufferedEvents, builder.updateBufferedEvents...) } - var replicationState *persistence.ReplicationState + var replicationState *persistenceblobs.ReplicationState if builder.replicationState != nil { replicationState = copyReplicationState(builder.replicationState) } @@ -5428,7 +5428,7 @@ func copyChildInfo(sourceInfo *persistenceblobs.ChildExecutionInfo) *persistence } } -func copyReplicationState(source *persistence.ReplicationState) *persistence.ReplicationState { +func copyReplicationState(source *persistenceblobs.ReplicationState) *persistenceblobs.ReplicationState { var lastReplicationInfo map[string]*replicationspb.ReplicationInfo if source.LastReplicationInfo != nil { lastReplicationInfo = map[string]*replicationspb.ReplicationInfo{} @@ -5440,11 +5440,11 @@ func copyReplicationState(source *persistence.ReplicationState) *persistence.Rep } } - return &persistence.ReplicationState{ + return &persistenceblobs.ReplicationState{ CurrentVersion: source.CurrentVersion, StartVersion: source.StartVersion, LastWriteVersion: source.LastWriteVersion, - LastWriteEventID: source.LastWriteEventID, + LastWriteEventId: source.LastWriteEventId, LastReplicationInfo: lastReplicationInfo, } } diff --git a/service/history/historyReplicator.go b/service/history/historyReplicator.go index e77c950d97a..f86b0cc7450 100644 --- a/service/history/historyReplicator.go +++ b/service/history/historyReplicator.go @@ -454,7 +454,7 @@ func (r *historyReplicator) ApplyOtherEventsVersionChecking( } if rState.LastWriteVersion == incomingVersion { - // for ri.GetLastEventId() == rState.LastWriteEventID, ideally we should not do anything + // for ri.GetLastEventId() == rState.LastWriteEventId, ideally we should not do anything return msBuilder, nil } @@ -516,7 +516,7 @@ func (r *historyReplicator) ApplyOtherEventsVersionChecking( // remote replication info last write version is the same as local last write version, check reset // Detect conflict - if ri.GetLastEventId() > rState.LastWriteEventID { + if ri.GetLastEventId() > rState.LastWriteEventId { // if there is any bug in the replication protocol or implementation, this case can happen logError(logger, "Conflict detected, but cannot resolve.", ErrCorruptedReplicationInfo) // Returning InvalidArgument to force the message to land into DLQ @@ -528,7 +528,7 @@ func (r *historyReplicator) ApplyOtherEventsVersionChecking( return nil, err } - if ri.GetLastEventId() < msBuilder.GetReplicationState().LastWriteEventID { + if ri.GetLastEventId() < msBuilder.GetReplicationState().LastWriteEventId { // the reason to reset mutable state if mutable state has buffered events // is: what buffered event actually do is delay generation of event ID, // the actual action of those buffered event are already applied to mutable state. diff --git a/service/history/historyReplicator_test.go b/service/history/historyReplicator_test.go index 7ab2b7bfa0f..41ed2f46e33 100644 --- a/service/history/historyReplicator_test.go +++ b/service/history/historyReplicator_test.go @@ -497,8 +497,8 @@ func (s *historyReplicatorSuite) TestApplyOtherEventsMissingMutableState_Incomin WorkflowTaskScheduleID: common.EmptyEventID, WorkflowTaskStartedID: common.EmptyEventID, }, - ExecutionStats: &persistence.ExecutionStats{}, - ReplicationState: &persistence.ReplicationState{LastWriteVersion: currentVersion}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, + ReplicationState: &persistenceblobs.ReplicationState{LastWriteVersion: currentVersion}, }, }, nil) @@ -570,8 +570,8 @@ func (s *historyReplicatorSuite) TestApplyOtherEventsMissingMutableState_Incomin WorkflowTaskScheduleID: common.EmptyEventID, WorkflowTaskStartedID: common.EmptyEventID, }, - ExecutionStats: &persistence.ExecutionStats{}, - ReplicationState: &persistence.ReplicationState{LastWriteVersion: currentVersion}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, + ReplicationState: &persistenceblobs.ReplicationState{LastWriteVersion: currentVersion}, }, }, nil) @@ -714,8 +714,8 @@ func (s *historyReplicatorSuite) TestApplyOtherEventsMissingMutableState_Incomin WorkflowTaskScheduleID: common.EmptyEventID, WorkflowTaskStartedID: common.EmptyEventID, }, - ExecutionStats: &persistence.ExecutionStats{}, - ReplicationState: &persistence.ReplicationState{LastWriteVersion: currentVersion}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, + ReplicationState: &persistenceblobs.ReplicationState{LastWriteVersion: currentVersion}, }, }, nil) @@ -784,8 +784,8 @@ func (s *historyReplicatorSuite) TestWorkflowReset() { WorkflowTaskScheduleID: common.EmptyEventID, WorkflowTaskStartedID: common.EmptyEventID, }, - ExecutionStats: &persistence.ExecutionStats{}, - ReplicationState: &persistence.ReplicationState{LastWriteVersion: currentVersion}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, + ReplicationState: &persistenceblobs.ReplicationState{LastWriteVersion: currentVersion}, }, }, nil) @@ -857,8 +857,8 @@ func (s *historyReplicatorSuite) TestApplyOtherEventsMissingMutableState_Incomin WorkflowTaskStartedID: common.EmptyEventID, State: enumsspb.WORKFLOW_EXECUTION_STATE_CREATED, }, - ExecutionStats: &persistence.ExecutionStats{}, - ReplicationState: &persistence.ReplicationState{LastWriteVersion: currentVersion}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, + ReplicationState: &persistenceblobs.ReplicationState{LastWriteVersion: currentVersion}, }, }, nil) @@ -891,7 +891,7 @@ func (s *historyReplicatorSuite) TestApplyOtherEventsVersionChecking_IncomingLes }}, } msBuilderIn.EXPECT().IsWorkflowExecutionRunning().Return(false).AnyTimes() - msBuilderIn.EXPECT().GetReplicationState().Return(&persistence.ReplicationState{LastWriteVersion: currentLastWriteVersion}).AnyTimes() + msBuilderIn.EXPECT().GetReplicationState().Return(&persistenceblobs.ReplicationState{LastWriteVersion: currentLastWriteVersion}).AnyTimes() s.mockExecutionMgr.On("GetCurrentExecution", &persistence.GetCurrentExecutionRequest{ NamespaceID: namespaceID, WorkflowID: workflowID, @@ -935,7 +935,7 @@ func (s *historyReplicatorSuite) TestApplyOtherEventsVersionChecking_IncomingLes }}, } msBuilderIn.EXPECT().IsWorkflowExecutionRunning().Return(false).AnyTimes() - msBuilderIn.EXPECT().GetReplicationState().Return(&persistence.ReplicationState{LastWriteVersion: lastWriteVersion}).AnyTimes() + msBuilderIn.EXPECT().GetReplicationState().Return(&persistenceblobs.ReplicationState{LastWriteVersion: lastWriteVersion}).AnyTimes() s.mockExecutionMgr.On("GetCurrentExecution", &persistence.GetCurrentExecutionRequest{ NamespaceID: namespaceID, WorkflowID: workflowID, @@ -1003,7 +1003,7 @@ func (s *historyReplicatorSuite) TestApplyOtherEventsVersionChecking_IncomingLes }}, } msBuilderIn.EXPECT().IsWorkflowExecutionRunning().Return(false).AnyTimes() - msBuilderIn.EXPECT().GetReplicationState().Return(&persistence.ReplicationState{LastWriteVersion: lastWriteVersion}).AnyTimes() + msBuilderIn.EXPECT().GetReplicationState().Return(&persistenceblobs.ReplicationState{LastWriteVersion: lastWriteVersion}).AnyTimes() s.mockExecutionMgr.On("GetCurrentExecution", &persistence.GetCurrentExecutionRequest{ NamespaceID: namespaceID, WorkflowID: workflowID, @@ -1089,7 +1089,7 @@ func (s *historyReplicatorSuite) TestApplyOtherEventsVersionChecking_IncomingLes }}, } msBuilderIn.EXPECT().IsWorkflowExecutionRunning().Return(false).AnyTimes() - msBuilderIn.EXPECT().GetReplicationState().Return(&persistence.ReplicationState{LastWriteVersion: lastWriteVersion}).AnyTimes() + msBuilderIn.EXPECT().GetReplicationState().Return(&persistenceblobs.ReplicationState{LastWriteVersion: lastWriteVersion}).AnyTimes() s.mockExecutionMgr.On("GetCurrentExecution", &persistence.GetCurrentExecutionRequest{ NamespaceID: namespaceID, WorkflowID: workflowID, @@ -1162,7 +1162,7 @@ func (s *historyReplicatorSuite) TestApplyOtherEventsVersionChecking_IncomingLes }}, } msBuilderIn.EXPECT().IsWorkflowExecutionRunning().Return(true).Times(1) - msBuilderIn.EXPECT().GetReplicationState().Return(&persistence.ReplicationState{LastWriteVersion: currentLastWriteVersion}).AnyTimes() + msBuilderIn.EXPECT().GetReplicationState().Return(&persistenceblobs.ReplicationState{LastWriteVersion: currentLastWriteVersion}).AnyTimes() s.mockClusterMetadata.EXPECT().ClusterNameForFailoverVersion(currentLastWriteVersion).Return(cluster.TestCurrentClusterName).AnyTimes() s.mockClusterMetadata.EXPECT().GetCurrentClusterName().Return(cluster.TestCurrentClusterName).AnyTimes() @@ -1197,7 +1197,7 @@ func (s *historyReplicatorSuite) TestApplyOtherEventsVersionChecking_IncomingLes }, }}, } - msBuilderIn.EXPECT().GetReplicationState().Return(&persistence.ReplicationState{LastWriteVersion: currentLastWriteVersion}).AnyTimes() + msBuilderIn.EXPECT().GetReplicationState().Return(&persistenceblobs.ReplicationState{LastWriteVersion: currentLastWriteVersion}).AnyTimes() msBuilderIn.EXPECT().GetLastWriteVersion().Return(currentLastWriteVersion, nil).AnyTimes() msBuilderIn.EXPECT().IsWorkflowExecutionRunning().Return(true).AnyTimes() msBuilderIn.EXPECT().UpdateCurrentVersion(currentLastWriteVersion, true).Return(nil).Times(1) @@ -1248,7 +1248,7 @@ func (s *historyReplicatorSuite) TestApplyOtherEventsVersionChecking_IncomingLes }, }}, } - msBuilderIn.EXPECT().GetReplicationState().Return(&persistence.ReplicationState{LastWriteVersion: currentLastWriteVersion}).AnyTimes() + msBuilderIn.EXPECT().GetReplicationState().Return(&persistenceblobs.ReplicationState{LastWriteVersion: currentLastWriteVersion}).AnyTimes() msBuilderIn.EXPECT().GetLastWriteVersion().Return(currentLastWriteVersion, nil).AnyTimes() msBuilderIn.EXPECT().IsWorkflowExecutionRunning().Return(true).AnyTimes() msBuilderIn.EXPECT().UpdateCurrentVersion(currentLastWriteVersion, true).Return(nil).Times(1) @@ -1295,7 +1295,7 @@ func (s *historyReplicatorSuite) TestApplyOtherEventsVersionChecking_IncomingEqu {Timestamp: time.Now().UnixNano()}, }}, } - msBuilderIn.EXPECT().GetReplicationState().Return(&persistence.ReplicationState{LastWriteVersion: currentLastWriteVersion}).AnyTimes() + msBuilderIn.EXPECT().GetReplicationState().Return(&persistenceblobs.ReplicationState{LastWriteVersion: currentLastWriteVersion}).AnyTimes() msBuilderOut, err := s.historyReplicator.ApplyOtherEventsVersionChecking(context.Background(), weContext, msBuilderIn, request, s.logger) s.Equal(msBuilderIn, msBuilderOut) @@ -1316,7 +1316,7 @@ func (s *historyReplicatorSuite) TestApplyOtherEventsVersionChecking_IncomingGre {Timestamp: time.Now().UnixNano()}, }}, } - msBuilderIn.EXPECT().GetReplicationState().Return(&persistence.ReplicationState{ + msBuilderIn.EXPECT().GetReplicationState().Return(&persistenceblobs.ReplicationState{ LastWriteVersion: currentLastWriteVersion, }).AnyTimes() @@ -1343,7 +1343,7 @@ func (s *historyReplicatorSuite) TestApplyOtherEventsVersionChecking_IncomingGre {Timestamp: time.Now().UnixNano()}, }}, } - msBuilderIn.EXPECT().GetReplicationState().Return(&persistence.ReplicationState{ + msBuilderIn.EXPECT().GetReplicationState().Return(&persistenceblobs.ReplicationState{ LastWriteVersion: currentLastWriteVersion, }).AnyTimes() @@ -1380,9 +1380,9 @@ func (s *historyReplicatorSuite) TestApplyOtherEventsVersionChecking_IncomingGre }}, } startTimeStamp := time.Now() - msBuilderIn.EXPECT().GetReplicationState().Return(&persistence.ReplicationState{ + msBuilderIn.EXPECT().GetReplicationState().Return(&persistenceblobs.ReplicationState{ LastWriteVersion: currentLastWriteVersion, - LastWriteEventID: currentLastEventID, + LastWriteEventId: currentLastEventID, LastReplicationInfo: map[string]*replicationspb.ReplicationInfo{ incomingActiveCluster: { Version: currentReplicationInfoLastWriteVersion, @@ -1451,9 +1451,9 @@ func (s *historyReplicatorSuite) TestApplyOtherEventsVersionChecking_IncomingGre }}, } startTimeStamp := time.Now() - msBuilderIn.EXPECT().GetReplicationState().Return(&persistence.ReplicationState{ + msBuilderIn.EXPECT().GetReplicationState().Return(&persistenceblobs.ReplicationState{ LastWriteVersion: currentLastWriteVersion, - LastWriteEventID: currentLastEventID, + LastWriteEventId: currentLastEventID, LastReplicationInfo: map[string]*replicationspb.ReplicationInfo{ incomingActiveCluster: { Version: currentReplicationInfoLastWriteVersion, @@ -1514,9 +1514,9 @@ func (s *historyReplicatorSuite) TestApplyOtherEventsVersionChecking_IncomingGre {Timestamp: time.Now().UnixNano()}, }}, } - msBuilderIn.EXPECT().GetReplicationState().Return(&persistence.ReplicationState{ + msBuilderIn.EXPECT().GetReplicationState().Return(&persistenceblobs.ReplicationState{ LastWriteVersion: currentLastWriteVersion, - LastWriteEventID: currentLastEventID, + LastWriteEventId: currentLastEventID, }).AnyTimes() s.mockClusterMetadata.EXPECT().ClusterNameForFailoverVersion(currentLastWriteVersion).Return(prevActiveCluster).AnyTimes() @@ -1553,9 +1553,9 @@ func (s *historyReplicatorSuite) TestApplyOtherEventsVersionChecking_IncomingGre }}, } startTimeStamp := time.Now() - msBuilderIn.EXPECT().GetReplicationState().Return(&persistence.ReplicationState{ + msBuilderIn.EXPECT().GetReplicationState().Return(&persistenceblobs.ReplicationState{ LastWriteVersion: currentLastWriteVersion, - LastWriteEventID: currentLastEventID, + LastWriteEventId: currentLastEventID, }).AnyTimes() msBuilderIn.EXPECT().HasBufferedEvents().Return(false).Times(1) currentState := enumsspb.WORKFLOW_EXECUTION_STATE_CREATED @@ -1611,9 +1611,9 @@ func (s *historyReplicatorSuite) TestApplyOtherEventsVersionChecking_IncomingGre {Timestamp: time.Now().UnixNano()}, }}, } - msBuilderIn.EXPECT().GetReplicationState().Return(&persistence.ReplicationState{ + msBuilderIn.EXPECT().GetReplicationState().Return(&persistenceblobs.ReplicationState{ LastWriteVersion: currentLastWriteVersion, - LastWriteEventID: currentLastEventID, + LastWriteEventId: currentLastEventID, }).AnyTimes() s.mockClusterMetadata.EXPECT().ClusterNameForFailoverVersion(currentLastWriteVersion).Return(prevActiveCluster).AnyTimes() @@ -1651,9 +1651,9 @@ func (s *historyReplicatorSuite) TestApplyOtherEventsVersionChecking_IncomingGre } msBuilderIn.EXPECT().HasBufferedEvents().Return(false).Times(1) - msBuilderIn.EXPECT().GetReplicationState().Return(&persistence.ReplicationState{ + msBuilderIn.EXPECT().GetReplicationState().Return(&persistenceblobs.ReplicationState{ LastWriteVersion: currentLastWriteVersion, - LastWriteEventID: currentLastEventID, + LastWriteEventId: currentLastEventID, }).AnyTimes() msBuilderIn.EXPECT().IsWorkflowExecutionRunning().Return(true).Times(1) s.mockClusterMetadata.EXPECT().ClusterNameForFailoverVersion(currentLastWriteVersion).Return(prevActiveCluster).AnyTimes() @@ -1703,9 +1703,9 @@ func (s *historyReplicatorSuite) TestApplyOtherEventsVersionChecking_IncomingGre StartedID: 57, } msBuilderIn.EXPECT().GetLastWriteVersion().Return(currentLastWriteVersion, nil).Times(1) - msBuilderIn.EXPECT().GetReplicationState().Return(&persistence.ReplicationState{ + msBuilderIn.EXPECT().GetReplicationState().Return(&persistenceblobs.ReplicationState{ LastWriteVersion: currentLastWriteVersion, - LastWriteEventID: currentLastEventID, + LastWriteEventId: currentLastEventID, }).Times(1) msBuilderIn.EXPECT().HasBufferedEvents().Return(true).Times(1) msBuilderIn.EXPECT().GetInFlightWorkflowTask().Return(pendingWorkflowTaskInfo, true).Times(1) @@ -1742,9 +1742,9 @@ func (s *historyReplicatorSuite) TestApplyOtherEventsVersionChecking_IncomingGre weContext.EXPECT().updateWorkflowExecutionAsActive(gomock.Any()).Return(nil).Times(1) // after the flush, the pending buffered events are gone, however, the last event ID should increase - msBuilderIn.EXPECT().GetReplicationState().Return(&persistence.ReplicationState{ + msBuilderIn.EXPECT().GetReplicationState().Return(&persistenceblobs.ReplicationState{ LastWriteVersion: currentLastWriteVersion, - LastWriteEventID: currentLastEventID + 2, + LastWriteEventId: currentLastEventID + 2, }).Times(1) msBuilderIn.EXPECT().IsWorkflowExecutionRunning().Return(currentState != enumsspb.WORKFLOW_EXECUTION_STATE_COMPLETED).AnyTimes() msBuilderIn.EXPECT().GetLastWriteVersion().Return(currentLastWriteVersion, nil).Times(1) @@ -1777,7 +1777,7 @@ func (s *historyReplicatorSuite) TestApplyOtherEvents_IncomingLessThanCurrent() History: &historypb.History{}, } msBuilder.EXPECT().GetNextEventID().Return(currentNextEventID).AnyTimes() - msBuilder.EXPECT().GetReplicationState().Return(&persistence.ReplicationState{}).AnyTimes() // logger will use this + msBuilder.EXPECT().GetReplicationState().Return(&persistenceblobs.ReplicationState{}).AnyTimes() // logger will use this err := s.historyReplicator.ApplyOtherEvents(context.Background(), weContext, msBuilder, request, s.logger) s.Nil(err) @@ -1893,11 +1893,11 @@ func (s *historyReplicatorSuite) TestReplicateWorkflowStarted_BrandNew() { }, } nextEventID := di.ScheduleID + 1 - replicationState := &persistence.ReplicationState{ + replicationState := &persistenceblobs.ReplicationState{ StartVersion: version, CurrentVersion: version, LastWriteVersion: version, - LastWriteEventID: nextEventID - 1, + LastWriteEventId: nextEventID - 1, } transferTasks := []persistence.Task{&persistence.CloseExecutionTask{Version: version}} timerTasks := []persistence.Task{&persistence.DeleteHistoryEventTask{Version: version}} @@ -1931,7 +1931,7 @@ func (s *historyReplicatorSuite) TestReplicateWorkflowStarted_BrandNew() { msBuilder.EXPECT().GetExecutionInfo().Return(executionInfo).AnyTimes() newWorkflowSnapshot := &persistence.WorkflowSnapshot{ ExecutionInfo: executionInfo, - ExecutionStats: &persistence.ExecutionStats{HistorySize: int64(historySize)}, + ExecutionStats: &persistenceblobs.ExecutionStats{HistorySize: int64(historySize)}, ReplicationState: replicationState, TransferTasks: transferTasks, TimerTasks: timerTasks, @@ -2013,11 +2013,11 @@ func (s *historyReplicatorSuite) TestReplicateWorkflowStarted_ISE() { }, } nextEventID := di.ScheduleID + 1 - replicationState := &persistence.ReplicationState{ + replicationState := &persistenceblobs.ReplicationState{ StartVersion: version, CurrentVersion: version, LastWriteVersion: version, - LastWriteEventID: nextEventID - 1, + LastWriteEventId: nextEventID - 1, } transferTasks := []persistence.Task{&persistence.CloseExecutionTask{Version: version}} timerTasks := []persistence.Task{&persistence.DeleteHistoryEventTask{Version: version}} @@ -2051,7 +2051,7 @@ func (s *historyReplicatorSuite) TestReplicateWorkflowStarted_ISE() { msBuilder.EXPECT().GetExecutionInfo().Return(executionInfo).AnyTimes() newWorkflowSnapshot := &persistence.WorkflowSnapshot{ ExecutionInfo: executionInfo, - ExecutionStats: &persistence.ExecutionStats{HistorySize: int64(historySize)}, + ExecutionStats: &persistenceblobs.ExecutionStats{HistorySize: int64(historySize)}, ReplicationState: replicationState, TransferTasks: transferTasks, TimerTasks: timerTasks, @@ -2129,11 +2129,11 @@ func (s *historyReplicatorSuite) TestReplicateWorkflowStarted_SameRunID() { }, } nextEventID := di.ScheduleID + 1 - replicationState := &persistence.ReplicationState{ + replicationState := &persistenceblobs.ReplicationState{ StartVersion: version, CurrentVersion: version, LastWriteVersion: version, - LastWriteEventID: nextEventID - 1, + LastWriteEventId: nextEventID - 1, } transferTasks := []persistence.Task{&persistence.CloseExecutionTask{Version: version}} timerTasks := []persistence.Task{&persistence.DeleteHistoryEventTask{Version: version}} @@ -2167,7 +2167,7 @@ func (s *historyReplicatorSuite) TestReplicateWorkflowStarted_SameRunID() { msBuilder.EXPECT().GetExecutionInfo().Return(executionInfo).AnyTimes() newWorkflowSnapshot := &persistence.WorkflowSnapshot{ ExecutionInfo: executionInfo, - ExecutionStats: &persistence.ExecutionStats{HistorySize: int64(historySize)}, + ExecutionStats: &persistenceblobs.ExecutionStats{HistorySize: int64(historySize)}, ReplicationState: replicationState, TransferTasks: transferTasks, TimerTasks: timerTasks, @@ -2258,11 +2258,11 @@ func (s *historyReplicatorSuite) TestReplicateWorkflowStarted_CurrentComplete_In }, } nextEventID := di.ScheduleID + 1 - replicationState := &persistence.ReplicationState{ + replicationState := &persistenceblobs.ReplicationState{ StartVersion: version, CurrentVersion: version, LastWriteVersion: version, - LastWriteEventID: nextEventID - 1, + LastWriteEventId: nextEventID - 1, } transferTasks := []persistence.Task{&persistence.CloseExecutionTask{Version: version}} timerTasks := []persistence.Task{&persistence.DeleteHistoryEventTask{Version: version}} @@ -2303,7 +2303,7 @@ func (s *historyReplicatorSuite) TestReplicateWorkflowStarted_CurrentComplete_In msBuilder.EXPECT().GetExecutionInfo().Return(executionInfo).AnyTimes() newWorkflowSnapshot := &persistence.WorkflowSnapshot{ ExecutionInfo: executionInfo, - ExecutionStats: &persistence.ExecutionStats{HistorySize: int64(historySize)}, + ExecutionStats: &persistenceblobs.ExecutionStats{HistorySize: int64(historySize)}, ReplicationState: replicationState, TransferTasks: transferTasks, TimerTasks: timerTasks, @@ -2402,11 +2402,11 @@ func (s *historyReplicatorSuite) TestReplicateWorkflowStarted_CurrentComplete_In }, } nextEventID := wti.ScheduleID + 1 - replicationState := &persistence.ReplicationState{ + replicationState := &persistenceblobs.ReplicationState{ StartVersion: version, CurrentVersion: version, LastWriteVersion: version, - LastWriteEventID: nextEventID - 1, + LastWriteEventId: nextEventID - 1, } transferTasks := []persistence.Task{&persistence.CloseExecutionTask{Version: version}} timerTasks := []persistence.Task{&persistence.DeleteHistoryEventTask{Version: version}} @@ -2440,7 +2440,7 @@ func (s *historyReplicatorSuite) TestReplicateWorkflowStarted_CurrentComplete_In msBuilder.EXPECT().GetExecutionInfo().Return(executionInfo).AnyTimes() newWorkflowSnapshot := &persistence.WorkflowSnapshot{ ExecutionInfo: executionInfo, - ExecutionStats: &persistence.ExecutionStats{HistorySize: int64(historySize)}, + ExecutionStats: &persistenceblobs.ExecutionStats{HistorySize: int64(historySize)}, ReplicationState: replicationState, TransferTasks: transferTasks, TimerTasks: timerTasks, @@ -2539,11 +2539,11 @@ func (s *historyReplicatorSuite) TestReplicateWorkflowStarted_CurrentComplete_In }, } nextEventID := di.ScheduleID + 1 - replicationState := &persistence.ReplicationState{ + replicationState := &persistenceblobs.ReplicationState{ StartVersion: version, CurrentVersion: version, LastWriteVersion: version, - LastWriteEventID: nextEventID - 1, + LastWriteEventId: nextEventID - 1, } transferTasks := []persistence.Task{&persistence.CloseExecutionTask{Version: version}} timerTasks := []persistence.Task{&persistence.DeleteHistoryEventTask{Version: version}} @@ -2577,7 +2577,7 @@ func (s *historyReplicatorSuite) TestReplicateWorkflowStarted_CurrentComplete_In msBuilder.EXPECT().GetExecutionInfo().Return(executionInfo).AnyTimes() newWorkflowSnapshot := &persistence.WorkflowSnapshot{ ExecutionInfo: executionInfo, - ExecutionStats: &persistence.ExecutionStats{HistorySize: int64(historySize)}, + ExecutionStats: &persistenceblobs.ExecutionStats{HistorySize: int64(historySize)}, ReplicationState: replicationState, TransferTasks: transferTasks, TimerTasks: timerTasks, @@ -2676,11 +2676,11 @@ func (s *historyReplicatorSuite) TestReplicateWorkflowStarted_CurrentRunning_Inc }, } nextEventID := di.ScheduleID + 1 - replicationState := &persistence.ReplicationState{ + replicationState := &persistenceblobs.ReplicationState{ StartVersion: version, CurrentVersion: version, LastWriteVersion: version, - LastWriteEventID: nextEventID - 1, + LastWriteEventId: nextEventID - 1, } transferTasks := []persistence.Task{&persistence.CloseExecutionTask{Version: version}} timerTasks := []persistence.Task{&persistence.DeleteHistoryEventTask{Version: version}} @@ -2715,7 +2715,7 @@ func (s *historyReplicatorSuite) TestReplicateWorkflowStarted_CurrentRunning_Inc msBuilder.EXPECT().GetExecutionInfo().Return(executionInfo).AnyTimes() newWorkflowSnapshot := &persistence.WorkflowSnapshot{ ExecutionInfo: executionInfo, - ExecutionStats: &persistence.ExecutionStats{HistorySize: int64(historySize)}, + ExecutionStats: &persistenceblobs.ExecutionStats{HistorySize: int64(historySize)}, ReplicationState: replicationState, TransferTasks: transferTasks, TimerTasks: timerTasks, @@ -2840,11 +2840,11 @@ func (s *historyReplicatorSuite) TestReplicateWorkflowStarted_CurrentRunning_Inc }, } nextEventID := di.ScheduleID + 1 - replicationState := &persistence.ReplicationState{ + replicationState := &persistenceblobs.ReplicationState{ StartVersion: version, CurrentVersion: version, LastWriteVersion: version, - LastWriteEventID: nextEventID - 1, + LastWriteEventId: nextEventID - 1, } transferTasks := []persistence.Task{&persistence.CloseExecutionTask{Version: version}} timerTasks := []persistence.Task{&persistence.DeleteHistoryEventTask{Version: version}} @@ -2879,7 +2879,7 @@ func (s *historyReplicatorSuite) TestReplicateWorkflowStarted_CurrentRunning_Inc msBuilder.EXPECT().GetExecutionInfo().Return(executionInfo).AnyTimes() newWorkflowSnapshot := &persistence.WorkflowSnapshot{ ExecutionInfo: executionInfo, - ExecutionStats: &persistence.ExecutionStats{HistorySize: int64(historySize)}, + ExecutionStats: &persistenceblobs.ExecutionStats{HistorySize: int64(historySize)}, ReplicationState: replicationState, TransferTasks: transferTasks, TimerTasks: timerTasks, @@ -3017,11 +3017,11 @@ func (s *historyReplicatorSuite) TestReplicateWorkflowStarted_CurrentRunning_Inc }, } nextEventID := di.ScheduleID + 1 - replicationState := &persistence.ReplicationState{ + replicationState := &persistenceblobs.ReplicationState{ StartVersion: version, CurrentVersion: version, LastWriteVersion: version, - LastWriteEventID: nextEventID - 1, + LastWriteEventId: nextEventID - 1, } transferTasks := []persistence.Task{&persistence.CloseExecutionTask{Version: version}} timerTasks := []persistence.Task{&persistence.DeleteHistoryEventTask{Version: version}} @@ -3056,7 +3056,7 @@ func (s *historyReplicatorSuite) TestReplicateWorkflowStarted_CurrentRunning_Inc msBuilder.EXPECT().GetExecutionInfo().Return(executionInfo).AnyTimes() newWorkflowSnapshot := &persistence.WorkflowSnapshot{ ExecutionInfo: executionInfo, - ExecutionStats: &persistence.ExecutionStats{HistorySize: int64(historySize)}, + ExecutionStats: &persistenceblobs.ExecutionStats{HistorySize: int64(historySize)}, ReplicationState: replicationState, TransferTasks: transferTasks, TimerTasks: timerTasks, @@ -3192,11 +3192,11 @@ func (s *historyReplicatorSuite) TestReplicateWorkflowStarted_CurrentRunning_Inc }, } nextEventID := di.ScheduleID + 1 - replicationState := &persistence.ReplicationState{ + replicationState := &persistenceblobs.ReplicationState{ StartVersion: version, CurrentVersion: version, LastWriteVersion: version, - LastWriteEventID: nextEventID - 1, + LastWriteEventId: nextEventID - 1, } transferTasks := []persistence.Task{&persistence.CloseExecutionTask{Version: version}} timerTasks := []persistence.Task{&persistence.DeleteHistoryEventTask{Version: version}} @@ -3230,7 +3230,7 @@ func (s *historyReplicatorSuite) TestReplicateWorkflowStarted_CurrentRunning_Inc msBuilder.EXPECT().GetExecutionInfo().Return(executionInfo).AnyTimes() newWorkflowSnapshot := &persistence.WorkflowSnapshot{ ExecutionInfo: executionInfo, - ExecutionStats: &persistence.ExecutionStats{HistorySize: int64(historySize)}, + ExecutionStats: &persistenceblobs.ExecutionStats{HistorySize: int64(historySize)}, ReplicationState: replicationState, TransferTasks: transferTasks, TimerTasks: timerTasks, @@ -3348,11 +3348,11 @@ func (s *historyReplicatorSuite) TestReplicateWorkflowStarted_CurrentRunning_Inc }, } nextEventID := di.ScheduleID + 1 - replicationState := &persistence.ReplicationState{ + replicationState := &persistenceblobs.ReplicationState{ StartVersion: version, CurrentVersion: version, LastWriteVersion: version, - LastWriteEventID: nextEventID - 1, + LastWriteEventId: nextEventID - 1, } transferTasks := []persistence.Task{&persistence.CloseExecutionTask{Version: version}} timerTasks := []persistence.Task{&persistence.DeleteHistoryEventTask{Version: version}} @@ -3386,7 +3386,7 @@ func (s *historyReplicatorSuite) TestReplicateWorkflowStarted_CurrentRunning_Inc msBuilder.EXPECT().GetExecutionInfo().Return(executionInfo).AnyTimes() newWorkflowSnapshot := &persistence.WorkflowSnapshot{ ExecutionInfo: executionInfo, - ExecutionStats: &persistence.ExecutionStats{HistorySize: int64(historySize)}, + ExecutionStats: &persistenceblobs.ExecutionStats{HistorySize: int64(historySize)}, ReplicationState: replicationState, TransferTasks: transferTasks, TimerTasks: timerTasks, @@ -3512,11 +3512,11 @@ func (s *historyReplicatorSuite) TestReplicateWorkflowStarted_CurrentRunning_Inc }, } nextEventID := di.ScheduleID + 1 - replicationState := &persistence.ReplicationState{ + replicationState := &persistenceblobs.ReplicationState{ StartVersion: version, CurrentVersion: version, LastWriteVersion: version, - LastWriteEventID: nextEventID - 1, + LastWriteEventId: nextEventID - 1, } transferTasks := []persistence.Task{&persistence.CloseExecutionTask{Version: version}} timerTasks := []persistence.Task{&persistence.DeleteHistoryEventTask{Version: version}} @@ -3557,7 +3557,7 @@ func (s *historyReplicatorSuite) TestReplicateWorkflowStarted_CurrentRunning_Inc msBuilder.EXPECT().GetExecutionInfo().Return(executionInfo).AnyTimes() newWorkflowSnapshot := &persistence.WorkflowSnapshot{ ExecutionInfo: executionInfo, - ExecutionStats: &persistence.ExecutionStats{HistorySize: int64(historySize)}, + ExecutionStats: &persistenceblobs.ExecutionStats{HistorySize: int64(historySize)}, ReplicationState: replicationState, TransferTasks: transferTasks, TimerTasks: timerTasks, diff --git a/service/history/mutableState.go b/service/history/mutableState.go index 16389d492f9..6c16179bbba 100644 --- a/service/history/mutableState.go +++ b/service/history/mutableState.go @@ -149,7 +149,7 @@ type ( GetPendingChildExecutionInfos() map[int64]*persistenceblobs.ChildExecutionInfo GetPendingRequestCancelExternalInfos() map[int64]*persistenceblobs.RequestCancelInfo GetPendingSignalExternalInfos() map[int64]*persistenceblobs.SignalInfo - GetReplicationState() *persistence.ReplicationState + GetReplicationState() *persistenceblobs.ReplicationState GetRequestCancelInfo(int64) (*persistenceblobs.RequestCancelInfo, bool) GetRetryBackoffDuration(failure *failurepb.Failure) (time.Duration, enumspb.RetryState) GetCronBackoffDuration() (time.Duration, error) diff --git a/service/history/mutableStateBuilder.go b/service/history/mutableStateBuilder.go index 41488760994..b170e1edca3 100644 --- a/service/history/mutableStateBuilder.go +++ b/service/history/mutableStateBuilder.go @@ -107,7 +107,7 @@ type ( pendingChildExecutionInfoIDs map[int64]*persistenceblobs.ChildExecutionInfo // Initiated Event ID -> Child Execution Info updateChildExecutionInfos map[*persistenceblobs.ChildExecutionInfo]struct{} // Modified ChildExecution Infos since last update - deleteChildExecutionInfo *int64 // Deleted ChildExecution Info since last update + deleteChildExecutionInfo *int64 // Deleted ChildExecution Info since last update pendingRequestCancelInfoIDs map[int64]*persistenceblobs.RequestCancelInfo // Initiated Event ID -> RequestCancelInfo updateRequestCancelInfos map[*persistenceblobs.RequestCancelInfo]struct{} // Modified RequestCancel Infos since last update, for persistence update @@ -127,7 +127,7 @@ type ( executionInfo *persistence.WorkflowExecutionInfo // Workflow mutable state info. versionHistories *persistence.VersionHistories - replicationState *persistence.ReplicationState + replicationState *persistenceblobs.ReplicationState hBuilder *historyBuilder // in memory only attributes @@ -252,11 +252,11 @@ func newMutableStateBuilderWithReplicationState( namespaceEntry *cache.NamespaceCacheEntry, ) *mutableStateBuilder { s := newMutableStateBuilder(shard, eventsCache, logger, namespaceEntry) - s.replicationState = &persistence.ReplicationState{ + s.replicationState = &persistenceblobs.ReplicationState{ StartVersion: s.currentVersion, CurrentVersion: s.currentVersion, LastWriteVersion: common.EmptyVersion, - LastWriteEventID: common.EmptyEventID, + LastWriteEventId: common.EmptyEventID, LastReplicationInfo: make(map[string]*replicationspb.ReplicationInfo), } return s @@ -403,7 +403,7 @@ func (e *mutableStateBuilder) GetExecutionInfo() *persistence.WorkflowExecutionI return e.executionInfo } -func (e *mutableStateBuilder) GetReplicationState() *persistence.ReplicationState { +func (e *mutableStateBuilder) GetReplicationState() *persistenceblobs.ReplicationState { return e.replicationState } @@ -611,7 +611,7 @@ func (e *mutableStateBuilder) UpdateReplicationStateLastEventID( lastEventID int64, ) { e.replicationState.LastWriteVersion = lastWriteVersion - e.replicationState.LastWriteEventID = lastEventID + e.replicationState.LastWriteEventId = lastEventID lastEventSourceCluster := e.clusterMetadata.ClusterNameForFailoverVersion(lastWriteVersion) currentCluster := e.clusterMetadata.GetCurrentClusterName() diff --git a/service/history/mutableStateBuilder_test.go b/service/history/mutableStateBuilder_test.go index a55ca3c5449..f366998b01f 100644 --- a/service/history/mutableStateBuilder_test.go +++ b/service/history/mutableStateBuilder_test.go @@ -332,11 +332,11 @@ func (s *mutableStateSuite) TestReorderEvents() { }, } - replicationState := &persistence.ReplicationState{ + replicationState := &persistenceblobs.ReplicationState{ StartVersion: int64(1), CurrentVersion: int64(1), LastWriteVersion: common.EmptyVersion, - LastWriteEventID: common.EmptyEventID, + LastWriteEventId: common.EmptyEventID, LastReplicationInfo: make(map[string]*replicationspb.ReplicationInfo), } @@ -820,11 +820,11 @@ func (s *mutableStateSuite) buildWorkflowMutableState() *persistence.WorkflowMut }, } - replicationState := &persistence.ReplicationState{ + replicationState := &persistenceblobs.ReplicationState{ StartVersion: failoverVersion, CurrentVersion: failoverVersion, LastWriteVersion: common.EmptyVersion, - LastWriteEventID: common.EmptyEventID, + LastWriteEventId: common.EmptyEventID, LastReplicationInfo: make(map[string]*replicationspb.ReplicationInfo), } diff --git a/service/history/mutableState_mock.go b/service/history/mutableState_mock.go index 3c7cfa47fa7..d5f14cf94e2 100644 --- a/service/history/mutableState_mock.go +++ b/service/history/mutableState_mock.go @@ -1262,10 +1262,10 @@ func (mr *MockmutableStateMockRecorder) GetPendingSignalExternalInfos() *gomock. } // GetReplicationState mocks base method. -func (m *MockmutableState) GetReplicationState() *persistence.ReplicationState { +func (m *MockmutableState) GetReplicationState() *persistenceblobs.ReplicationState { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetReplicationState") - ret0, _ := ret[0].(*persistence.ReplicationState) + ret0, _ := ret[0].(*persistenceblobs.ReplicationState) return ret0 } diff --git a/service/history/nDCActivityReplicator_test.go b/service/history/nDCActivityReplicator_test.go index 43bb76ecc73..a3ca4ab026a 100644 --- a/service/history/nDCActivityReplicator_test.go +++ b/service/history/nDCActivityReplicator_test.go @@ -216,7 +216,7 @@ func (s *activityReplicatorSuite) TestSyncActivity_WorkflowClosed() { s.mockMutableState.EXPECT().IsWorkflowExecutionRunning().Return(false).AnyTimes() var versionHistories *persistence.VersionHistories s.mockMutableState.EXPECT().GetVersionHistories().Return(versionHistories).AnyTimes() - s.mockMutableState.EXPECT().GetReplicationState().Return(&persistence.ReplicationState{}).AnyTimes() + s.mockMutableState.EXPECT().GetReplicationState().Return(&persistenceblobs.ReplicationState{}).AnyTimes() s.mockNamespaceCache.EXPECT().GetNamespaceByID(namespaceID).Return( cache.NewGlobalNamespaceCacheEntryForTest( &persistenceblobs.NamespaceInfo{Id: namespaceID, Name: namespace}, @@ -268,7 +268,7 @@ func (s *activityReplicatorSuite) TestSyncActivity_IncomingScheduleIDLarger_Inco s.mockMutableState.EXPECT().GetLastWriteVersion().Return(lastWriteVersion, nil) var versionHistories *persistence.VersionHistories s.mockMutableState.EXPECT().GetVersionHistories().Return(versionHistories).AnyTimes() - s.mockMutableState.EXPECT().GetReplicationState().Return(&persistence.ReplicationState{}).AnyTimes() + s.mockMutableState.EXPECT().GetReplicationState().Return(&persistenceblobs.ReplicationState{}).AnyTimes() s.mockNamespaceCache.EXPECT().GetNamespaceByID(namespaceID).Return( cache.NewGlobalNamespaceCacheEntryForTest( &persistenceblobs.NamespaceInfo{Id: namespaceID, Name: namespace}, @@ -320,7 +320,7 @@ func (s *activityReplicatorSuite) TestSyncActivity_IncomingScheduleIDLarger_Inco s.mockMutableState.EXPECT().GetLastWriteVersion().Return(lastWriteVersion, nil).AnyTimes() var versionHistories *persistence.VersionHistories s.mockMutableState.EXPECT().GetVersionHistories().Return(versionHistories).AnyTimes() - s.mockMutableState.EXPECT().GetReplicationState().Return(&persistence.ReplicationState{}).AnyTimes() + s.mockMutableState.EXPECT().GetReplicationState().Return(&persistenceblobs.ReplicationState{}).AnyTimes() s.mockNamespaceCache.EXPECT().GetNamespaceByID(namespaceID).Return( cache.NewGlobalNamespaceCacheEntryForTest( &persistenceblobs.NamespaceInfo{Id: namespaceID, Name: namespace}, @@ -776,7 +776,7 @@ func (s *activityReplicatorSuite) TestSyncActivity_ActivityCompleted() { s.mockMutableState.EXPECT().GetNextEventID().Return(nextEventID).AnyTimes() var versionHistories *persistence.VersionHistories s.mockMutableState.EXPECT().GetVersionHistories().Return(versionHistories).AnyTimes() - s.mockMutableState.EXPECT().GetReplicationState().Return(&persistence.ReplicationState{}).AnyTimes() + s.mockMutableState.EXPECT().GetReplicationState().Return(&persistenceblobs.ReplicationState{}).AnyTimes() s.mockNamespaceCache.EXPECT().GetNamespaceByID(namespaceID).Return( cache.NewGlobalNamespaceCacheEntryForTest( &persistenceblobs.NamespaceInfo{Id: namespaceID, Name: namespace}, @@ -828,7 +828,7 @@ func (s *activityReplicatorSuite) TestSyncActivity_ActivityRunning_LocalActivity s.mockMutableState.EXPECT().GetNextEventID().Return(nextEventID).AnyTimes() var versionHistories *persistence.VersionHistories s.mockMutableState.EXPECT().GetVersionHistories().Return(versionHistories).AnyTimes() - s.mockMutableState.EXPECT().GetReplicationState().Return(&persistence.ReplicationState{}).AnyTimes() + s.mockMutableState.EXPECT().GetReplicationState().Return(&persistenceblobs.ReplicationState{}).AnyTimes() s.mockNamespaceCache.EXPECT().GetNamespaceByID(namespaceID).Return( cache.NewGlobalNamespaceCacheEntryForTest( &persistenceblobs.NamespaceInfo{Id: namespaceID, Name: namespace}, @@ -893,7 +893,7 @@ func (s *activityReplicatorSuite) TestSyncActivity_ActivityRunning_Update_SameVe s.mockMutableState.EXPECT().GetNextEventID().Return(nextEventID).AnyTimes() var versionHistories *persistence.VersionHistories s.mockMutableState.EXPECT().GetVersionHistories().Return(versionHistories).AnyTimes() - s.mockMutableState.EXPECT().GetReplicationState().Return(&persistence.ReplicationState{}).AnyTimes() + s.mockMutableState.EXPECT().GetReplicationState().Return(&persistenceblobs.ReplicationState{}).AnyTimes() s.mockNamespaceCache.EXPECT().GetNamespaceByID(namespaceID).Return( cache.NewGlobalNamespaceCacheEntryForTest( &persistenceblobs.NamespaceInfo{Id: namespaceID, Name: namespace}, @@ -965,7 +965,7 @@ func (s *activityReplicatorSuite) TestSyncActivity_ActivityRunning_Update_SameVe s.mockMutableState.EXPECT().GetNextEventID().Return(nextEventID).AnyTimes() var versionHistories *persistence.VersionHistories s.mockMutableState.EXPECT().GetVersionHistories().Return(versionHistories).AnyTimes() - s.mockMutableState.EXPECT().GetReplicationState().Return(&persistence.ReplicationState{}).AnyTimes() + s.mockMutableState.EXPECT().GetReplicationState().Return(&persistenceblobs.ReplicationState{}).AnyTimes() s.mockNamespaceCache.EXPECT().GetNamespaceByID(namespaceID).Return( cache.NewGlobalNamespaceCacheEntryForTest( &persistenceblobs.NamespaceInfo{Id: namespaceID, Name: namespace}, @@ -1037,7 +1037,7 @@ func (s *activityReplicatorSuite) TestSyncActivity_ActivityRunning_Update_Larger s.mockMutableState.EXPECT().GetNextEventID().Return(nextEventID).AnyTimes() var versionHistories *persistence.VersionHistories s.mockMutableState.EXPECT().GetVersionHistories().Return(versionHistories).AnyTimes() - s.mockMutableState.EXPECT().GetReplicationState().Return(&persistence.ReplicationState{}).AnyTimes() + s.mockMutableState.EXPECT().GetReplicationState().Return(&persistenceblobs.ReplicationState{}).AnyTimes() s.mockNamespaceCache.EXPECT().GetNamespaceByID(namespaceID).Return( cache.NewGlobalNamespaceCacheEntryForTest( &persistenceblobs.NamespaceInfo{Id: namespaceID, Name: namespace}, @@ -1108,7 +1108,7 @@ func (s *activityReplicatorSuite) TestSyncActivity_ActivityRunning() { s.mockMutableState.EXPECT().GetNextEventID().Return(nextEventID).AnyTimes() var versionHistories *persistence.VersionHistories s.mockMutableState.EXPECT().GetVersionHistories().Return(versionHistories).AnyTimes() - s.mockMutableState.EXPECT().GetReplicationState().Return(&persistence.ReplicationState{}).AnyTimes() + s.mockMutableState.EXPECT().GetReplicationState().Return(&persistenceblobs.ReplicationState{}).AnyTimes() s.mockMutableState.EXPECT().GetWorkflowStateStatus().Return(enumsspb.WORKFLOW_EXECUTION_STATE_RUNNING, enumspb.WORKFLOW_EXECUTION_STATUS_COMPLETED).AnyTimes() s.mockNamespaceCache.EXPECT().GetNamespaceByID(namespaceID).Return( cache.NewGlobalNamespaceCacheEntryForTest( @@ -1193,7 +1193,7 @@ func (s *activityReplicatorSuite) TestSyncActivity_ActivityRunning_ZombieWorkflo s.mockMutableState.EXPECT().GetNextEventID().Return(nextEventID).AnyTimes() var versionHistories *persistence.VersionHistories s.mockMutableState.EXPECT().GetVersionHistories().Return(versionHistories).AnyTimes() - s.mockMutableState.EXPECT().GetReplicationState().Return(&persistence.ReplicationState{}).AnyTimes() + s.mockMutableState.EXPECT().GetReplicationState().Return(&persistenceblobs.ReplicationState{}).AnyTimes() s.mockMutableState.EXPECT().GetWorkflowStateStatus().Return(enumsspb.WORKFLOW_EXECUTION_STATE_ZOMBIE, enumspb.WORKFLOW_EXECUTION_STATUS_UNSPECIFIED).AnyTimes() s.mockNamespaceCache.EXPECT().GetNamespaceByID(namespaceID).Return( cache.NewGlobalNamespaceCacheEntryForTest( diff --git a/service/history/stateBuilder_test.go b/service/history/stateBuilder_test.go index 0aa6823b4fd..ee38a0e7094 100644 --- a/service/history/stateBuilder_test.go +++ b/service/history/stateBuilder_test.go @@ -112,7 +112,7 @@ func (s *stateBuilderSuite) SetupTest() { s.logger = s.mockShard.GetLogger() - s.mockMutableState.EXPECT().GetReplicationState().Return(&persistence.ReplicationState{}).AnyTimes() + s.mockMutableState.EXPECT().GetReplicationState().Return(&persistenceblobs.ReplicationState{}).AnyTimes() s.stateBuilder = newStateBuilder( s.mockShard, s.logger, diff --git a/service/history/timerQueueStandbyTaskExecutor_test.go b/service/history/timerQueueStandbyTaskExecutor_test.go index 3fb34cb0d23..aec0339cd21 100644 --- a/service/history/timerQueueStandbyTaskExecutor_test.go +++ b/service/history/timerQueueStandbyTaskExecutor_test.go @@ -700,7 +700,7 @@ func (s *timerQueueStandbyTaskExecutorSuite) TestProcessActivityTimeout_Multiple s.Equal(&persistence.UpdateWorkflowExecutionRequest{ UpdateWorkflowMutation: persistence.WorkflowMutation{ ExecutionInfo: mutableState.executionInfo, - ExecutionStats: &persistence.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, ReplicationState: mutableState.replicationState, TransferTasks: nil, ReplicationTasks: nil, diff --git a/service/history/timerQueueTaskExecutorBase_test.go b/service/history/timerQueueTaskExecutorBase_test.go index 9baa6f4fa90..d8b29719cb3 100644 --- a/service/history/timerQueueTaskExecutorBase_test.go +++ b/service/history/timerQueueTaskExecutorBase_test.go @@ -150,7 +150,7 @@ func (s *timerQueueTaskExecutorBaseSuite) TestDeleteWorkflow_NoErr() { } func (s *timerQueueTaskExecutorBaseSuite) TestArchiveHistory_NoErr_InlineArchivalFailed() { - s.mockWorkflowExecutionContext.EXPECT().loadExecutionStats().Return(&persistence.ExecutionStats{ + s.mockWorkflowExecutionContext.EXPECT().loadExecutionStats().Return(&persistenceblobs.ExecutionStats{ HistorySize: 1024, }, nil).Times(1) s.mockWorkflowExecutionContext.EXPECT().clear().Times(1) @@ -176,7 +176,7 @@ func (s *timerQueueTaskExecutorBaseSuite) TestArchiveHistory_NoErr_InlineArchiva } func (s *timerQueueTaskExecutorBaseSuite) TestArchiveHistory_SendSignalErr() { - s.mockWorkflowExecutionContext.EXPECT().loadExecutionStats().Return(&persistence.ExecutionStats{ + s.mockWorkflowExecutionContext.EXPECT().loadExecutionStats().Return(&persistenceblobs.ExecutionStats{ HistorySize: 1024 * 1024 * 1024, }, nil).Times(1) diff --git a/service/history/workflowExecutionContext.go b/service/history/workflowExecutionContext.go index 6bed485df07..45aaedacb1d 100644 --- a/service/history/workflowExecutionContext.go +++ b/service/history/workflowExecutionContext.go @@ -62,7 +62,7 @@ type ( loadWorkflowExecution() (mutableState, error) loadWorkflowExecutionForReplication(incomingVersion int64) (mutableState, error) - loadExecutionStats() (*persistence.ExecutionStats, error) + loadExecutionStats() (*persistenceblobs.ExecutionStats, error) clear() lock(ctx context.Context) error @@ -156,7 +156,7 @@ type ( mutex locks.Mutex mutableState mutableState - stats *persistence.ExecutionStats + stats *persistenceblobs.ExecutionStats updateCondition int64 } ) @@ -184,7 +184,7 @@ func newWorkflowExecutionContext( metricsClient: shard.GetMetricsClient(), timeSource: shard.GetTimeSource(), mutex: locks.NewMutex(), - stats: &persistence.ExecutionStats{ + stats: &persistenceblobs.ExecutionStats{ HistorySize: 0, }, } @@ -201,7 +201,7 @@ func (c *workflowExecutionContextImpl) unlock() { func (c *workflowExecutionContextImpl) clear() { c.metricsClient.IncCounter(metrics.WorkflowContextScope, metrics.WorkflowContextCleared) c.mutableState = nil - c.stats = &persistence.ExecutionStats{ + c.stats = &persistenceblobs.ExecutionStats{ HistorySize: 0, } } @@ -230,7 +230,7 @@ func (c *workflowExecutionContextImpl) setHistorySize(size int64) { c.stats.HistorySize = size } -func (c *workflowExecutionContextImpl) loadExecutionStats() (*persistence.ExecutionStats, error) { +func (c *workflowExecutionContextImpl) loadExecutionStats() (*persistenceblobs.ExecutionStats, error) { _, err := c.loadWorkflowExecution() if err != nil { return nil, err @@ -401,7 +401,7 @@ func (c *workflowExecutionContextImpl) createWorkflowExecution( historySize += c.getHistorySize() c.setHistorySize(historySize) - createRequest.NewWorkflowSnapshot.ExecutionStats = &persistence.ExecutionStats{ + createRequest.NewWorkflowSnapshot.ExecutionStats = &persistenceblobs.ExecutionStats{ HistorySize: historySize, } @@ -452,7 +452,7 @@ func (c *workflowExecutionContextImpl) conflictResolveWorkflowExecution( resetHistorySize += eventsSize } c.setHistorySize(resetHistorySize) - resetWorkflow.ExecutionStats = &persistence.ExecutionStats{ + resetWorkflow.ExecutionStats = &persistenceblobs.ExecutionStats{ HistorySize: resetHistorySize, } @@ -481,7 +481,7 @@ func (c *workflowExecutionContextImpl) conflictResolveWorkflowExecution( } newWorkflowSizeSize += eventsSize newContext.setHistorySize(newWorkflowSizeSize) - newWorkflow.ExecutionStats = &persistence.ExecutionStats{ + newWorkflow.ExecutionStats = &persistenceblobs.ExecutionStats{ HistorySize: newWorkflowSizeSize, } } @@ -512,7 +512,7 @@ func (c *workflowExecutionContextImpl) conflictResolveWorkflowExecution( currentWorkflowSize += eventsSize } currentContext.setHistorySize(currentWorkflowSize) - currentWorkflow.ExecutionStats = &persistence.ExecutionStats{ + currentWorkflow.ExecutionStats = &persistenceblobs.ExecutionStats{ HistorySize: currentWorkflowSize, } } @@ -676,7 +676,7 @@ func (c *workflowExecutionContextImpl) updateWorkflowExecutionWithNew( currentWorkflowSize += eventsSize } c.setHistorySize(currentWorkflowSize) - currentWorkflow.ExecutionStats = &persistence.ExecutionStats{ + currentWorkflow.ExecutionStats = &persistenceblobs.ExecutionStats{ HistorySize: currentWorkflowSize, } @@ -705,7 +705,7 @@ func (c *workflowExecutionContextImpl) updateWorkflowExecutionWithNew( } newWorkflowSizeSize += eventsSize newContext.setHistorySize(newWorkflowSizeSize) - newWorkflow.ExecutionStats = &persistence.ExecutionStats{ + newWorkflow.ExecutionStats = &persistenceblobs.ExecutionStats{ HistorySize: newWorkflowSizeSize, } } @@ -1133,7 +1133,7 @@ func (c *workflowExecutionContextImpl) resetWorkflowExecution( } newHistorySize += eventsSize } - resetWorkflow.ExecutionStats = &persistence.ExecutionStats{ + resetWorkflow.ExecutionStats = &persistenceblobs.ExecutionStats{ HistorySize: newHistorySize, } resetWorkflow.TransferTasks = newTransferTasks @@ -1161,7 +1161,7 @@ func (c *workflowExecutionContextImpl) resetWorkflowExecution( if updateCurr { resetWFReq.CurrentWorkflowMutation = &persistence.WorkflowMutation{ ExecutionInfo: currMutableState.GetExecutionInfo(), - ExecutionStats: &persistence.ExecutionStats{ + ExecutionStats: &persistenceblobs.ExecutionStats{ HistorySize: c.stats.HistorySize, }, ReplicationState: currMutableState.GetReplicationState(), diff --git a/service/history/workflowExecutionContext_mock.go b/service/history/workflowExecutionContext_mock.go index 391ce785429..f58cf95f66c 100644 --- a/service/history/workflowExecutionContext_mock.go +++ b/service/history/workflowExecutionContext_mock.go @@ -35,6 +35,8 @@ import ( gomock "github.com/golang/mock/gomock" common "go.temporal.io/api/common/v1" + + persistenceblobs "go.temporal.io/server/api/persistenceblobs/v1" persistence "go.temporal.io/server/common/persistence" ) @@ -134,10 +136,10 @@ func (mr *MockworkflowExecutionContextMockRecorder) loadWorkflowExecutionForRepl } // loadExecutionStats mocks base method. -func (m *MockworkflowExecutionContext) loadExecutionStats() (*persistence.ExecutionStats, error) { +func (m *MockworkflowExecutionContext) loadExecutionStats() (*persistenceblobs.ExecutionStats, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "loadExecutionStats") - ret0, _ := ret[0].(*persistence.ExecutionStats) + ret0, _ := ret[0].(*persistenceblobs.ExecutionStats) ret1, _ := ret[1].(error) return ret0, ret1 } diff --git a/service/history/workflowResetor_test.go b/service/history/workflowResetor_test.go index 585da067d0a..c3ca3a051e6 100644 --- a/service/history/workflowResetor_test.go +++ b/service/history/workflowResetor_test.go @@ -229,7 +229,7 @@ func (s *resetorSuite) TestResetWorkflowExecution_NoReplication() { } forkGwmsResponse := &persistence.GetWorkflowExecutionResponse{State: &persistence.WorkflowMutableState{ ExecutionInfo: forkExeInfo, - ExecutionStats: &persistence.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, }} currGwmsRequest := &persistence.GetWorkflowExecutionRequest{ @@ -254,7 +254,7 @@ func (s *resetorSuite) TestResetWorkflowExecution_NoReplication() { compareCurrExeInfo := copyWorkflowExecutionInfo(currExeInfo) currGwmsResponse := &persistence.GetWorkflowExecutionResponse{State: &persistence.WorkflowMutableState{ ExecutionInfo: currExeInfo, - ExecutionStats: &persistence.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, }} gcurResponse := &persistence.GetCurrentExecutionResponse{ @@ -914,7 +914,7 @@ func (s *resetorSuite) TestResetWorkflowExecution_NoReplication_WithRequestCance } forkGwmsResponse := &persistence.GetWorkflowExecutionResponse{State: &persistence.WorkflowMutableState{ ExecutionInfo: forkExeInfo, - ExecutionStats: &persistence.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, }} currGwmsRequest := &persistence.GetWorkflowExecutionRequest{ @@ -938,7 +938,7 @@ func (s *resetorSuite) TestResetWorkflowExecution_NoReplication_WithRequestCance } currGwmsResponse := &persistence.GetWorkflowExecutionResponse{State: &persistence.WorkflowMutableState{ ExecutionInfo: currExeInfo, - ExecutionStats: &persistence.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, }} gcurResponse := &persistence.GetCurrentExecutionResponse{ @@ -1500,16 +1500,16 @@ func (s *resetorSuite) TestResetWorkflowExecution_Replication_WithTerminatingCur State: enumsspb.WORKFLOW_EXECUTION_STATE_CREATED, } - forkRepState := &persistence.ReplicationState{ + forkRepState := &persistenceblobs.ReplicationState{ CurrentVersion: beforeResetVersion, StartVersion: beforeResetVersion, - LastWriteEventID: common.EmptyEventID, + LastWriteEventId: common.EmptyEventID, LastWriteVersion: common.EmptyVersion, LastReplicationInfo: map[string]*replicationspb.ReplicationInfo{}, } forkGwmsResponse := &persistence.GetWorkflowExecutionResponse{State: &persistence.WorkflowMutableState{ ExecutionInfo: forkExeInfo, - ExecutionStats: &persistence.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, ReplicationState: forkRepState, }} @@ -1535,7 +1535,7 @@ func (s *resetorSuite) TestResetWorkflowExecution_Replication_WithTerminatingCur compareCurrExeInfo := copyWorkflowExecutionInfo(currExeInfo) currGwmsResponse := &persistence.GetWorkflowExecutionResponse{State: &persistence.WorkflowMutableState{ ExecutionInfo: currExeInfo, - ExecutionStats: &persistence.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, ReplicationState: forkRepState, }} @@ -2107,7 +2107,7 @@ func (s *resetorSuite) TestResetWorkflowExecution_Replication_WithTerminatingCur compareRepState := copyReplicationState(forkRepState) compareRepState.StartVersion = beforeResetVersion compareRepState.CurrentVersion = afterResetVersion - compareRepState.LastWriteEventID = 34 + compareRepState.LastWriteEventId = 34 compareRepState.LastWriteVersion = afterResetVersion compareRepState.LastReplicationInfo = map[string]*replicationspb.ReplicationInfo{ "standby": { @@ -2206,16 +2206,16 @@ func (s *resetorSuite) TestResetWorkflowExecution_Replication_NotActive() { State: enumsspb.WORKFLOW_EXECUTION_STATE_CREATED, } - forkRepState := &persistence.ReplicationState{ + forkRepState := &persistenceblobs.ReplicationState{ CurrentVersion: beforeResetVersion, StartVersion: beforeResetVersion, - LastWriteEventID: common.EmptyEventID, + LastWriteEventId: common.EmptyEventID, LastWriteVersion: common.EmptyVersion, LastReplicationInfo: map[string]*replicationspb.ReplicationInfo{}, } forkGwmsResponse := &persistence.GetWorkflowExecutionResponse{State: &persistence.WorkflowMutableState{ ExecutionInfo: forkExeInfo, - ExecutionStats: &persistence.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, ReplicationState: forkRepState, }} @@ -2240,7 +2240,7 @@ func (s *resetorSuite) TestResetWorkflowExecution_Replication_NotActive() { } currGwmsResponse := &persistence.GetWorkflowExecutionResponse{State: &persistence.WorkflowMutableState{ ExecutionInfo: currExeInfo, - ExecutionStats: &persistence.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, ReplicationState: forkRepState, }} @@ -2806,16 +2806,16 @@ func (s *resetorSuite) TestResetWorkflowExecution_Replication_NoTerminatingCurre State: enumsspb.WORKFLOW_EXECUTION_STATE_CREATED, } - forkRepState := &persistence.ReplicationState{ + forkRepState := &persistenceblobs.ReplicationState{ CurrentVersion: beforeResetVersion, StartVersion: beforeResetVersion, - LastWriteEventID: common.EmptyEventID, + LastWriteEventId: common.EmptyEventID, LastWriteVersion: common.EmptyVersion, LastReplicationInfo: map[string]*replicationspb.ReplicationInfo{}, } forkGwmsResponse := &persistence.GetWorkflowExecutionResponse{State: &persistence.WorkflowMutableState{ ExecutionInfo: forkExeInfo, - ExecutionStats: &persistence.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, ReplicationState: forkRepState, }} @@ -2841,7 +2841,7 @@ func (s *resetorSuite) TestResetWorkflowExecution_Replication_NoTerminatingCurre compareCurrExeInfo := copyWorkflowExecutionInfo(currExeInfo) currGwmsResponse := &persistence.GetWorkflowExecutionResponse{State: &persistence.WorkflowMutableState{ ExecutionInfo: currExeInfo, - ExecutionStats: &persistence.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, ReplicationState: forkRepState, }} @@ -3399,7 +3399,7 @@ func (s *resetorSuite) TestResetWorkflowExecution_Replication_NoTerminatingCurre compareRepState := copyReplicationState(forkRepState) compareRepState.StartVersion = beforeResetVersion compareRepState.CurrentVersion = afterResetVersion - compareRepState.LastWriteEventID = 34 + compareRepState.LastWriteEventId = 34 compareRepState.LastWriteVersion = afterResetVersion compareRepState.LastReplicationInfo = map[string]*replicationspb.ReplicationInfo{ "standby": { @@ -3487,16 +3487,16 @@ func (s *resetorSuite) TestApplyReset() { State: enumsspb.WORKFLOW_EXECUTION_STATE_CREATED, } - forkRepState := &persistence.ReplicationState{ + forkRepState := &persistenceblobs.ReplicationState{ CurrentVersion: beforeResetVersion, StartVersion: beforeResetVersion, - LastWriteEventID: common.EmptyEventID, + LastWriteEventId: common.EmptyEventID, LastWriteVersion: common.EmptyVersion, LastReplicationInfo: map[string]*replicationspb.ReplicationInfo{}, } forkGwmsResponse := &persistence.GetWorkflowExecutionResponse{State: &persistence.WorkflowMutableState{ ExecutionInfo: forkExeInfo, - ExecutionStats: &persistence.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, ReplicationState: forkRepState, }} @@ -3522,7 +3522,7 @@ func (s *resetorSuite) TestApplyReset() { compareCurrExeInfo := copyWorkflowExecutionInfo(currExeInfo) currGwmsResponse := &persistence.GetWorkflowExecutionResponse{State: &persistence.WorkflowMutableState{ ExecutionInfo: currExeInfo, - ExecutionStats: &persistence.ExecutionStats{}, + ExecutionStats: &persistenceblobs.ExecutionStats{}, ReplicationState: forkRepState, }} @@ -4085,7 +4085,7 @@ func (s *resetorSuite) TestApplyReset() { compareRepState := copyReplicationState(forkRepState) compareRepState.StartVersion = beforeResetVersion compareRepState.CurrentVersion = afterResetVersion - compareRepState.LastWriteEventID = 34 + compareRepState.LastWriteEventId = 34 compareRepState.LastWriteVersion = afterResetVersion compareRepState.LastReplicationInfo = map[string]*replicationspb.ReplicationInfo{ "standby": {