Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persistence support for replication state for execution #604

Merged
merged 6 commits into from
Mar 16, 2018

Conversation

samarabbas
Copy link
Contributor

Added support for workflow mutable state to create/read/update
replication state for an execution.

Support for transfer task creation for Replication Task.

Added unit test for replication state for execution

Added support for workflow mutable state to create/read/update
replication state for an execution.

Suport for transfer task creation for Replication Task.
@samarabbas samarabbas requested a review from wxing1292 March 10, 2018 00:25
@@ -164,6 +165,15 @@ type (
ClientImpl string
}

// ReplicationState represents
Copy link
Contributor

Choose a reason for hiding this comment

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

typo

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

@@ -0,0 +1,22 @@
-- Replication information for each cluster
Copy link
Contributor

Choose a reason for hiding this comment

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

plz change the version from 0.5 to 0.6

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

schedule_id bigint,
first_event_id bigint,
Copy link
Contributor

Choose a reason for hiding this comment

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

could you add some description here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

// ReplicationTask is the transfer task created for shipping history replication events to other clusters
ReplicationTask struct {
TaskID int64
DomainID string
Copy link
Contributor

Choose a reason for hiding this comment

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

is this DomainID necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right. Replication task is always going to be for the same domain. Removed.

@coveralls
Copy link

coveralls commented Mar 12, 2018

Coverage Status

Coverage increased (+0.2%) to 64.398% when pulling 5739553 on samarabbas:replicate-events into d486c6c on uber:master.

@samarabbas samarabbas merged commit edb556c into cadence-workflow:master Mar 16, 2018
@samarabbas samarabbas deleted the replicate-events branch March 16, 2018 15:32
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.

3 participants