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 new es record for uninitialized workflow #4899

Merged
merged 7 commits into from
Jul 16, 2022
Merged

Add new es record for uninitialized workflow #4899

merged 7 commits into from
Jul 16, 2022

Conversation

neil-xie
Copy link
Contributor

@neil-xie neil-xie commented Jul 9, 2022

Added new visibility record for uninitialized workflow execution to detect stuck workflow.
Added bulk create request to insert the new record so it wouldn't change the status of existing workflows.

Why?

How did you test it?
Manual test by breaking the start workflow execution process and unit tests

Potential risks

Release notes

Documentation Changes

@neil-xie neil-xie requested a review from a team July 9, 2022 00:27
@neil-xie neil-xie changed the title Add new es record for uninitialized workflow (#2386) Add new es record for uninitialized workflow Jul 9, 2022
@coveralls
Copy link

coveralls commented Jul 13, 2022

Pull Request Test Coverage Report for Build 0182053a-3eb3-41dc-a4bd-9cebf0d74990

  • 31 of 166 (18.67%) changed or added relevant lines in 18 files are covered.
  • 116 unchanged lines in 19 files lost coverage.
  • Overall coverage decreased (-0.09%) to 57.748%

Changes Missing Coverage Covered Lines Changed/Added Lines %
common/persistence/visibilitySamplingClient.go 0 3 0.0%
common/persistence/nosql/nosqlVisibilityStore.go 0 4 0.0%
common/persistence/persistenceRateLimitedClients.go 0 4 0.0%
common/persistence/sql/sqlVisibilityStore.go 0 4 0.0%
common/persistence/persistenceMetricClients.go 0 5 0.0%
service/worker/indexer/processor.go 1 7 14.29%
tools/cli/adminElasticSearchCommands.go 0 7 0.0%
common/persistence/persistence-tests/dbVisibilityPersistenceTest.go 0 8 0.0%
common/persistence/visibilityDualManager.go 0 9 0.0%
common/persistence/visibilitySingleManager.go 0 9 0.0%
Files with Coverage Reduction New Missed Lines %
common/persistence/persistence-tests/dbVisibilityPersistenceTest.go 1 0%
common/persistence/executionManager.go 2 77.95%
common/persistence/historyManager.go 2 66.67%
common/persistence/statsComputer.go 2 94.64%
common/task/fifoTaskScheduler.go 2 87.63%
common/task/weightedRoundRobinTaskScheduler.go 2 89.64%
common/util.go 2 51.77%
service/history/execution/mutable_state_builder.go 2 69.05%
service/history/task/fetcher.go 3 91.79%
common/persistence/serialization/parser.go 4 63.91%
Totals Coverage Status
Change from base Build 018204e5-7bf1-4748-9d8d-bf6813b6d425: -0.09%
Covered Lines: 83831
Relevant Lines: 145168

💛 - Coveralls

common/dynamicconfig/constants.go Outdated Show resolved Hide resolved
go.mod Show resolved Hide resolved
@neil-xie neil-xie requested a review from a team July 15, 2022 21:03
@neil-xie neil-xie merged commit 64cb46f into master Jul 16, 2022
@neil-xie neil-xie deleted the CDNC-2386-1 branch July 16, 2022 04:46
abhishekj720 pushed a commit to abhishekj720/cadence that referenced this pull request Jul 21, 2022
* Add new es record for uninitialized workflow (uber#2386)

* Add nil check for visibility manager when adding uninitialized wf execution record (uber#2386)

* Update TestProcessRecordWorkflowStartedTask to include unit test for record wf execution uninitialized method

* Fix the test add method of es processor (uber#2386)

* Disable the feature by default (uber#2386)

* Fix the unit test when feature is disabled

* Fix the unit test when feature is disabled (uber#2386)
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