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

EventHub stream provider partition checkpoint corruption fix #1760

Merged
merged 1 commit into from
Jun 7, 2016

Conversation

jason-bragg
Copy link
Contributor

The EventHub stream provider partition checkpoints were being corrupted due to a change to the way the offset was being stored in the cache.

Offset is now stored consistently and in an accessible way for the checkpointing.
This bug was masked by timing issues in the tests, so test cleanup and timeouts have been modified.

@gabikliot
Copy link
Contributor

@jason-bragg , should that be merged? Bug fix, right?

@gabikliot gabikliot added the bug label Jun 2, 2016
@jason-bragg
Copy link
Contributor Author

@gabikliot, Yes, this is a bug fix. I think it's ready for merge, but I was out a couple weeks, so I don't think anyone reviewed this yet. If you've looked at it, that's good enough for me. :)
@jdom was going to look at it some time today I think.

@gabikliot
Copy link
Contributor

Got you. I will leave it up for @jdom .

@@ -11,6 +12,7 @@ namespace Orleans.ServiceBus.Providers
/// </summary>
public static class EventDataExtensions
{
private static string[] SkipProperties = { "Offset", "SequenceNumber", "EnqueuedTimeUtc", "StreamNamespace" };
Copy link
Member

Choose a reason for hiding this comment

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

please use strongly typed versions, such us:
SkipProperties = { nameof(EventData.Offset), nameof(EventData.SequenceNumber), nameof(EventData.EnqueuedTimeUtc), EventDataExtensions.EventDataPropertyStreamNamespaceKey };

Copy link
Member

Choose a reason for hiding this comment

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

btw, I used EventData, but not sure whether this was the type you were using

@jdom
Copy link
Member

jdom commented Jun 6, 2016

LGTM 👍

@jason-bragg
Copy link
Contributor Author

I'll update to use strongly typed property names, but lets hold this until after the ServiceBus 3.2.2 update, which I'm working on now in another branch.

…ed due to a change to the way the offset was being stored in the cache.

Offset is now stored consistently and in an accessible way for the checkpointing.
This bug was masked by timing issues in the tests, so test cleanup and timeouts have been modified.
@jason-bragg jason-bragg force-pushed the StreamCheckpointCorruptionFix branch from 1f8adad to 6fc24fd Compare June 6, 2016 22:57
@jason-bragg
Copy link
Contributor Author

Updated. Got to go

@jdom
Copy link
Member

jdom commented Jun 7, 2016

@dotnet-bot test this please

@jdom jdom merged commit e43769a into dotnet:master Jun 7, 2016
@github-actions github-actions bot locked and limited conversation to collaborators Dec 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants