xcherryio / xcherry

server and main repo of xCherry project
Apache License 2.0
26 stars 1 forks source link

process visibility task #117

Closed duoertai closed 6 months ago

duoertai commented 6 months ago

Why make this pull request?

[Explain why you are making this pull request and what problem it solves.]

What has changed

[Summarize what components of the repo is updated]

[Link to xdb-apis/sdk-go PRs if it's on top of any API changes]

How to test this pull request?

[If writing Integration test in Golang SDK repo, please provide link to the pull request of Golang SDK Repo]

[It's recommended to write integration test in Golang SDK repo, and enabled in this server repo first, without enabling in the SDK repo. After this PR is merged, enable and merge the integration test in the SDK repo]

[Alternatively if Java/other SDK repo is preferred, then just test locally against server PR. After the server PR is merged, merge the integration test in the SDK repo]

Checklist before merge

[ ] If applicable, merge the xdb-apis/sdk-go PRs to main branch [ ] If applicable, merge the xdb-apis/xdb-apis PRs to main branch [ ] Update go.mod to use the commitID of the main branches for xdb-apis/sdk-go

codecov[bot] commented 6 months ago

Codecov Report

Attention: Patch coverage is 86.76471% with 9 lines in your changes are missing coverage. Please review.

Project coverage is 63.94%. Comparing base (19097d8) to head (9e177af). Report is 1 commits behind head on main.

Files Patch % Lines
persistence/visibility/visibility_store.go 73.91% 4 Missing and 2 partials :warning:
engine/immediate_task_concurrent_processor.go 75.00% 2 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #117 +/- ## ========================================== + Coverage 63.66% 63.94% +0.27% ========================================== Files 87 87 Lines 6597 6653 +56 ========================================== + Hits 4200 4254 +54 + Misses 2126 2125 -1 - Partials 271 274 +3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

duoertai commented 6 months ago

tested in local env

@longquanzheng next thing to do is to delete immediate task after visibility task is finished, but since visibility table could be in different database/cluster, I suppose we don't need to use transaction to process visibility and delete immediate task