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 admin CLI scan command for unsupported workflows #3824

Merged
merged 11 commits into from
Dec 4, 2020
Merged

Add admin CLI scan command for unsupported workflows #3824

merged 11 commits into from
Dec 4, 2020

Conversation

yux0
Copy link
Contributor

@yux0 yux0 commented Dec 3, 2020

What changed?
Add admin CLI scan command for unsupported workflows

Why?
0.16 release cleans up the 2dc workflow code path. This 2dc workflow will not be supported after release 0.16.

How did you test it?
Cassandra local test
MySQL local test
TODO: Postgres test

Potential risks
The command may take a long time to finish with large data set.

@yux0 yux0 requested review from longquanzheng, yycptt and a team December 3, 2020 17:51
@coveralls
Copy link

coveralls commented Dec 3, 2020

Coverage Status

Coverage decreased (-0.002%) to 60.017% when pulling 15c9a5c on cli_scan into a6edb24 on master.

RELEASES.md Outdated Show resolved Hide resolved
tools/cli/adminDBScanCommand.go Outdated Show resolved Hide resolved
tools/cli/adminDBScanCommand.go Outdated Show resolved Hide resolved
tools/cli/adminDBScanCommand.go Outdated Show resolved Hide resolved
tools/cli/adminDBScanCommand.go Outdated Show resolved Hide resolved
tools/cli/adminDBScanCommand.go Show resolved Hide resolved

defer outputFile.Close()
for i := startShardID; i <= endShardID; i++ {
listExecutionsByShardID(c, i, rps, outputFile)
Copy link
Contributor

@yycptt yycptt Dec 4, 2020

Choose a reason for hiding this comment

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

I feel like if the scan is done in only one goroutine, it will take a long time to finish and the rps limit is kind of useless and will never be reached. But no strong opinion on that.

@yux0 yux0 merged commit 49b64fc into master Dec 4, 2020
@yux0 yux0 deleted the cli_scan branch December 4, 2020 07:41
github-actions bot pushed a commit to vytautas-karpavicius/cadence that referenced this pull request Feb 4, 2021
yux0 added a commit to yux0/cadence that referenced this pull request May 4, 2021
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