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

fix condition to delete old table keys #251

Merged

Conversation

dima-orca
Copy link
Contributor

Description

When sending a single message,on_window_close callback is not triggered. It is triggered only after sending a second message to the stream.
In _del_old_keys(), window.stale is always calculated based on self._partition_latest_timestamp[partition] which will always be the same as timestamps[0] if there is only one message in stream:

window.stale(timestamps[0], self._partition_latest_timestamp[partition])

Related issue

Following the issue #250

Slack thread

Following the Slack discussion https://fauststream.slack.com/archives/C7FL9CB5E/p1641131986210500

@patkivikram patkivikram merged commit a0e9a31 into faust-streaming:master Jan 6, 2022
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