Skip to content

Fixes for the event stream model #48

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

Merged
merged 2 commits into from
Apr 29, 2025
Merged

Fixes for the event stream model #48

merged 2 commits into from
Apr 29, 2025

Conversation

kuba-moo
Copy link
Contributor

@jmberg couple of minor tweaks, not tested yet because we need a bit of idle time to "cut" this in :)

Commit db9c2da (pw_poller: poll events, not series, 2025-04-23)
unintentionally removed a log opening section, while deleting some
unused code. The log_open_sec() and log_end_sec() calls must be
balanced.

Signed-off-by: Jakub Kicinski <[email protected]>
We seem to be fetching the same series multiple times right now.
This is likely because PW uses >= for time comparison and we
use the date of last fetched event as the since date.

Signed-off-by: Jakub Kicinski <[email protected]>
Copy link
Member

@jmberg jmberg left a comment

Choose a reason for hiding this comment

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

Oops, right, sorry.

Copy link
Member

@jmberg jmberg left a comment

Choose a reason for hiding this comment

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

That seems like a reasonable workaround.

I actually knew about this (patchwork using >=) but in the other place I'd used it that was an advantage and I didn't really think about the consequences here.

The alternative would be to keep a list of processed series at that timestamp or something, but that seems way more effort than needed.

@kuba-moo kuba-moo merged commit 0c7c03f into main Apr 29, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants