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

[5.0.2] Handle concurrency tokens with conversions in the in-memory database #23573

Merged
merged 2 commits into from
Dec 11, 2020

Conversation

ajcvickers
Copy link
Contributor

@ajcvickers ajcvickers commented Dec 3, 2020

Fixes #23527

Also fixes #12436 (MQ issue to add more testing for ulong concurrency tokens)

The fix is to ensure the current value is converted to the model type before comparing.

Description

This is a regression from 3.1 where using a concurrency token with a value converter throws in the in-memory database. This is becoming more common since its much nicer to deal with a ulong in your code than it is to deal with an byte[8].

Customer Impact

This is regression from 3.1 such that customers using this pattern for testing see their tests fail.

How found

Customer reported on 5.0.0.

Test coverage

We were lacking test coverage for this pattern, as indicated by #12436, which was in my list to do for MQ, but is now done as part of this PR.

Regression?

Yes, from 3.1.

Risk

Very low; trivial code change and quirked, plus a lot more testing added here.

@ajcvickers ajcvickers requested a review from a team December 3, 2020 22:10
@ajcvickers ajcvickers added this to the 5.0.x milestone Dec 3, 2020
@leecow leecow modified the milestones: 5.0.x, 5.0.2 Dec 8, 2020
@ajcvickers
Copy link
Contributor Author

Approved by Tactics for 5.0.2. Please wait for the branch to open before merging.

@ajcvickers ajcvickers added blocked and removed blocked labels Dec 8, 2020
@ajcvickers ajcvickers force-pushed the ItsBytesAllTheWayDown1201 branch 2 times, most recently from 6801dc5 to e128e71 Compare December 10, 2020 23:17
…atabase

Fixes #23527
Also fixes #12436 (MQ issue to add more testing for ulong concurrency tokes)

The fix is to ensure the current value is converted to the model type before comparing.
@ajcvickers ajcvickers force-pushed the ItsBytesAllTheWayDown1201 branch from e128e71 to a87b7a2 Compare December 11, 2020 16:33
@ajcvickers ajcvickers merged commit a87b7a2 into release/5.0 Dec 11, 2020
@ajcvickers ajcvickers deleted the ItsBytesAllTheWayDown1201 branch December 11, 2020 16:43
@ajcvickers ajcvickers removed this from the 5.0.2 milestone Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants