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

Changefeed process events from the day that is specified #424

Open
florimm opened this issue Mar 22, 2024 · 2 comments
Open

Changefeed process events from the day that is specified #424

florimm opened this issue Mar 22, 2024 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed up-for-grabs 🙏🏽 Happy to consider a pull review to address this issue

Comments

@florimm
Copy link

florimm commented Mar 22, 2024

Hi
Im trying to add new projection to an exisitng project (sample from eventsourcing from this repo) and my assumption was that if I set StartTime (let say DateTime.MinValue.ToUniversalTime()) on ChangeFeedMonitoring when I configure ProjectionStore and register a new EvetItemProjection then projection should be executed for the new EventItemProjection even that the new projection is behind the others. I only see that in Lease container new items are register for the new ProcessorName that I did add but the new projection is not projected at all. What Im doing wrong or is this possible to be done?
Thanks in advance.

@IEvangelist
Copy link
Owner

I'm not as familiar with the change feed source, unfortunately, that area was contributed by @mumby0168 - hoping he can help here. Sorry for the delay, been buried lately...

@IEvangelist IEvangelist added bug Something isn't working help wanted Extra attention is needed up-for-grabs 🙏🏽 Happy to consider a pull review to address this issue labels Jun 1, 2024
@stormbringer766
Copy link
Contributor

@florimm If I'm understanding you correctly, you have an existing change feed, made a change and set StartTime.

Short answer is, that isn't how StartTime works and this can't be done. (At least the way you want)

Longer answer is StartTime is only used when the lease for the change feed does not exist, so only on initial startup. Once the lease is established, it only moves forward. You would have to either delete the lease for that process or change the name of the processor (it would create a new lease). This would reprocess every record in the container. I'm not exactly sure how that would react with event sourcing. I don't use the event sourcing library, so don't have a work around for you either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed up-for-grabs 🙏🏽 Happy to consider a pull review to address this issue
Projects
None yet
Development

No branches or pull requests

3 participants