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

Add X-Cluster Child Workflow Completion Tasks #4336

Merged
merged 5 commits into from
Aug 18, 2021

Conversation

demirkayaender
Copy link
Contributor

@demirkayaender demirkayaender commented Jul 30, 2021

What changed?
Defining and persisting cross cluster tasks for RecordChildWorkflowExeuctionComplete task.

Why?
With this diff, child workflow notify the remote workflow about its completion.

How did you test it?
transfer_active_task_executor_test

Potential risks

Release notes

Documentation Changes

@demirkayaender demirkayaender requested review from yycptt and a team July 30, 2021 17:55
@demirkayaender demirkayaender force-pushed the recordchild branch 2 times, most recently from cc5f267 to 4e4d8a9 Compare July 30, 2021 23:51
@coveralls
Copy link

coveralls commented Jul 31, 2021

Pull Request Test Coverage Report for Build 0af837a0-a155-4ff3-82f3-5c3b6bd306ad

  • 55 of 161 (34.16%) changed or added relevant lines in 8 files are covered.
  • 10 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-0.03%) to 56.437%

Changes Missing Coverage Covered Lines Changed/Added Lines %
common/persistence/nosql/nosqlExecutionStoreUtil.go 0 2 0.0%
common/persistence/sql/sqlExecutionStoreUtil.go 0 2 0.0%
service/history/historyEngine.go 0 2 0.0%
service/history/execution/mutable_state_builder.go 0 3 0.0%
service/history/task/transfer_active_task_executor.go 55 67 82.09%
common/persistence/dataManagerInterfaces.go 0 24 0.0%
common/types/shared.go 0 30 0.0%
common/types/mapper/proto/shared.go 0 31 0.0%
Files with Coverage Reduction New Missed Lines %
common/task/fifoTaskScheduler.go 3 84.54%
service/history/queue/timer_gate.go 3 95.83%
service/history/queue/timer_queue_processor_base.go 4 78.56%
Totals Coverage Status
Change from base Build cb47973a-4183-44e6-8e1b-06ec46c32fa5: -0.03%
Covered Lines: 78713
Relevant Lines: 139471

💛 - Coveralls

common/types/mapper/proto/shared.go Show resolved Hide resolved
common/types/mapper/proto/shared.go Show resolved Hide resolved
common/types/shared.go Outdated Show resolved Hide resolved
service/history/task/transfer_active_task_executor_test.go Outdated Show resolved Hide resolved
service/history/task/transfer_active_task_executor.go Outdated Show resolved Hide resolved
// TODO: pass crossClusterTaskGenerators to processParentClosePolicy to add new cross
// cluster tasks then move the call below after processParentClosePolicy call
if len(crossClusterTaskGenerators) > 0 {
t.generateCrossClusterTasks(
Copy link
Contributor

Choose a reason for hiding this comment

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

handle the returned error?

and the call should always be after processParentClosePolicy I think, regardless of whether processParentClosePolicy creates an x-cluster task or not?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added the error handling.

I was planning move this down after the parent close policy changes. Could be better to keep the changes smaller and for one API. In the PR after this one it will be after the processParentClosePolicy.

common/persistence/dataManagerInterfaces.go Outdated Show resolved Hide resolved
service/history/task/transfer_active_task_executor.go Outdated Show resolved Hide resolved
@demirkayaender demirkayaender merged commit 38881a8 into cadence-workflow:master Aug 18, 2021
@demirkayaender demirkayaender deleted the recordchild branch August 18, 2021 18:59
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