uber / cadence

Cadence is a distributed, scalable, durable, and highly available orchestration engine to execute asynchronous long-running business logic in a scalable and resilient way.
https://cadenceworkflow.io
MIT License
7.96k stars 772 forks source link

[Pinot migration] Hot fix: nil memo error in mono repo #6125

Closed bowenxia closed 2 weeks ago

bowenxia commented 2 weeks ago

What changed? When memo.data is empty, add a logic to set the entire memo to be nil, and then add it to pinot response.

Why? To fix memo deserialization error in mono repo. Previously, when data is empty it was still added to in the response, so in the visibility_single_manager, it will cause a deserialization error when it is trying to deserialize memo.

How did you test it? unit test

Potential risks

Release notes

Documentation Changes

codecov[bot] commented 2 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 72.18%. Comparing base (080dec9) to head (6b794c7).

Additional details and impacted files | [Files](https://app.codecov.io/gh/uber/cadence/pull/6125?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=uber) | Coverage Δ | | |---|---|---| | [common/pinot/response\_utility.go](https://app.codecov.io/gh/uber/cadence/pull/6125?src=pr&el=tree&filepath=common%2Fpinot%2Fresponse_utility.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=uber#diff-Y29tbW9uL3Bpbm90L3Jlc3BvbnNlX3V0aWxpdHkuZ28=) | `100.00% <100.00%> (ø)` | | ... and [8 files with indirect coverage changes](https://app.codecov.io/gh/uber/cadence/pull/6125/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=uber) ------ [Continue to review full report in Codecov by Sentry](https://app.codecov.io/gh/uber/cadence/pull/6125?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=uber). > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=uber) > `Δ = absolute (impact)`, `ø = not affected`, `? = missing data` > Powered by [Codecov](https://app.codecov.io/gh/uber/cadence/pull/6125?dropdown=coverage&src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=uber). Last update [080dec9...6b794c7](https://app.codecov.io/gh/uber/cadence/pull/6125?dropdown=coverage&src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=uber). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=uber).
coveralls commented 2 weeks ago

Pull Request Test Coverage Report for Build 01900460-8008-4e2d-bd03-0785d4ba63dd

Details


Files with Coverage Reduction New Missed Lines %
common/task/weighted_round_robin_task_scheduler.go 2 89.05%
common/task/parallel_task_processor.go 2 93.06%
service/history/task/transfer_standby_task_executor.go 3 86.33%
service/history/task/task.go 3 84.81%
service/history/queue/timer_queue_processor_base.go 4 77.66%
service/matching/tasklist/task_list_manager.go 5 76.05%
service/history/execution/cache.go 6 74.61%
service/history/task/fetcher.go 6 85.05%
service/history/task/cross_cluster_task_processor.go 8 80.79%
service/history/task/task_util.go 20 70.57%
<!-- Total: 59 -->
Totals Coverage Status
Change from base Build 018ff521-a453-4f25-a2e8-6d1d59e59c06: -0.03%
Covered Lines: 106455
Relevant Lines: 149096

💛 - Coveralls