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

Workaround for query-consistency-strong which is presently partially broken #5928

Conversation

davidporter-id-au
Copy link
Member

@davidporter-id-au davidporter-id-au commented Apr 23, 2024

What changed?
As per comment discription, this is a workaround for an apparently outstanding bug where it looks like headers are not being passed along on all query paths. The problem remains, but to prevent a customer requiring this feature for now this removes the check on this one specific part of flow.

Obviously the correct and more ideal fix is to fix the missing headers, however, that'll take a bit of time and time-being what it is I'm trying to unblock Strong queries for this user.

Why?

How did you test it?

Potential risks

Release notes

Documentation Changes

Copy link

codecov bot commented Apr 23, 2024

Codecov Report

Merging #5928 (4944c5d) into master (fb26a4c) will decrease coverage by 0.26%.
The diff coverage is 100.00%.

❗ Current head 4944c5d differs from pull request most recent head 1fa99db. Consider uploading reports for the commit 1fa99db to get more accurate results

Additional details and impacted files
Files Coverage Δ
common/client/versionChecker.go 74.28% <ø> (ø)
service/history/decision/handler.go 46.11% <100.00%> (-25.09%) ⬇️

... and 10 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fb26a4c...1fa99db. Read the comment docs.

@coveralls
Copy link

coveralls commented Apr 23, 2024

Pull Request Test Coverage Report for Build 018f0def-7272-4cb6-b153-4744cb4d8f4c

Details

  • 10 of 10 (100.0%) changed or added relevant lines in 2 files are covered.
  • 66 unchanged lines in 11 files lost coverage.
  • Overall coverage decreased (-0.02%) to 67.684%

Files with Coverage Reduction New Missed Lines %
common/task/weighted_round_robin_task_scheduler.go 1 89.05%
service/matching/taskReader.go 2 84.88%
common/task/parallel_task_processor.go 2 93.06%
service/history/execution/mutable_state_util.go 2 78.52%
common/membership/hashring.go 2 84.69%
service/history/task/fetcher.go 2 85.57%
common/task/fifo_task_scheduler.go 3 82.47%
service/history/queue/timer_gate.go 3 95.83%
service/history/task/transfer_standby_task_executor.go 8 86.63%
service/history/task/cross_cluster_task_processor.go 8 80.79%
Totals Coverage Status
Change from base Build 018f0cdb-4dff-4ab0-a06e-1d978a0331b8: -0.02%
Covered Lines: 99131
Relevant Lines: 146462

💛 - Coveralls

@davidporter-id-au davidporter-id-au marked this pull request as ready for review April 23, 2024 05:03
@davidporter-id-au davidporter-id-au changed the title Adding a quick workaround for now Workaround for query-consistency-strong which is presently partially broken Apr 23, 2024
// info correctly making this call erroneously fail sometimes.
// https://t3.uberinternal.com/browse/CDNC-8641
// So defaulting just this flow to fail-open in the absence of headers.
if versionErr != nil && clientImpl != "" && clientFeatureVersion != "" {
Copy link
Member

Choose a reason for hiding this comment

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

Hmm sure, this is fine for now

Copy link
Member

Choose a reason for hiding this comment

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

there are code paths within vesionChecker that handles clientImpl == nil gracefully. so expecting both clientImpl and clientFeatureVersion to be empty might exclude some genuine cases.

Copy link
Member Author

Choose a reason for hiding this comment

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

discussed offline, I believe we concluded that the clients that didn't support this and were using QueryConsistencyStrong to be a small set.

@davidporter-id-au davidporter-id-au enabled auto-merge (squash) April 24, 2024 02:29
@davidporter-id-au davidporter-id-au merged commit 44b1f59 into cadence-workflow:master Apr 24, 2024
17 of 18 checks passed
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.

4 participants