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

Fix vnode calculation in placement clients. #7415

Merged
merged 2 commits into from Jan 19, 2024

Conversation

JoshVanL
Copy link
Contributor

@JoshVanL JoshVanL commented Jan 19, 2024

Fixes vnode response to placement clients to be backwards compatible. Makes the API level check based on cluster level, rather than on a per request basis. Remove placement API level gRPC context metadata.

Fix piping the replication factor config to consistent hashing.

Use local hashing in daprd based on the placement API level of the cluster.

We still need to add integration tests which check the contents on the placement decimation response for the expected presence of vnodes, and the current expected API level.

Fixes vnode response to placement clients to be backwards compatible.
Makes the API level check based on cluster level, rather than on a per
request basis. Remove placement API level gRPC context metadata.

Signed-off-by: joshvanl <me@joshvanl.dev>
@JoshVanL JoshVanL requested review from a team as code owners January 19, 2024 19:43
@JoshVanL JoshVanL changed the title Fix vnode response to placement clients. Fix vnode calculation in placement clients. Jan 19, 2024
@JoshVanL
Copy link
Contributor Author

/test-version-skew

@dapr-bot
Copy link
Collaborator

dapr-bot commented Jan 19, 2024

Dapr Version Skew e2e test (dapr-sidecar-master - 1.12.4)

🔗 Link to Action run

Commit ref: f8fe403

✅ Version Skew tests passed

@dapr-bot
Copy link
Collaborator

dapr-bot commented Jan 19, 2024

Dapr Version Skew integration test (dapr-sidecar-master - 1.12.4)

🔗 Link to Action run

Commit ref: f8fe403

✅ Version Skew tests passed

@dapr-bot
Copy link
Collaborator

dapr-bot commented Jan 19, 2024

Dapr Version Skew e2e test (control-plane-master - 1.12.4)

🔗 Link to Action run

Commit ref: f8fe403

✅ Version Skew tests passed

@dapr-bot
Copy link
Collaborator

dapr-bot commented Jan 19, 2024

Dapr Version Skew integration test (control-plane-master - 1.12.4)

🔗 Link to Action run

Commit ref: f8fe403

✅ Version Skew tests passed

Copy link

codecov bot commented Jan 19, 2024

Codecov Report

Attention: 7 lines in your changes are missing coverage. Please review.

Comparison is base (21095cb) 62.24% compared to head (7fbc238) 62.24%.

Files Patch % Lines
pkg/placement/hashing/consistent_hash.go 61.53% 5 Missing ⚠️
pkg/placement/membership.go 83.33% 0 Missing and 1 partial ⚠️
pkg/placement/raft/server.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7415   +/-   ##
=======================================
  Coverage   62.24%   62.24%           
=======================================
  Files         240      240           
  Lines       22137    22111   -26     
=======================================
- Hits        13779    13763   -16     
+ Misses       7208     7199    -9     
+ Partials     1150     1149    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: joshvanl <me@joshvanl.dev>
@artursouza artursouza merged commit 38fb965 into dapr:master Jan 19, 2024
20 of 22 checks passed
whytem pushed a commit to whytem/dapr that referenced this pull request Jan 22, 2024
* Fix vnode response to placement clients.

Fixes vnode response to placement clients to be backwards compatible.
Makes the API level check based on cluster level, rather than on a per
request basis. Remove placement API level gRPC context metadata.

Signed-off-by: joshvanl <me@joshvanl.dev>

* Fix method used in int sa grpc test

Signed-off-by: joshvanl <me@joshvanl.dev>

---------

Signed-off-by: joshvanl <me@joshvanl.dev>
elena-kolevska added a commit to elena-kolevska/dapr that referenced this pull request Jan 23, 2024
This reverts commit 38fb965.

Signed-off-by: Elena Kolevska <elena@kolevska.com>
@JoshVanL JoshVanL added this to the v1.13 milestone Feb 12, 2024
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.

None yet

3 participants