diff --git a/.gen/go/replicator/replicator.go b/.gen/go/replicator/replicator.go index 50949afec58..2cf433656d4 100644 --- a/.gen/go/replicator/replicator.go +++ b/.gen/go/replicator/replicator.go @@ -7307,11 +7307,11 @@ var ThriftModule = &thriftreflect.ThriftModule{ Name: "replicator", Package: "github.com/uber/cadence/.gen/go/replicator", FilePath: "replicator.thrift", - SHA1: "a1386fd6cad734b4337aa7f6c76ac26af92cc9dd", + SHA1: "9c6bbb8179645840bd7593da553c2489c372b3bb", Includes: []*thriftreflect.ThriftModule{ shared.ThriftModule, }, Raw: rawIDL, } -const rawIDL = "// Copyright (c) 2017 Uber Technologies, Inc.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\nnamespace java com.uber.cadence.replicator\n\ninclude \"shared.thrift\"\n\nenum ReplicationTaskType {\n Domain\n History\n SyncShardStatus\n SyncActivity\n HistoryMetadata\n HistoryV2\n FailoverMarker\n}\n\nenum DomainOperation {\n Create\n Update\n}\n\nstruct DomainTaskAttributes {\n 05: optional DomainOperation domainOperation\n 10: optional string id\n 20: optional shared.DomainInfo info\n 30: optional shared.DomainConfiguration config\n 40: optional shared.DomainReplicationConfiguration replicationConfig\n 50: optional i64 (js.type = \"Long\") configVersion\n 60: optional i64 (js.type = \"Long\") failoverVersion\n 70: optional i64 (js.type = \"Long\") previousFailoverVersion\n}\n\nstruct SyncShardStatusTaskAttributes {\n 10: optional string sourceCluster\n 20: optional i64 (js.type = \"Long\") shardId\n 30: optional i64 (js.type = \"Long\") timestamp\n}\n\nstruct SyncActivityTaskAttributes {\n 10: optional string domainId\n 20: optional string workflowId\n 30: optional string runId\n 40: optional i64 (js.type = \"Long\") version\n 50: optional i64 (js.type = \"Long\") scheduledId\n 60: optional i64 (js.type = \"Long\") scheduledTime\n 70: optional i64 (js.type = \"Long\") startedId\n 80: optional i64 (js.type = \"Long\") startedTime\n 90: optional i64 (js.type = \"Long\") lastHeartbeatTime\n 100: optional binary details\n 110: optional i32 attempt\n 120: optional string lastFailureReason\n 130: optional string lastWorkerIdentity\n 140: optional binary lastFailureDetails\n 150: optional shared.VersionHistory versionHistory\n}\n\nstruct HistoryTaskV2Attributes {\n 05: optional i64 (js.type = \"Long\") taskId\n 10: optional string domainId\n 20: optional string workflowId\n 30: optional string runId\n 40: optional list versionHistoryItems\n 50: optional shared.DataBlob events\n // new run events does not need version history since there is no prior events\n 70: optional shared.DataBlob newRunEvents\n}\n\nstruct FailoverMarkerAttributes{\n\t10: optional string domainID\n\t20: optional i64 (js.type = \"Long\") failoverVersion\n\t30: optional i64 (js.type = \"Long\") creationTime\n}\n\nstruct FailoverMarkers{\n\t10: optional list failoverMarkers\n}\n\nstruct ReplicationTask {\n 10: optional ReplicationTaskType taskType\n 11: optional i64 (js.type = \"Long\") sourceTaskId\n 20: optional DomainTaskAttributes domainTaskAttributes\n 40: optional SyncShardStatusTaskAttributes syncShardStatusTaskAttributes\n 50: optional SyncActivityTaskAttributes syncActivityTaskAttributes\n 70: optional HistoryTaskV2Attributes historyTaskV2Attributes\n 80: optional FailoverMarkerAttributes failoverMarkerAttributes\n 90: optional i64 (js.type = \"Long\") creationTime\n}\n\nstruct ReplicationToken {\n 10: optional i32 shardID\n // lastRetrivedMessageId is where the next fetch should begin with\n 20: optional i64 (js.type = \"Long\") lastRetrievedMessageId\n // lastProcessedMessageId is the last messageId that is processed on the passive side.\n // This can be different than lastRetrievedMessageId if passive side supports prefetching messages.\n 30: optional i64 (js.type = \"Long\") lastProcessedMessageId\n}\n\nstruct SyncShardStatus {\n 10: optional i64 (js.type = \"Long\") timestamp\n}\n\nstruct ReplicationMessages {\n 10: optional list replicationTasks\n // This can be different than the last taskId in the above list, because sender can decide to skip tasks (e.g. for completed workflows).\n 20: optional i64 (js.type = \"Long\") lastRetrievedMessageId\n 30: optional bool hasMore // Hint for flow control\n 40: optional SyncShardStatus syncShardStatus\n}\n\nstruct ReplicationTaskInfo {\n 10: optional string domainID\n 20: optional string workflowID\n 30: optional string runID\n 40: optional i16 taskType\n 50: optional i64 (js.type = \"Long\") taskID\n 60: optional i64 (js.type = \"Long\") version\n 70: optional i64 (js.type = \"Long\") firstEventID\n 80: optional i64 (js.type = \"Long\") nextEventID\n 90: optional i64 (js.type = \"Long\") scheduledID\n}\n\nstruct GetReplicationMessagesRequest {\n 10: optional list tokens\n 20: optional string clusterName\n}\n\nstruct GetReplicationMessagesResponse {\n 10: optional map messagesByShard\n}\n\nstruct GetDomainReplicationMessagesRequest {\n // lastRetrievedMessageId is where the next fetch should begin with\n 10: optional i64 (js.type = \"Long\") lastRetrievedMessageId\n // lastProcessedMessageId is the last messageId that is processed on the passive side.\n // This can be different than lastRetrievedMessageId if passive side supports prefetching messages.\n 20: optional i64 (js.type = \"Long\") lastProcessedMessageId\n // clusterName is the name of the pulling cluster\n 30: optional string clusterName\n}\n\nstruct GetDomainReplicationMessagesResponse {\n 10: optional ReplicationMessages messages\n}\n\nstruct GetDLQReplicationMessagesRequest {\n 10: optional list taskInfos\n}\n\nstruct GetDLQReplicationMessagesResponse {\n 10: optional list replicationTasks\n}\n\nenum DLQType {\n Replication,\n Domain,\n}\n\nstruct ReadDLQMessagesRequest{\n 10: optional DLQType type\n 20: optional i32 shardID\n 30: optional string sourceCluster\n 40: optional i64 (js.type = \"Long\") inclusiveEndMessageID\n 50: optional i32 maximumPageSize\n 60: optional binary nextPageToken\n}\n\nstruct ReadDLQMessagesResponse{\n 10: optional DLQType type\n 20: optional list replicationTasks\n 30: optional binary nextPageToken\n}\n\nstruct PurgeDLQMessagesRequest{\n 10: optional DLQType type\n 20: optional i32 shardID\n 30: optional string sourceCluster\n 40: optional i64 (js.type = \"Long\") inclusiveEndMessageID\n}\n\nstruct MergeDLQMessagesRequest{\n 10: optional DLQType type\n 20: optional i32 shardID\n 30: optional string sourceCluster\n 40: optional i64 (js.type = \"Long\") inclusiveEndMessageID\n 50: optional i32 maximumPageSize\n 60: optional binary nextPageToken\n}\n\nstruct MergeDLQMessagesResponse{\n 10: optional binary nextPageToken\n}\n" +const rawIDL = "// Copyright (c) 2017 Uber Technologies, Inc.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\nnamespace java com.uber.cadence.replicator\n\ninclude \"shared.thrift\"\n\nenum ReplicationTaskType {\n Domain\n History\n SyncShardStatus\n SyncActivity\n HistoryMetadata\n HistoryV2\n FailoverMarker\n}\n\nenum DomainOperation {\n Create\n Update\n}\n\nstruct DomainTaskAttributes {\n 05: optional DomainOperation domainOperation\n 10: optional string id\n 20: optional shared.DomainInfo info\n 30: optional shared.DomainConfiguration config\n 40: optional shared.DomainReplicationConfiguration replicationConfig\n 50: optional i64 (js.type = \"Long\") configVersion\n 60: optional i64 (js.type = \"Long\") failoverVersion\n 70: optional i64 (js.type = \"Long\") previousFailoverVersion\n}\n\nstruct SyncShardStatusTaskAttributes {\n 10: optional string sourceCluster\n 20: optional i64 (js.type = \"Long\") shardId\n 30: optional i64 (js.type = \"Long\") timestamp\n}\n\nstruct SyncActivityTaskAttributes {\n 10: optional string domainId\n 20: optional string workflowId\n 30: optional string runId\n 40: optional i64 (js.type = \"Long\") version\n 50: optional i64 (js.type = \"Long\") scheduledId\n 60: optional i64 (js.type = \"Long\") scheduledTime\n 70: optional i64 (js.type = \"Long\") startedId\n 80: optional i64 (js.type = \"Long\") startedTime\n 90: optional i64 (js.type = \"Long\") lastHeartbeatTime\n 100: optional binary details\n 110: optional i32 attempt\n 120: optional string lastFailureReason\n 130: optional string lastWorkerIdentity\n 140: optional binary lastFailureDetails\n 150: optional shared.VersionHistory versionHistory\n}\n\nstruct HistoryTaskV2Attributes {\n 05: optional i64 (js.type = \"Long\") taskId\n 10: optional string domainId\n 20: optional string workflowId\n 30: optional string runId\n 40: optional list versionHistoryItems\n 50: optional shared.DataBlob events\n // new run events does not need version history since there is no prior events\n 70: optional shared.DataBlob newRunEvents\n}\n\nstruct FailoverMarkerAttributes{\n\t10: optional string domainID\n\t20: optional i64 (js.type = \"Long\") failoverVersion\n\t// TODO: remove this filed and use the creationTime in ReplicationTask\n\t30: optional i64 (js.type = \"Long\") creationTime\n}\n\nstruct FailoverMarkers{\n\t10: optional list failoverMarkers\n}\n\nstruct ReplicationTask {\n 10: optional ReplicationTaskType taskType\n 11: optional i64 (js.type = \"Long\") sourceTaskId\n 20: optional DomainTaskAttributes domainTaskAttributes\n 40: optional SyncShardStatusTaskAttributes syncShardStatusTaskAttributes\n 50: optional SyncActivityTaskAttributes syncActivityTaskAttributes\n 70: optional HistoryTaskV2Attributes historyTaskV2Attributes\n 80: optional FailoverMarkerAttributes failoverMarkerAttributes\n 90: optional i64 (js.type = \"Long\") creationTime\n}\n\nstruct ReplicationToken {\n 10: optional i32 shardID\n // lastRetrivedMessageId is where the next fetch should begin with\n 20: optional i64 (js.type = \"Long\") lastRetrievedMessageId\n // lastProcessedMessageId is the last messageId that is processed on the passive side.\n // This can be different than lastRetrievedMessageId if passive side supports prefetching messages.\n 30: optional i64 (js.type = \"Long\") lastProcessedMessageId\n}\n\nstruct SyncShardStatus {\n 10: optional i64 (js.type = \"Long\") timestamp\n}\n\nstruct ReplicationMessages {\n 10: optional list replicationTasks\n // This can be different than the last taskId in the above list, because sender can decide to skip tasks (e.g. for completed workflows).\n 20: optional i64 (js.type = \"Long\") lastRetrievedMessageId\n 30: optional bool hasMore // Hint for flow control\n 40: optional SyncShardStatus syncShardStatus\n}\n\nstruct ReplicationTaskInfo {\n 10: optional string domainID\n 20: optional string workflowID\n 30: optional string runID\n 40: optional i16 taskType\n 50: optional i64 (js.type = \"Long\") taskID\n 60: optional i64 (js.type = \"Long\") version\n 70: optional i64 (js.type = \"Long\") firstEventID\n 80: optional i64 (js.type = \"Long\") nextEventID\n 90: optional i64 (js.type = \"Long\") scheduledID\n}\n\nstruct GetReplicationMessagesRequest {\n 10: optional list tokens\n 20: optional string clusterName\n}\n\nstruct GetReplicationMessagesResponse {\n 10: optional map messagesByShard\n}\n\nstruct GetDomainReplicationMessagesRequest {\n // lastRetrievedMessageId is where the next fetch should begin with\n 10: optional i64 (js.type = \"Long\") lastRetrievedMessageId\n // lastProcessedMessageId is the last messageId that is processed on the passive side.\n // This can be different than lastRetrievedMessageId if passive side supports prefetching messages.\n 20: optional i64 (js.type = \"Long\") lastProcessedMessageId\n // clusterName is the name of the pulling cluster\n 30: optional string clusterName\n}\n\nstruct GetDomainReplicationMessagesResponse {\n 10: optional ReplicationMessages messages\n}\n\nstruct GetDLQReplicationMessagesRequest {\n 10: optional list taskInfos\n}\n\nstruct GetDLQReplicationMessagesResponse {\n 10: optional list replicationTasks\n}\n\nenum DLQType {\n Replication,\n Domain,\n}\n\nstruct ReadDLQMessagesRequest{\n 10: optional DLQType type\n 20: optional i32 shardID\n 30: optional string sourceCluster\n 40: optional i64 (js.type = \"Long\") inclusiveEndMessageID\n 50: optional i32 maximumPageSize\n 60: optional binary nextPageToken\n}\n\nstruct ReadDLQMessagesResponse{\n 10: optional DLQType type\n 20: optional list replicationTasks\n 30: optional binary nextPageToken\n}\n\nstruct PurgeDLQMessagesRequest{\n 10: optional DLQType type\n 20: optional i32 shardID\n 30: optional string sourceCluster\n 40: optional i64 (js.type = \"Long\") inclusiveEndMessageID\n}\n\nstruct MergeDLQMessagesRequest{\n 10: optional DLQType type\n 20: optional i32 shardID\n 30: optional string sourceCluster\n 40: optional i64 (js.type = \"Long\") inclusiveEndMessageID\n 50: optional i32 maximumPageSize\n 60: optional binary nextPageToken\n}\n\nstruct MergeDLQMessagesResponse{\n 10: optional binary nextPageToken\n}\n"