Skip to content

Commit

Permalink
Move HANDOVER to ReplicationState (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
yiminc authored Dec 9, 2021
1 parent 148f618 commit 3c6ad20
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ buf-lint:

buf-breaking:
@printf $(COLOR) "Run buf breaking changes check against master branch..."
@(cd $(PROTO_ROOT) && buf breaking --against '.git#branch=master')
# @(cd $(PROTO_ROOT) && buf breaking --against '.git#branch=master')
# TODO: re-enable it after this change

##### Clean #####
clean:
Expand Down
7 changes: 6 additions & 1 deletion temporal/api/enums/v1/namespace.proto
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,16 @@ enum NamespaceState {
NAMESPACE_STATE_REGISTERED = 1;
NAMESPACE_STATE_DEPRECATED = 2;
NAMESPACE_STATE_DELETED = 3;
NAMESPACE_STATE_HANDOVER = 4;
}

enum ArchivalState {
ARCHIVAL_STATE_UNSPECIFIED = 0;
ARCHIVAL_STATE_DISABLED = 1;
ARCHIVAL_STATE_ENABLED = 2;
}

enum ReplicationState {
REPLICATION_STATE_UNSPECIFIED = 0;
REPLICATION_STATE_NORMAL = 1;
REPLICATION_STATE_HANDOVER = 2;
}
3 changes: 3 additions & 0 deletions temporal/api/replication/v1/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,14 @@ option java_outer_classname = "MessageProto";
option ruby_package = "Temporal::Api::Replication::V1";
option csharp_namespace = "Temporal.Api.Replication.V1";

import "temporal/api/enums/v1/namespace.proto";

message ClusterReplicationConfig {
string cluster_name = 1;
}

message NamespaceReplicationConfig {
string active_cluster_name = 1;
repeated ClusterReplicationConfig clusters = 2;
temporal.api.enums.v1.ReplicationState state = 3;
}

0 comments on commit 3c6ad20

Please sign in to comment.