Skip to content

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