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

feat: Skip backtracking when far behind,Accept PubSub events after idle #614

Merged
merged 4 commits into from
Oct 18, 2024

Conversation

patriknw
Copy link
Member

patriknw and others added 4 commits October 18, 2024 09:11
* PubSub events are ignored if they are too far ahead of backtracking.
* That means that they will always be ignored after an idle period.
* This emits heartbeat events when the query is idle and thereby progress
  the backtracking timestamp in the PubSub filter.
* wall clock duration since latest backtracking event
* including fake persistenceId corresponding to the slice
* don't deduplicate heartbeat
* mima filter
* unique heartbeat persistenceId
(cherry picked from commit 3983774)

previous query wall clock minus backtracking behind current time

(cherry picked from commit 65ee53e)
@patriknw patriknw added this to the 1.3.0 milestone Oct 18, 2024
@patriknw patriknw merged commit c7899d1 into main Oct 18, 2024
9 of 10 checks passed
@patriknw patriknw deleted the wip-heartbeat-catchup-patriknw branch October 18, 2024 08:04
patriknw added a commit that referenced this pull request Oct 18, 2024
…le (#614)

* feat: Accept PubSub events after idle
  * PubSub events are ignored if they are too far ahead of backtracking.
  * That means that they will always be ignored after an idle period.
  * This emits heartbeat events when the query is idle and thereby progress
    the backtracking timestamp in the PubSub filter.
  * base relative heartbeat timestamps on initial database time
  * previous query wall clock minus backtracking behind current time
  * including fake persistenceId corresponding to the slice
  * don't deduplicate heartbeat
  * mima filter
  * unique heartbeat persistenceId
  * filter heartbeats early in pubsub merge

* feat: Skip backtracking when far behind

---------

Co-authored-by: Peter Vlugter <[email protected]>
(cherry picked from commit c7899d1)
patriknw added a commit that referenced this pull request Oct 18, 2024
…le (#614) (#615)

* feat: Accept PubSub events after idle
  * PubSub events are ignored if they are too far ahead of backtracking.
  * That means that they will always be ignored after an idle period.
  * This emits heartbeat events when the query is idle and thereby progress
    the backtracking timestamp in the PubSub filter.
  * base relative heartbeat timestamps on initial database time
  * previous query wall clock minus backtracking behind current time
  * including fake persistenceId corresponding to the slice
  * don't deduplicate heartbeat
  * mima filter
  * unique heartbeat persistenceId
  * filter heartbeats early in pubsub merge

* feat: Skip backtracking when far behind

---------

Co-authored-by: Peter Vlugter <[email protected]>
(cherry picked from commit c7899d1)
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