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

Change Feed Processor: Fixes StartTime not being correctly applied. Introduced in PR #1933 #2042

Merged
merged 5 commits into from
Dec 3, 2020

Conversation

ealsur
Copy link
Member

@ealsur ealsur commented Dec 2, 2020

Pull Request Template

Description

#1725 introduced a regression on the time format used when sending the desired start time to the backend.

The bug is that ChangeFeedStartFromRequestOptionPopulator is now using a different format for the date.

On 3.13.0 it was using PopulateStartFromRequestOptionVisitor that was using:

this.requestMessage.Headers.Add(
    HttpConstants.HttpHeaders.IfModifiedSince,
    startFromTime.StartTime.ToString("r", CultureInfo.InvariantCulture));

Which yields, for example Wed, 02 Dec 2020 21:27:36 GMT

On 3.15.0 it is using

this.requestMessage.Headers.Add(
    HttpConstants.HttpHeaders.IfModifiedSince,
    startFromTime.StartTime.ToString("o", CultureInfo.InvariantCulture));

Which yields, for example 2020-12-02T21:29:29.6812357Z

The backend seems to be discarding the header due to the bad format.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

Closing issues

Closes #2031

@ealsur ealsur added the bug Something isn't working label Dec 2, 2020
@ealsur ealsur self-assigned this Dec 2, 2020
Copy link
Member

@FabianMeiswinkel FabianMeiswinkel left a comment

Choose a reason for hiding this comment

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

Thanks!

@j82w j82w changed the title Change Feed Processor: Fixes StartTime not being correctly applied Change Feed Processor: Fixes StartTime not being correctly applied. Introduced in #1725 Dec 3, 2020
@j82w j82w changed the title Change Feed Processor: Fixes StartTime not being correctly applied. Introduced in #1725 Change Feed Processor: Fixes StartTime not being correctly applied. Introduced in PR #1725 Dec 3, 2020
@j82w j82w changed the title Change Feed Processor: Fixes StartTime not being correctly applied. Introduced in PR #1725 Change Feed Processor: Fixes StartTime not being correctly applied. Introduced in PR #1933 Dec 3, 2020
@ealsur ealsur merged commit dc808d9 into master Dec 3, 2020
@ealsur ealsur deleted the users/ealsur/cfptime branch December 3, 2020 18:02
ealsur added a commit that referenced this pull request Dec 17, 2020
…ntroduced in PR #1933 (#2042)

* Fixing the regression

* adding tests

Co-authored-by: Fabian Meiswinkel <fabianm@microsoft.com>
j82w pushed a commit that referenced this pull request Dec 17, 2020
Cherry-picking commits for the release

#2069
#2047
#2071
#2042
Version bump from #2072
@ghost
Copy link

ghost commented Dec 15, 2021

Closing due to in-activity, pease feel free to re-open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Container.GetChangeFeedProcessorBuilder().WithStartTime() not working anymore with 3.15
4 participants