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 replica id trimming #1409

Merged
merged 1 commit into from
Dec 15, 2023
Merged

Conversation

tlmii
Copy link
Member

@tlmii tlmii commented Dec 15, 2023

Fixes #1408 for main

Old code assumed that there'd only be a hyphen if there was a replica id at the end, but names can have hyphens (and in fact eShop has them). Change it to just strip off the last hyphen and everything after it instead.

Microsoft Reviewers: Open in CodeFlow

Copy link
Member

@JamesNK JamesNK left a comment

Choose a reason for hiding this comment

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

Unit test? 🙏

@tlmii
Copy link
Member Author

tlmii commented Dec 15, 2023

Unit test? 🙏

Would you accept an issue instead (for the moment)?
#1411

@JamesNK
Copy link
Member

JamesNK commented Dec 15, 2023

kbiyahZ

@tlmii tlmii enabled auto-merge (squash) December 15, 2023 06:53
@tlmii tlmii merged commit 1a3d6e6 into dotnet:main Dec 15, 2023
8 checks passed
@davidfowl
Copy link
Member

backport to p2?

@tlmii tlmii deleted the dev/fix-replica-id-trimming branch December 15, 2023 07:14
@github-actions github-actions bot locked and limited conversation to collaborators Apr 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Resource names sometimes contain replica id even when there are no replicas
4 participants