Skip to content

fix condition to delete old table keys#251

Merged
patkivikram merged 1 commit intofaust-streaming:masterfrom
dima-orca:bugfix/delete-keys-condition
Jan 6, 2022
Merged

fix condition to delete old table keys#251
patkivikram merged 1 commit intofaust-streaming:masterfrom
dima-orca:bugfix/delete-keys-condition

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