Skip to content

Conversation

@shawnhathaway
Copy link
Contributor

What changed?
Converted ReplicationState/ExecutionState POGO to Proto. Defined in Persistenceblobs with notation that these are not currently persisted, though they are exposed by the persistence contracts.

Why?
Need these defined as protos for eventual conversion of WorkflowMutableState to Proto.

How did you test it?
Current testing, Buildkite

Potential risks
None, field replacements to proto with no behavioral changes

@shawnhathaway shawnhathaway requested a review from alexshtin July 28, 2020 20:09
Comment on lines +45 to +58
// 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<string, temporal.server.api.replication.v1.ReplicationInfo> last_replication_info = 5;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think they should be moved to another proto packages (i.e. workflow and replication) but I will do it myself later.

@shawnhathaway shawnhathaway merged commit 17e3b67 into temporalio:master Jul 28, 2020
@shawnhathaway shawnhathaway deleted the ms-collapse branch July 28, 2020 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants